/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAESCrypt.c | 183 if ((ulDataLen % AES_BLOCK_LEN) != 0) { in soft_aes_encrypt_common() 202 out_len = AES_BLOCK_LEN * in soft_aes_encrypt_common() 203 (ulDataLen / AES_BLOCK_LEN + 1); in soft_aes_encrypt_common() 229 out_len -= AES_BLOCK_LEN; in soft_aes_encrypt_common() 250 if ((total_len < AES_BLOCK_LEN) || in soft_aes_encrypt_common() 252 (total_len == AES_BLOCK_LEN))) { in soft_aes_encrypt_common() 269 remain = total_len % AES_BLOCK_LEN; in soft_aes_encrypt_common() 323 for (i = 0; i < out_len; i += AES_BLOCK_LEN) { in soft_aes_encrypt_common() 382 CK_BYTE tmpblock[AES_BLOCK_LEN]; in soft_aes_encrypt_common() 387 AES_BLOCK_LEN, ulDataLen - out_len); in soft_aes_encrypt_common() [all …]
|
H A D | softDecryptUtil.c | 186 (pMechanism->ulParameterLen != AES_BLOCK_LEN)) { in soft_decrypt_init() 202 AES_BLOCK_LEN); in soft_decrypt_init() 661 if (soft_aes_ctx->remain_len != AES_BLOCK_LEN) { in soft_decrypt_final() 673 out_len = AES_BLOCK_LEN; in soft_decrypt_final() 688 AES_BLOCK_LEN); in soft_decrypt_final() 692 out.cd_length = AES_BLOCK_LEN; in soft_decrypt_final() 694 out.cd_raw.iov_len = AES_BLOCK_LEN; in soft_decrypt_final() 699 (char *)pLastPart, AES_BLOCK_LEN, &out); in soft_decrypt_final() 708 AES_BLOCK_LEN, &out_len); in soft_decrypt_final()
|
H A D | softCrypt.h | 58 uint8_t ivec[AES_BLOCK_LEN]; /* initialization vector */ 59 uint8_t data[AES_BLOCK_LEN]; /* for use by update */
|
H A D | softEncryptUtil.c | 208 (pMechanism->ulParameterLen != AES_BLOCK_LEN)) { in soft_encrypt_init() 223 AES_BLOCK_LEN); in soft_encrypt_init() 667 if (soft_aes_ctx->remain_len == AES_BLOCK_LEN) in soft_encrypt_final() 668 out_len = 2 * AES_BLOCK_LEN; in soft_encrypt_final() 670 out_len = AES_BLOCK_LEN; in soft_encrypt_final() 690 soft_aes_ctx->remain_len, AES_BLOCK_LEN, in soft_encrypt_final()
|
H A D | softKeystore.c | 2276 mech.ulParameterLen = AES_BLOCK_LEN; in soft_keystore_crypt() 2299 (void) memcpy(soft_aes_ctx->ivec, ivec, AES_BLOCK_LEN); in soft_keystore_crypt()
|
H A D | softKeysUtil.c | 1500 wkey_blksz = AES_BLOCK_LEN; in soft_wrapkey()
|
/titanic_41/usr/src/common/crypto/aes/ |
H A D | aes_modes.c | 85 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_encrypt_contiguous_blocks() 89 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt_contiguous_blocks() 93 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt_contiguous_blocks() 98 data, length, out, AES_BLOCK_LEN, aes_encrypt_block, in aes_encrypt_contiguous_blocks() 102 AES_BLOCK_LEN, aes_encrypt_block); in aes_encrypt_contiguous_blocks() 120 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_decrypt_contiguous_blocks() 126 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 130 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 135 AES_BLOCK_LEN, aes_decrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 139 AES_BLOCK_LEN, aes_decrypt_block); in aes_decrypt_contiguous_blocks()
|
H A D | aes_impl.h | 44 #define AES_BLOCK_LEN 16 /* bytes */ macro 46 #define RC_LENGTH (5 * ((AES_BLOCK_LEN) / 4 - 2))
|
H A D | aes_impl.c | 1648 uint32_t buffer[AES_BLOCK_LEN / sizeof (uint32_t)]; in aes_encrypt_block() 1652 bcopy(pt, &buffer, AES_BLOCK_LEN); in aes_encrypt_block() 1666 bcopy(&buffer, ct, AES_BLOCK_LEN); in aes_encrypt_block() 1701 uint32_t buffer[AES_BLOCK_LEN / sizeof (uint32_t)]; in aes_decrypt_block() 1705 bcopy(ct, &buffer, AES_BLOCK_LEN); in aes_decrypt_block() 1719 bcopy(&buffer, pt, AES_BLOCK_LEN); in aes_decrypt_block()
|
/titanic_41/usr/src/uts/common/crypto/io/ |
H A D | aes.c | 264 param_len = AES_BLOCK_LEN; in aes_check_mech_param() 421 == 0) && (plaintext->cd_length & (AES_BLOCK_LEN - 1)) != 0) in aes_encrypt() 478 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_encrypt() 499 AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt() 537 == 0) && (ciphertext->cd_length & (AES_BLOCK_LEN - 1)) != 0) { in aes_decrypt() 593 AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt() 611 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_decrypt() 651 out_len &= ~(AES_BLOCK_LEN - 1); in aes_encrypt_update() 731 out_len &= ~(AES_BLOCK_LEN - 1); in aes_decrypt_update() 821 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_encrypt_final() [all …]
|
H A D | dprov.c | 4744 expected_param_len = AES_BLOCK_LEN; in dprov_copyin_mechanism()
|
/titanic_41/usr/src/uts/common/io/net80211/ |
H A D | net80211_crypto_ccmp.c | 53 #define AES_BLOCK_LEN 16 macro 361 uint8_t b0[AES_BLOCK_LEN], uint8_t aad[2 * AES_BLOCK_LEN]) in ccmp_init() argument 429 uint8_t aad[2 * AES_BLOCK_LEN], b0[AES_BLOCK_LEN]; in ccmp_encrypt() 460 uint8_t aad[2 * AES_BLOCK_LEN], b0[AES_BLOCK_LEN]; in ccmp_decrypt()
|