Home
last modified time | relevance | path

Searched refs:poly_key (Results 1 – 3 of 3) sorted by relevance

/dflybsd-src/crypto/openssh/
H A Dcipher-chachapoly.c74 u_char expected_tag[POLY1305_TAGLEN], poly_key[POLY1305_KEYLEN]; in chachapoly_crypt() local
81 memset(poly_key, 0, sizeof(poly_key)); in chachapoly_crypt()
85 poly_key, poly_key, sizeof(poly_key)); in chachapoly_crypt()
91 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt()
112 poly_key); in chachapoly_crypt()
118 explicit_bzero(poly_key, sizeof(poly_key)); in chachapoly_crypt()
H A Dcipher-chachapoly-libcrypto.c90 u_char expected_tag[POLY1305_TAGLEN], poly_key[POLY1305_KEYLEN]; in chachapoly_crypt() local
98 memset(poly_key, 0, sizeof(poly_key)); in chachapoly_crypt()
100 EVP_Cipher(ctx->main_evp, poly_key, in chachapoly_crypt()
101 poly_key, sizeof(poly_key)) < 0) { in chachapoly_crypt()
110 poly1305_auth(expected_tag, src, aadlen + len, poly_key); in chachapoly_crypt()
137 poly_key); in chachapoly_crypt()
143 explicit_bzero(poly_key, sizeof(poly_key)); in chachapoly_crypt()
/dflybsd-src/sys/crypto/
H A Dchachapoly.c52 uint8_t poly_key[CHACHA20POLY1305_KEY_SIZE]; in _chacha20poly1305_init() local
56 bzero(poly_key, sizeof(poly_key)); in _chacha20poly1305_init()
71 chacha_encrypt_bytes(&ctx->chacha, poly_key, poly_key, in _chacha20poly1305_init()
72 sizeof(poly_key)); in _chacha20poly1305_init()
75 poly1305_init(&ctx->poly, poly_key); in _chacha20poly1305_init()