Home
last modified time | relevance | path

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

/freebsd/crypto/openssh/
H A Dcipher-chachapoly-libcrypto.c88 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()
[all …]
H A Dcipher-chachapoly.c72 u_char seqbuf[8]; in chachapoly_crypt() local
82 POKE_U64(seqbuf, seqnr); in chachapoly_crypt()
83 chacha_ivsetup(&ctx->main_ctx, seqbuf, NULL); in chachapoly_crypt()
100 chacha_ivsetup(&ctx->header_ctx, seqbuf, NULL); in chachapoly_crypt()
105 chacha_ivsetup(&ctx->main_ctx, seqbuf, one); in chachapoly_crypt()
117 explicit_bzero(seqbuf, sizeof(seqbuf)); in chachapoly_crypt()
127 u_char buf[4], seqbuf[8]; in chachapoly_get_length() local
131 POKE_U64(seqbuf, seqnr); in chachapoly_get_length()
132 chacha_ivsetup(&ctx->header_ctx, seqbuf, NULL); in chachapoly_get_length()