Home
last modified time | relevance | path

Searched refs:AES_BLOCK_LEN (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAESCrypt.c69 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 DsoftVerifyUtil.c211 CK_BYTE signature[AES_BLOCK_LEN]; in soft_verify()
434 CK_BYTE signature[AES_BLOCK_LEN]; in soft_verify_final()
H A DsoftSignUtil.c199 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 DsoftKeysUtil.c1498 wkey_blksz = AES_BLOCK_LEN; in soft_wrapkey()
H A DsoftKeystore.c2275 mech.ulParameterLen = AES_BLOCK_LEN; in soft_keystore_crypt()
/illumos-gate/usr/src/common/crypto/aes/
H A Daes_modes.c104 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 Daes_impl.h46 #define AES_BLOCK_LEN 16 /* bytes */ macro
48 #define RC_LENGTH (5 * ((AES_BLOCK_LEN) / 4 - 2))
H A Daes_impl.c1648 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 Daes_cmac.c24 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 Daes_cmac.h27 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 Daes.c279 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 Ddprov.c4770 expected_param_len = AES_BLOCK_LEN; in dprov_copyin_mechanism()
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/cbc/
H A Daes_cbc.c24 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 Daes_cbc_pad.c32 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 Daes_ecb.c23 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN,
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_ccmp.c53 #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 Daes_gcm.c24 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 Daes_ccm.c31 1, AES_BLOCK_LEN, AES_BLOCK_LEN + 1, 2*AES_BLOCK_LEN,
/illumos-gate/usr/src/common/crypto/modes/
H A Dcbc.c421 uint8_t buf[AES_BLOCK_LEN] = {0}; in cmac_mode_final()