Home
last modified time | relevance | path

Searched refs:ciphertext_len (Results 1 – 5 of 5) 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.c111 uint8_t *ciphertext_buf, size_t *ciphertext_len) in ossl_sm2_encrypt() argument
180 memset(ciphertext_buf, 0, *ciphertext_len); in ossl_sm2_encrypt()
252 *ciphertext_len = (size_t)ciphertext_leni; in ossl_sm2_encrypt()
272 const uint8_t *ciphertext, size_t ciphertext_len, in ossl_sm2_decrypt() argument
300 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in ossl_sm2_decrypt()
/freebsd/crypto/openssl/test/
H A Devp_extra_test.c1294 int len, kek_len, ciphertext_len, plaintext_len; in test_EVP_Enveloped() local
1312 || !TEST_true(EVP_SealUpdate(ctx, ciphertext, &ciphertext_len, in test_EVP_Enveloped()
1314 || !TEST_true(EVP_SealFinal(ctx, ciphertext + ciphertext_len, in test_EVP_Enveloped()
1318 ciphertext_len += len; in test_EVP_Enveloped()
1322 ciphertext, ciphertext_len)) in test_EVP_Enveloped()
H A Devp_test.c534 size_t ciphertext_len; member
633 return parse_bin(value, &cdat->ciphertext, &cdat->ciphertext_len); in cipher_test_parse()
713 out_len = expected->ciphertext_len; in cipher_test_enc()
716 in_len = expected->ciphertext_len; in cipher_test_enc()