Home
last modified time | relevance | path

Searched refs:lastBlock (Results 1 – 4 of 4) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/aes/
Dfsl_aes.c691 uint8_t lastBlock[AES_BLOCK_SIZE] = {0}; in AES_CryptCtr() local
752 lastEncryptedCounter = lastBlock; in AES_CryptCtr()
754 …aes_one_block(base, lastEncryptedCounter, lastBlock); /* lastBlock is all zeroes, so I get directl… in AES_CryptCtr()
1013 uint8_t lastBlock[AES_BLOCK_SIZE] = {0}; in aes_gcm_process() local
1142 (void)aes_memcpy(lastBlock, src, inputSize); in aes_gcm_process()
1143 aes_one_block(base, lastBlock, lastBlock); in aes_gcm_process()
1144 (void)aes_memcpy(dst, lastBlock, inputSize); in aes_gcm_process()
1146 (void)aes_memcpy(outputBlkZero, lastBlock, inputSize); in aes_gcm_process()
1152 (void)aes_memcpy(lastBlock, src, inputSize); in aes_gcm_process()
1153 aes_one_block(base, lastBlock, lastBlock); in aes_gcm_process()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sha/
Dfsl_sha.c424 sha_block_t lastBlock; in sha_finalize() local
426 (void)memset(&lastBlock, 0, sizeof(sha_block_t)); in sha_finalize()
432 (void)sha_memcpy(&lastBlock.b[0], &ctxInternal->blk.b[0], ctxInternal->blksz); in sha_finalize()
433 lastBlock.b[ctxInternal->blksz] = (uint8_t)0x80U; in sha_finalize()
434 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in sha_finalize()
435 sha_one_block(base, &lastBlock.b[0]); in sha_finalize()
449 lastBlock.b[0] = (uint8_t)0x80U; in sha_finalize()
453 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in sha_finalize()
454 sha_one_block(base, &lastBlock.b[0]); in sha_finalize()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/hashcrypt/
Dfsl_hashcrypt.c802 hashcrypt_sha_block_t lastBlock; in hashcrypt_sha_finalize() local
804 (void)memset(&lastBlock, 0, sizeof(hashcrypt_sha_block_t)); in hashcrypt_sha_finalize()
810 (void)hashcrypt_memcpy(&lastBlock.b[0], &ctxInternal->blk.b[0], ctxInternal->blksz); in hashcrypt_sha_finalize()
811 lastBlock.b[ctxInternal->blksz] = (uint8_t)0x80U; in hashcrypt_sha_finalize()
812 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in hashcrypt_sha_finalize()
813 hashcrypt_sha_one_block(base, &lastBlock.b[0]); in hashcrypt_sha_finalize()
827 lastBlock.b[0] = (uint8_t)0x80U; in hashcrypt_sha_finalize()
831 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in hashcrypt_sha_finalize()
832 hashcrypt_sha_one_block(base, &lastBlock.b[0]); in hashcrypt_sha_finalize()
1406 uint8_t lastBlock[HASHCRYPT_AES_BLOCK_SIZE] = {0}; in HASHCRYPT_AES_CryptCtr() local
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/cau3/
Dfsl_cau3.c1965 cau3_sha_block_t lastBlock; in cau3_hash_finalize() local
1992 (void)memset(&lastBlock, 0, sizeof(cau3_sha_block_t)); in cau3_hash_finalize()
2009 (void)cau3_memcpy(&lastBlock.b[0], &ctxInternal->blk.b[0], ctxInternal->blksz); in cau3_hash_finalize()
2010 lastBlock.b[ctxInternal->blksz] = (uint8_t)0x80U; in cau3_hash_finalize()
2011 lastBlock.w[15] = __REV(8u * ctxInternal->fullMessageSize); in cau3_hash_finalize()
2012 status = funcUpdate(base, &lastBlock.b[0], 1, ctxInternal->runningHash, kCAU3_TaskDonePoll); in cau3_hash_finalize()
2030 lastBlock.b[0] = (uint8_t)0x80U; in cau3_hash_finalize()
2038 lastBlock.w[15] = __REV(8u * ctxInternal->fullMessageSize); in cau3_hash_finalize()
2039 …status = funcUpdate(base, &lastBlock.b[0], 1, ctxInternal->runningHash, kCAU3_TaskDonePol… in cau3_hash_finalize()