Home
last modified time | relevance | path

Searched refs:plain_len (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeysUtil.c1412 CK_ULONG plain_len = 0; in soft_wrapkey() local
1456 plain_len = OBJ_SEC_VALUE_LEN(hkey_p); in soft_wrapkey()
1478 padded_len = plain_len; in soft_wrapkey()
1541 freezero(plain_data, plain_len); in soft_wrapkey()
1637 CK_ULONG plain_len = 0; in soft_unwrapkey() local
1712 &plain_len); in soft_unwrapkey()
1721 (void) memset(plain_data, 0x0, plain_len); in soft_unwrapkey()
1725 &plain_len); in soft_unwrapkey()
1785 OBJ_SEC_VALUE_LEN(new_objp) = plain_len; in soft_unwrapkey()
1820 freezero(plain_data, plain_len); in soft_unwrapkey()
[all …]
H A DsoftRSA.c376 size_t plain_len = modulus_len; in soft_rsa_decrypt_common() local
380 rv = pkcs1_decode(PKCS1_DECRYPT, plain_data, &plain_len); in soft_rsa_decrypt_common()
384 num_padding = modulus_len - plain_len; in soft_rsa_decrypt_common()
386 *pulDataLen = plain_len; in soft_rsa_decrypt_common()
391 (void) memcpy(pData, &plain_data[num_padding], plain_len); in soft_rsa_decrypt_common()
392 *pulDataLen = plain_len; in soft_rsa_decrypt_common()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_ccmp.c231 const uint8_t *plaintext, int plain_len, in aes_ccm_encrypt() argument
241 "aes_ccm_encrypt(len=%d, keylen=%d)", plain_len, keylen); in aes_ccm_encrypt()
265 d1.cd_length = plain_len; in aes_ccm_encrypt()
267 d1.cd_raw.iov_len = plain_len; in aes_ccm_encrypt()
285 uint8_t *plaintext, int plain_len) in aes_ccm_decrypt() argument
324 d2.cd_length = plain_len; in aes_ccm_decrypt()
326 d2.cd_raw.iov_len = plain_len; in aes_ccm_decrypt()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Drsa.c739 size_t plain_len; in rsa_decrypt_common() local
764 plain_len = modulus_len; in rsa_decrypt_common()
769 &plain_len); in rsa_decrypt_common()
774 if (plain_len > plaintext->cd_length) { in rsa_decrypt_common()
775 plaintext->cd_length = plain_len; in rsa_decrypt_common()
780 plain_data + modulus_len - plain_len, in rsa_decrypt_common()
781 plaintext, plain_len)) != CRYPTO_SUCCESS) in rsa_decrypt_common()
784 plaintext->cd_length = plain_len; in rsa_decrypt_common()