Searched refs:seqbuf (Results 1 – 5 of 5) sorted by relevance
/freebsd/crypto/openssh/ |
H A D | cipher-chachapoly-libcrypto.c | 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() [all …]
|
H A D | cipher-chachapoly.c | 72 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()
|
/freebsd/crypto/openssl/test/ |
H A D | tls13encryptiontest.c | 314 unsigned char seqbuf[SEQ_NUM_SIZE]; in test_tls13_encryption() local 329 if (!load_record(&rec, &refdata[ctr], &key, iv, ivlen, seqbuf)) { in test_tls13_encryption() 344 memcpy(wrl->sequence, seqbuf, sizeof(seqbuf)); in test_tls13_encryption() 367 memcpy(rrl->sequence, seqbuf, sizeof(seqbuf)); in test_tls13_encryption()
|
/freebsd/crypto/openssl/crypto/hpke/ |
H A D | hpke.c | 1157 unsigned char seqbuf[OSSL_HPKE_MAX_NONCELEN]; in OSSL_HPKE_seal() local 1178 seqlen = hpke_seqnonce2buf(ctx, seqbuf, sizeof(seqbuf)); in OSSL_HPKE_seal() 1183 if (hpke_aead_enc(ctx, seqbuf, aad, aadlen, pt, ptlen, ct, ctlen) != 1) { in OSSL_HPKE_seal() 1185 OPENSSL_cleanse(seqbuf, sizeof(seqbuf)); in OSSL_HPKE_seal() 1190 OPENSSL_cleanse(seqbuf, sizeof(seqbuf)); in OSSL_HPKE_seal() 1199 unsigned char seqbuf[OSSL_HPKE_MAX_NONCELEN]; in OSSL_HPKE_open() local 1220 seqlen = hpke_seqnonce2buf(ctx, seqbuf, sizeof(seqbuf)); in OSSL_HPKE_open() 1225 if (hpke_aead_dec(ctx, seqbuf, aad, aadlen, ct, ctlen, pt, ptlen) != 1) { in OSSL_HPKE_open() 1227 OPENSSL_cleanse(seqbuf, sizeof(seqbuf)); in OSSL_HPKE_open() 1231 OPENSSL_cleanse(seqbuf, sizeof(seqbuf)); in OSSL_HPKE_open()
|
/freebsd/crypto/krb5/src/lib/rpc/ |
H A D | svc_auth_gss.c | 183 gss_buffer_desc recv_tok, seqbuf; in svcauth_gss_accept_sec_context() local 272 seqbuf.value = &seq; in svcauth_gss_accept_sec_context() 273 seqbuf.length = sizeof(seq); in svcauth_gss_accept_sec_context() 277 &seqbuf, &gd->checksum); in svcauth_gss_accept_sec_context()
|