Home
last modified time | relevance | path

Searched refs:ptext_len (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/openssl/crypto/modes/
H A Dwrap128.c262 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 Dsm2_crypt.c290 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 Dsm2_internal_test.c145 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 Devp_extra_test.c2812 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 Dsm2.h81 uint8_t *ptext_buf, size_t *ptext_len);