Home
last modified time | relevance | path

Searched refs:swap_bytes (Results 1 – 5 of 5) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/aes/
Dfsl_aes.c148 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function
212 base->KEY[index] = swap_bytes(aes_get_word_from_unaligned(key)); in aes_load_key()
337 base->HOLDING[index] = swap_bytes(aes_get_word_from_unaligned(input)); in aes_set_holding()
764 aes_set_unaligned_from_word(swap_bytes(base->HOLDING[3]), &counter[12]); in AES_CryptCtr()
841 aes_set_unaligned_from_word(swap_bytes(base->GCM_TAG[index]), output); in aes_gcm_get_tag()
972 aes_set_unaligned_from_word(swap_bytes(base->GF128_Z[i]), output); in aes_get_gf128()
1064 aes_set_unaligned_from_word(swap_bytes(8U * saveIvSize), &ivBlkZero[12]); in aes_gcm_process()
1167 aes_set_unaligned_from_word(swap_bytes(saveSize * 8u), &blkZero[12]); in aes_gcm_process()
1171 aes_set_unaligned_from_word(swap_bytes(saveAadSize * 8u), &blkZero[4]); in aes_gcm_process()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sha/
Dfsl_sha.c122 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function
434 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in sha_finalize()
453 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in sha_finalize()
479 digest[i] = swap_bytes(base->DIGEST[i]); in sha_get_digest()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/hashcrypt/
Dfsl_hashcrypt.c93 #define swap_bytes(in) __REV(in) macro
347 digest[i] = swap_bytes(base->DIGEST0[i]); in hashcrypt_get_data()
451 ((uint32_t *)(uintptr_t)output + idx)[i] = swap_bytes(base->DIGEST0[i]); in hashcrypt_aes_one_block_aligned()
506 (temp + outidx)[i] = swap_bytes(base->DIGEST0[i]); in hashcrypt_aes_one_block_unaligned()
812 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in hashcrypt_sha_finalize()
831 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in hashcrypt_sha_finalize()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ltc/
Dfsl_ltc.c1919 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function
1945 blk.w[3] = swap_bytes(inputSize); /* message size, most significant byte first */ in ltc_aes_ccm_context_init()
1980 swapped = swap_bytes(aadSize); in ltc_aes_ccm_process_aad()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/caam/
Dfsl_caam.c608 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function
896 blk.w[3] = swap_bytes(inputSize); /* message size, most significant byte first */ in caam_aes_ccm_context_init()
1027 uint32_t swapped = swap_bytes(aadSize); in caam_aes_ccm_non_blocking()