Searched refs:swap_bytes (Results 1 – 5 of 5) sorted by relevance
148 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function212 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()
122 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function434 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()
93 #define swap_bytes(in) __REV(in) macro347 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()
1919 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function1945 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()
608 static uint32_t swap_bytes(uint32_t in) in swap_bytes() function896 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()