Searched refs:ciphertext_len (Results 1 – 5 of 5) sorted by relevance
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | aead_aes256gcm.c | 3096 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 D | sm2.h | 76 uint8_t *ciphertext_buf, size_t *ciphertext_len); 80 const uint8_t *ciphertext, size_t ciphertext_len,
|
/freebsd/crypto/openssl/crypto/sm2/ |
H A D | sm2_crypt.c | 123 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 D | evp_extra_test.c | 1298 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 D | evp_test.c | 534 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()
|