Home
last modified time | relevance | path

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

/freebsd-13.1/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-13.1/crypto/openssl/include/crypto/
H A Dsm2.h69 uint8_t *ciphertext_buf, size_t *ciphertext_len);
74 size_t ciphertext_len, uint8_t *ptext_buf, size_t *ptext_len);
/freebsd-13.1/crypto/openssl/crypto/sm2/
H A Dsm2_crypt.c104 size_t msg_len, uint8_t *ciphertext_buf, size_t *ciphertext_len) in sm2_encrypt() argument
170 memset(ciphertext_buf, 0, *ciphertext_len); in sm2_encrypt()
237 *ciphertext_len = (size_t)ciphertext_leni; in sm2_encrypt()
257 size_t ciphertext_len, uint8_t *ptext_buf, size_t *ptext_len) in sm2_decrypt() argument
282 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in sm2_decrypt()