Home
last modified time | relevance | path

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

/freebsd-12.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-12.1/crypto/openssl/crypto/include/internal/
H A Dsm2.h70 uint8_t *ciphertext_buf, size_t *ciphertext_len);
75 size_t ciphertext_len, uint8_t *ptext_buf, size_t *ptext_len);
/freebsd-12.1/crypto/openssl/crypto/sm2/
H A Dsm2_crypt.c113 size_t msg_len, uint8_t *ciphertext_buf, size_t *ciphertext_len) in sm2_encrypt() argument
179 memset(ciphertext_buf, 0, *ciphertext_len); in sm2_encrypt()
246 *ciphertext_len = (size_t)ciphertext_leni; in sm2_encrypt()
266 size_t ciphertext_len, uint8_t *ptext_buf, size_t *ptext_len) in sm2_decrypt() argument
291 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in sm2_decrypt()