Lines Matching refs:seqbuf
88 u_char seqbuf[16]; /* layout: u64 counter || u64 seqno */ in chachapoly_crypt() local
96 memset(seqbuf, 0, sizeof(seqbuf)); in chachapoly_crypt()
97 POKE_U64(seqbuf + 8, seqnr); in chachapoly_crypt()
99 if (!EVP_CipherInit(ctx->main_evp, NULL, NULL, seqbuf, 1) || in chachapoly_crypt()
119 if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 1) || in chachapoly_crypt()
127 seqbuf[0] = 1; in chachapoly_crypt()
128 if (!EVP_CipherInit(ctx->main_evp, NULL, NULL, seqbuf, 1) || in chachapoly_crypt()
142 explicit_bzero(seqbuf, sizeof(seqbuf)); in chachapoly_crypt()
152 u_char buf[4], seqbuf[16]; in chachapoly_get_length() local
156 memset(seqbuf, 0, sizeof(seqbuf)); in chachapoly_get_length()
157 POKE_U64(seqbuf + 8, seqnr); in chachapoly_get_length()
158 if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 0)) in chachapoly_get_length()