/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAESCrypt.c | 69 param_len = AES_BLOCK_LEN; in soft_aes_check_mech_param() 213 rc = cmac_init_ctx((cbc_ctx_t *)aes_ctx, AES_BLOCK_LEN); in soft_aes_init_ctx() 218 mech_p->ulParameterLen, AES_BLOCK_LEN, aes_copy_block64); in soft_aes_init_ctx() 252 encrypt, AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in soft_aes_init_ctx() 263 AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in soft_aes_init_ctx() 352 remainder = ulDataLen % AES_BLOCK_LEN; in soft_aes_encrypt() 384 length_needed = AES_BLOCK_LEN; in soft_aes_encrypt() 388 length_needed = ulDataLen + AES_BLOCK_LEN - remainder; in soft_aes_encrypt() 445 char block[AES_BLOCK_LEN]; in soft_aes_encrypt() 446 size_t amt = AES_BLOCK_LEN - remainder; in soft_aes_encrypt() [all …]
|
H A D | softVerifyUtil.c | 211 CK_BYTE signature[AES_BLOCK_LEN]; in soft_verify() 434 CK_BYTE signature[AES_BLOCK_LEN]; in soft_verify_final()
|
H A D | softSignUtil.c | 199 CK_BYTE signature[AES_BLOCK_LEN]; in soft_sign() 406 CK_BYTE signature[AES_BLOCK_LEN]; /* use the maximum size */ in soft_sign_final()
|
H A D | softKeysUtil.c | 1498 wkey_blksz = AES_BLOCK_LEN; in soft_wrapkey()
|
H A D | softKeystore.c | 2275 mech.ulParameterLen = AES_BLOCK_LEN; in soft_keystore_crypt()
|
/illumos-gate/usr/src/common/crypto/aes/ |
H A D | aes_modes.c | 104 AES_BLOCK_LEN, aes_encrypt_block); in aes_encrypt_contiguous_blocks() 107 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt_contiguous_blocks() 111 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt_contiguous_blocks() 115 data, length, out, AES_BLOCK_LEN, aes_encrypt_block, in aes_encrypt_contiguous_blocks() 119 AES_BLOCK_LEN, aes_encrypt_block); in aes_encrypt_contiguous_blocks() 137 AES_BLOCK_LEN, aes_encrypt_block); in aes_decrypt_contiguous_blocks() 142 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 146 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 150 AES_BLOCK_LEN, aes_decrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 154 AES_BLOCK_LEN, aes_decrypt_block); in aes_decrypt_contiguous_blocks()
|
H A D | aes_impl.h | 46 #define AES_BLOCK_LEN 16 /* bytes */ macro 48 #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()
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/cmac/ |
H A D | aes_cmac.c | 24 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN, 33 uint8_t N[AES_BLOCK_LEN]; in main() 46 errs += run_test(&args, RES[i], AES_BLOCK_LEN, MAC_FG); in main()
|
H A D | aes_cmac.h | 27 static uint8_t CMAC_0[AES_BLOCK_LEN] = { 31 static uint8_t CMAC_16[AES_BLOCK_LEN] = { 35 static uint8_t CMAC_40[AES_BLOCK_LEN] = { 39 static uint8_t CMAC_64[AES_BLOCK_LEN] = {
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | aes.c | 279 param_len = AES_BLOCK_LEN; in aes_check_mech_param() 427 (plaintext->cd_length & (AES_BLOCK_LEN - 1)) != 0) in aes_encrypt() 444 length_needed = AES_BLOCK_LEN; in aes_encrypt() 487 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_encrypt() 508 AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt() 552 == 0) && (ciphertext->cd_length & (AES_BLOCK_LEN - 1)) != 0) { in aes_decrypt() 608 AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt() 626 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_decrypt() 672 out_len &= ~(AES_BLOCK_LEN - 1); in aes_encrypt_update() 754 out_len &= ~(AES_BLOCK_LEN - 1); in aes_decrypt_update() [all …]
|
H A D | dprov.c | 4770 expected_param_len = AES_BLOCK_LEN; in dprov_copyin_mechanism()
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/cbc/ |
H A D | aes_cbc.c | 24 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN, 37 .plen = AES_BLOCK_LEN, in main()
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/cbc_pad/ |
H A D | aes_cbc_pad.c | 32 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN, 45 .plen = AES_BLOCK_LEN, in main()
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/ecb/ |
H A D | aes_ecb.c | 23 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN,
|
/illumos-gate/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()
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/gcm/ |
H A D | aes_gcm.c | 24 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN,
|
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/ccm/ |
H A D | aes_ccm.c | 31 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN,
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | cbc.c | 421 uint8_t buf[AES_BLOCK_LEN] = {0}; in cmac_mode_final()
|