Searched refs:ptext_len (Results 1 – 5 of 5) sorted by relevance
/openssl/crypto/modes/ |
H A D | wrap128.c | 260 size_t ptext_len; in CRYPTO_128_unwrap_pad() local 310 ptext_len = ((unsigned int)aiv[4] << 24) in CRYPTO_128_unwrap_pad() 314 if (8 * (n - 1) >= ptext_len || ptext_len > 8 * n) { in CRYPTO_128_unwrap_pad() 323 padding_len = padded_len - ptext_len; in CRYPTO_128_unwrap_pad() 324 if (CRYPTO_memcmp(out + ptext_len, zeros, padding_len) != 0) { in CRYPTO_128_unwrap_pad() 330 return ptext_len; in CRYPTO_128_unwrap_pad()
|
/openssl/test/ |
H A D | sm2_internal_test.c | 146 size_t ptext_len = 0; in test_sm2_crypt() local 186 if (!TEST_true(ossl_sm2_plaintext_size(ctext, ctext_len, &ptext_len)) in test_sm2_crypt() 187 || !TEST_int_eq(ptext_len, msg_len)) in test_sm2_crypt() 190 recovered = OPENSSL_zalloc(ptext_len); in test_sm2_crypt()
|
H A D | evp_extra_test.c | 2390 size_t ptext_len = sizeof(plaintext); in test_EVP_SM2() local 2530 if (!TEST_int_gt(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, in test_EVP_SM2() 2550 if (!TEST_true(ptext_len == sizeof(kMsg))) in test_EVP_SM2()
|
/openssl/crypto/sm2/ |
H A D | sm2_crypt.c | 278 uint8_t *ptext_buf, size_t *ptext_len) in ossl_sm2_decrypt() argument 303 memset(ptext_buf, 0xFF, *ptext_len); in ossl_sm2_decrypt() 320 if (*ptext_len < (size_t)msg_len) { in ossl_sm2_decrypt() 399 *ptext_len = msg_len; in ossl_sm2_decrypt() 403 memset(ptext_buf, 0, *ptext_len); in ossl_sm2_decrypt()
|
/openssl/include/crypto/ |
H A D | sm2.h | 81 uint8_t *ptext_buf, size_t *ptext_len);
|
Completed in 33 milliseconds