Searched refs:seqbuf (Results 1 – 3 of 3) sorted by relevance
/external/openssh/ |
D | cipher-chachapoly-libcrypto.c | 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() [all …]
|
D | cipher-chachapoly.c | 73 u_char seqbuf[8]; in chachapoly_crypt() local 83 POKE_U64(seqbuf, seqnr); in chachapoly_crypt() 84 chacha_ivsetup(&ctx->main_ctx, seqbuf, NULL); in chachapoly_crypt() 101 chacha_ivsetup(&ctx->header_ctx, seqbuf, NULL); in chachapoly_crypt() 106 chacha_ivsetup(&ctx->main_ctx, seqbuf, one); in chachapoly_crypt() 118 explicit_bzero(seqbuf, sizeof(seqbuf)); in chachapoly_crypt() 128 u_char buf[4], seqbuf[8]; in chachapoly_get_length() local 132 POKE_U64(seqbuf, seqnr); in chachapoly_get_length() 133 chacha_ivsetup(&ctx->header_ctx, seqbuf, NULL); in chachapoly_get_length()
|
/external/libwebsockets/plugins/ssh-base/crypto/ |
D | chacha.c | 276 uint8_t buf[4], seqbuf[8]; in lws_chachapoly_get_length() local 285 POKE_U64(seqbuf, seq); in lws_chachapoly_get_length() 286 chacha_ivsetup(K_1(keys), seqbuf, NULL); in lws_chachapoly_get_length() 305 u_char seqbuf[8]; in chachapoly_crypt() local 315 POKE_U64(seqbuf, seqnr); in chachapoly_crypt() 316 chacha_ivsetup(K_2(keys), seqbuf, NULL); in chachapoly_crypt() 333 chacha_ivsetup(K_1(keys), seqbuf, NULL); in chachapoly_crypt() 338 chacha_ivsetup(K_2(keys), seqbuf, one); in chachapoly_crypt() 349 lws_explicit_bzero(seqbuf, sizeof(seqbuf)); in chachapoly_crypt()
|