Home
last modified time | relevance | path

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

/freebsd-13.1/crypto/openssh/
H A Dcipher-chachapoly-libcrypto.c39 EVP_CIPHER_CTX *main_evp, *header_evp; member
52 (ctx->header_evp = EVP_CIPHER_CTX_new()) == NULL) in chachapoly_new()
56 if (!EVP_CipherInit(ctx->header_evp, EVP_chacha20(), key + 32, NULL, 1)) in chachapoly_new()
58 if (EVP_CIPHER_CTX_iv_length(ctx->header_evp) != 16) in chachapoly_new()
72 EVP_CIPHER_CTX_free(cpctx->header_evp); in chachapoly_free()
120 if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 1) || in chachapoly_crypt()
121 EVP_Cipher(ctx->header_evp, dest, src, aadlen) < 0) { in chachapoly_crypt()
159 if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 0)) in chachapoly_get_length()
161 if (EVP_Cipher(ctx->header_evp, buf, (u_char *)cp, sizeof(buf)) < 0) in chachapoly_get_length()