Searched refs:padded_len (Results 1 – 4 of 4) sorted by relevance
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeysUtil.c | 1416 CK_ULONG padded_len = 0; in soft_wrapkey() local 1480 padded_len = plain_len; in soft_wrapkey() 1514 if ((padded_len % wkey_blksz) != 0) { in soft_wrapkey() 1515 padded_len += (wkey_blksz - (plain_len % wkey_blksz)); in soft_wrapkey() 1516 if ((padded_data = malloc(padded_len)) == NULL) { in soft_wrapkey() 1520 (void) memset(padded_data, 0x0, padded_len); in soft_wrapkey() 1532 rv = soft_encrypt(session_p, padded_data, padded_len, in soft_wrapkey() 1536 if (padded_data != NULL && padded_len != plain_len) { in soft_wrapkey() 1538 (void) memset(padded_data, 0x0, padded_len); in soft_wrapkey()
|
H A D | softDecryptUtil.c | 44 soft_remove_pkcs7_padding(CK_BYTE *pData, CK_ULONG padded_len, in soft_remove_pkcs7_padding() argument 50 if ((rv = pkcs7_decode(pData, (&padded_len))) != CKR_OK) in soft_remove_pkcs7_padding() 52 if ((rv = pkcs7_decode(pData, (size_t *)(&padded_len))) != CKR_OK) in soft_remove_pkcs7_padding() 56 *pulDataLen = padded_len; in soft_remove_pkcs7_padding()
|
/titanic_44/usr/src/cmd/ssh/libssh/common/ |
H A D | packet.c | 1042 u_int len, padded_len; in packet_read_poll1() local 1054 padded_len = (len + 8) & ~7; in packet_read_poll1() 1057 if (buffer_len(&input) < 4 + padded_len) in packet_read_poll1() 1071 switch (detect_attack(buffer_ptr(&input), padded_len, NULL)) { in packet_read_poll1() 1085 cp = buffer_append_space(&incoming_packet, padded_len); in packet_read_poll1() 1086 cipher_crypt(&receive_context, cp, buffer_ptr(&input), padded_len); in packet_read_poll1() 1088 buffer_consume(&input, padded_len); in packet_read_poll1()
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | loadsave.c | 752 UINT32 padded_len; in save_private_token_object() local 788 padded_len = RSA_BLOCK_SIZE * blocks; in save_private_token_object() 790 cleartxt = (CK_BYTE *)malloc(padded_len); in save_private_token_object() 791 ciphertxt = (CK_BYTE *)malloc(padded_len); in save_private_token_object() 797 ciphertxt_len = padded_len; in save_private_token_object() 807 cleartxt_len, padded_len); in save_private_token_object()
|