Home
last modified time | relevance | path

Searched refs:ciphertext_len (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/contrib/libsodium/test/default/
H A Daead_aes256gcm.c3096 size_t ciphertext_len; in tv() local
3124 ciphertext_len = message_len + crypto_aead_aes256gcm_ABYTES; in tv()
3126 expected_ciphertext = (unsigned char *) sodium_malloc(ciphertext_len); in tv()
3135 ciphertext = (unsigned char *) sodium_malloc(ciphertext_len); in tv()
3148 hex = (char *) sodium_malloc((size_t) ciphertext_len * 2 + 1); in tv()
3149 sodium_bin2hex(hex, (size_t) ciphertext_len * 2 + 1, in tv()
3150 ciphertext, ciphertext_len); in tv()
3159 assert((size_t) found_ciphertext_len == ciphertext_len); in tv()
3160 if (memcmp(ciphertext, expected_ciphertext, ciphertext_len) != 0) { in tv()
3164 ciphertext, ciphertext_len); in tv()
[all …]
/freebsd/crypto/openssl/include/crypto/
H A Dsm2.h76 uint8_t *ciphertext_buf, size_t *ciphertext_len);
80 const uint8_t *ciphertext, size_t ciphertext_len,
/freebsd/crypto/openssl/crypto/sm2/
H A Dsm2_crypt.c110 uint8_t *ciphertext_buf, size_t *ciphertext_len) in ossl_sm2_encrypt() argument
181 memset(ciphertext_buf, 0, *ciphertext_len); in ossl_sm2_encrypt()
257 *ciphertext_len = (size_t)ciphertext_leni; in ossl_sm2_encrypt()
277 const uint8_t *ciphertext, size_t ciphertext_len, in ossl_sm2_decrypt() argument
305 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in ossl_sm2_decrypt()
/freebsd/crypto/openssl/include/internal/
H A Dquic_record_tx.h140 size_t ciphertext_len,
151 size_t *ciphertext_len);
/freebsd/crypto/openssl/ssl/quic/
H A Dquic_record_tx.c406 size_t *ciphertext_len) in ossl_qtx_calculate_ciphertext_payload_len() argument
413 *ciphertext_len = 0; in ossl_qtx_calculate_ciphertext_payload_len()
423 *ciphertext_len = plaintext_len + tag_len; in ossl_qtx_calculate_ciphertext_payload_len()
429 size_t ciphertext_len, in ossl_qtx_calculate_plaintext_payload_len() argument
443 if (ciphertext_len <= tag_len) { in ossl_qtx_calculate_plaintext_payload_len()
448 *plaintext_len = ciphertext_len - tag_len; in ossl_qtx_calculate_plaintext_payload_len()
H A Dquic_txp.c1755 size_t hdr_len, ciphertext_len; in txp_pkt_postgen_update_pkt_overhead() local
1771 &ciphertext_len)) in txp_pkt_postgen_update_pkt_overhead()
1774 pkt->phdr.len = ciphertext_len; in txp_pkt_postgen_update_pkt_overhead()
1779 pkt->geom.pkt_overhead = hdr_len + ciphertext_len - pkt->h.bytes_appended; in txp_pkt_postgen_update_pkt_overhead()
/freebsd/crypto/openssl/test/
H A Devp_test.c892 size_t ciphertext_len; member
1023 return parse_bin(value, &cdat->ciphertext, &cdat->ciphertext_len); in cipher_test_parse()
1108 out_len = expected->ciphertext_len; in cipher_test_enc()
1111 in_len = expected->ciphertext_len; in cipher_test_enc()
2149 size_t ciphertext_len; member
2209 return parse_bin(value, &kdata->ciphertext, &kdata->ciphertext_len); in kem_test_parse()
2270 && !TEST_mem_eq(wrapped, wrappedlen, kdata->ciphertext, kdata->ciphertext_len)) { in encapsulate()
H A Devp_extra_test.c1769 int len, kek_len, ciphertext_len, plaintext_len; in test_EVP_Enveloped() local
1787 || !TEST_true(EVP_SealUpdate(ctx, ciphertext, &ciphertext_len, in test_EVP_Enveloped()
1789 || !TEST_true(EVP_SealFinal(ctx, ciphertext + ciphertext_len, in test_EVP_Enveloped()
1793 ciphertext_len += len; in test_EVP_Enveloped()
1797 ciphertext, ciphertext_len)) in test_EVP_Enveloped()