Searched refs:ptext_len (Results 1 – 5 of 5) sorted by relevance
| /freebsd/crypto/openssl/crypto/modes/ |
| H A D | wrap128.c | 262 size_t ptext_len; in CRYPTO_128_unwrap_pad() local 312 ptext_len = ((unsigned int)aiv[4] << 24) in CRYPTO_128_unwrap_pad() 316 if (8 * (n - 1) >= ptext_len || ptext_len > 8 * n) { in CRYPTO_128_unwrap_pad() 325 padding_len = padded_len - ptext_len; in CRYPTO_128_unwrap_pad() 326 if (CRYPTO_memcmp(out + ptext_len, zeros, padding_len) != 0) { in CRYPTO_128_unwrap_pad() 332 return ptext_len; in CRYPTO_128_unwrap_pad()
|
| /freebsd/crypto/openssl/crypto/sm2/ |
| H A D | sm2_crypt.c | 290 uint8_t *ptext_buf, size_t *ptext_len) in ossl_sm2_decrypt() argument 315 memset(ptext_buf, 0xFF, *ptext_len); in ossl_sm2_decrypt() 332 if (*ptext_len < (size_t)msg_len) { in ossl_sm2_decrypt() 411 *ptext_len = msg_len; in ossl_sm2_decrypt() 415 memset(ptext_buf, 0, *ptext_len); in ossl_sm2_decrypt()
|
| /freebsd/crypto/openssl/test/ |
| H A D | sm2_internal_test.c | 145 size_t ptext_len = 0; in test_sm2_crypt() local 185 if (!TEST_true(ossl_sm2_plaintext_size(ctext, ctext_len, &ptext_len)) in test_sm2_crypt() 186 || !TEST_int_eq(ptext_len, msg_len)) in test_sm2_crypt() 189 recovered = OPENSSL_zalloc(ptext_len); in test_sm2_crypt()
|
| H A D | evp_extra_test.c | 2812 size_t ptext_len = sizeof(plaintext); in test_EVP_SM2() local 2954 ptext_len_param = ptext_len; in test_EVP_SM2()
|
| /freebsd/crypto/openssl/include/crypto/ |
| H A D | sm2.h | 81 uint8_t *ptext_buf, size_t *ptext_len);
|