Searched refs:plain_data (Results 1 - 2 of 2) sorted by relevance
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeysUtil.c | 1441 CK_BYTE_PTR plain_data = NULL; local 1484 plain_data = OBJ_SEC_VALUE(hkey_p); 1489 * plain_data = NULL to get the size needed, allocate that 1495 if ((plain_data = malloc(plain_len)) == NULL) 1497 (void) memset(plain_data, 0x0, plain_len); 1498 rv = soft_object_to_asn1(hkey_p, plain_data, &plain_len); 1508 padded_data = plain_data; 1549 (void) memcpy(padded_data, plain_data, plain_len); 1570 if ((hkey_p->class != CKO_SECRET_KEY) && (plain_data != NULL)) { 1572 (void) memset(plain_data, 1669 CK_BYTE_PTR plain_data = NULL; local [all...] |
H A D | softRSA.c | 247 CK_BYTE plain_data[MAX_RSA_KEYLENGTH_IN_BYTES]; local 297 rv = pkcs1_encode(PKCS1_ENCRYPT, pData, ulDataLen, plain_data, 304 (void) memset(plain_data, 0x0, modulus_len - ulDataLen); 305 (void) memcpy(&plain_data[modulus_len - ulDataLen], pData, 309 rv = soft_rsa_encrypt(key, plain_data, modulus_len, cipher_data, 1); 336 CK_BYTE plain_data[MAX_RSA_KEYLENGTH_IN_BYTES]; local 367 rv = soft_rsa_decrypt(key, pEncrypted, modulus_len, plain_data); 377 rv = pkcs1_decode(PKCS1_DECRYPT, plain_data, &plain_len); 388 (void) memcpy(pData, &plain_data[num_padding], plain_len); 391 (void) memcpy(pData, plain_data, modulus_le 533 CK_BYTE plain_data[MAX_RSA_KEYLENGTH_IN_BYTES]; local 651 CK_BYTE plain_data[MAX_RSA_KEYLENGTH_IN_BYTES]; local 1200 CK_BYTE plain_data[MAX_RSA_KEYLENGTH_IN_BYTES]; local [all...] |
Completed in 19 milliseconds