Lines Matching refs:seqbuf
89 u_char seqbuf[16]; /* layout: u64 counter || u64 seqno */ in chachapoly_crypt() local
97 memset(seqbuf, 0, sizeof(seqbuf)); in chachapoly_crypt()
98 POKE_U64(seqbuf + 8, seqnr); in chachapoly_crypt()
100 if (!EVP_CipherInit(ctx->main_evp, NULL, NULL, seqbuf, 1) || in chachapoly_crypt()
120 if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 1) || in chachapoly_crypt()
128 seqbuf[0] = 1; in chachapoly_crypt()
129 if (!EVP_CipherInit(ctx->main_evp, NULL, NULL, seqbuf, 1) || in chachapoly_crypt()
143 explicit_bzero(seqbuf, sizeof(seqbuf)); in chachapoly_crypt()
153 u_char buf[4], seqbuf[16]; in chachapoly_get_length() local
157 memset(seqbuf, 0, sizeof(seqbuf)); in chachapoly_get_length()
158 POKE_U64(seqbuf + 8, seqnr); in chachapoly_get_length()
159 if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 0)) in chachapoly_get_length()