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.c123 uint8_t *ciphertext_buf, size_t *ciphertext_len) in ossl_sm2_encrypt()
192 memset(ciphertext_buf, 0, *ciphertext_len); in ossl_sm2_encrypt()
270 *ciphertext_len = (size_t)ciphertext_leni; in ossl_sm2_decrypt()
290 const uint8_t *ciphertext, size_t ciphertext_len, in ossl_sm2_decrypt()
318 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in ossl_sm2_decrypt()
111 ossl_sm2_encrypt(const EC_KEY * key,const EVP_MD * digest,const uint8_t * msg,size_t msg_len,uint8_t * ciphertext_buf,size_t * ciphertext_len) ossl_sm2_encrypt() argument
272 ossl_sm2_decrypt(const EC_KEY * key,const EVP_MD * digest,const uint8_t * ciphertext,size_t ciphertext_len,uint8_t * ptext_buf,size_t * ptext_len) ossl_sm2_decrypt() argument
/freebsd/crypto/openssl/test/
H A Devp_extra_test.c1298 int len, kek_len, ciphertext_len, plaintext_len; in test_EVP_Enveloped() local
1316 || !TEST_true(EVP_SealUpdate(ctx, ciphertext, &ciphertext_len, in test_EVP_Enveloped()
1318 || !TEST_true(EVP_SealFinal(ctx, ciphertext + ciphertext_len, in test_EVP_Enveloped()
1322 ciphertext_len += len; in test_EVP_Enveloped()
1326 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()