Searched refs:key_bytes (Results 1 - 3 of 3) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | mech_md5.c | 336 CK_ULONG key_bytes, hash_len, hmac_len; local 371 key_bytes = attr->ulValueLen; 375 if (key_bytes > MD5_BLOCK_SIZE) { 408 for (i = 0; i < key_bytes; i++) { 413 (void) memset(&k_ipad[i], 0x36, MD5_BLOCK_SIZE - key_bytes); 414 (void) memset(&k_opad[i], 0x5C, MD5_BLOCK_SIZE - key_bytes);
|
H A D | mech_sha.c | 70 CK_ULONG key_bytes, hash_len, hmac_len; local 104 key_bytes = attr->ulValueLen; 107 if (key_bytes > SHA1_BLOCK_SIZE) { 139 for (i = 0; i < key_bytes; i++) { 144 (void) memset(&k_ipad[i], 0x36, SHA1_BLOCK_SIZE - key_bytes); 145 (void) memset(&k_opad[i], 0x5C, SHA1_BLOCK_SIZE - key_bytes);
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | crypto.c | 2361 size_t key_bytes = 0; local 2382 key_bytes = CRYPTO_BITS2BYTES(key_bits); 2384 rv = CRYPTO_BUFFER_CHECK(sp, key_bytes, 2389 rctl_bytes = key_bytes; 2391 out_key->ck_data = kmem_alloc(key_bytes, KM_SLEEP); 2394 out_key->ck_data, key_bytes) != 0) { 2395 kmem_free(out_key->ck_data, key_bytes);
|
Completed in 70 milliseconds