Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 6 of 6) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sha/
Dfsl_sha.c46 …sha_block_t blk; /*!< memory buffer. only full 64-byte blocks are written to SHA durin… member
261 static void sha_one_block(SHA_Type *base, const uint8_t *blk) in sha_one_block() argument
267 if (((uintptr_t)blk & 0x3u) != 0U) in sha_one_block()
269 (void)sha_memcpy(temp, (const uint32_t *)(uintptr_t)blk, SHA_BLOCK_SIZE); in sha_one_block()
274 actBlk = (const uint32_t *)(uintptr_t)blk; in sha_one_block()
311 (void)sha_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in sha_process_message_data()
316 sha_one_block(base, &ctxInternal->blk.b[0]); in sha_process_message_data()
328 (void)sha_memcpy(&ctxInternal->blk.b[0], message, messageSize); in sha_process_message_data()
362 (void)sha_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in sha_process_message_data_master()
367 sha_one_block(base, &ctxInternal->blk.b[0]); in sha_process_message_data_master()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/hashcrypt/
Dfsl_hashcrypt.c47 …hashcrypt_sha_block_t blk; /*!< memory buffer. only full 64-byte blocks are written to SHA during … member
658 static void hashcrypt_sha_one_block(HASHCRYPT_Type *base, const uint8_t *blk) in hashcrypt_sha_one_block() argument
664 if (0U != ((uintptr_t)blk & 0x3u)) in hashcrypt_sha_one_block()
666 (void)hashcrypt_memcpy(temp, (const uint32_t *)(uintptr_t)blk, SHA_BLOCK_SIZE); in hashcrypt_sha_one_block()
671 actBlk = (const uint32_t *)(uintptr_t)blk; in hashcrypt_sha_one_block()
706 (void)hashcrypt_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in hashcrypt_sha_process_message_data()
711 hashcrypt_sha_one_block(base, &ctxInternal->blk.b[0]); in hashcrypt_sha_process_message_data()
785 (void)hashcrypt_memcpy(&ctxInternal->blk.b[0], message, messageSize); in hashcrypt_sha_process_message_data()
810 (void)hashcrypt_memcpy(&lastBlock.b[0], &ctxInternal->blk.b[0], ctxInternal->blksz); in hashcrypt_sha_finalize()
819 ctxInternal->blk.b[ctxInternal->blksz] = (uint8_t)0x80U; in hashcrypt_sha_finalize()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ltc/
Dfsl_ltc.c805 static void ltc_move_block_to_ififo(LTC_Type *base, const ltc_xcm_block_t *blk, uint32_t num_bytes) in ltc_move_block_to_ififo() argument
826 base->IFIFO = blk->w[i++]; in ltc_move_block_to_ififo()
833 ltc_xcm_block_t blk; in ltc_move_to_ififo() local
840 ltc_memcpy(&blk, data, 16u); in ltc_move_to_ififo()
846 ltc_memcpy(&blk, &blkZero, sizeof(ltc_xcm_block_t)); /* memset blk to zeroes */ in ltc_move_to_ififo()
847 ltc_memcpy(&blk, data, dataSize); in ltc_move_to_ififo()
850 … ltc_move_block_to_ififo(base, (const ltc_xcm_block_t *)(uint32_t)&blk, sizeof(ltc_xcm_block_t)); in ltc_move_to_ififo()
1003 ltc_xcm_block_t blk = {{0x0u, 0x0u, 0x0u, 0x0u}}; in ltc_aes_received_mac_compare() local
1014 ltc_memcpy(&blk.b[0], &tag[0], tagSize); in ltc_aes_received_mac_compare()
1016 ltc_move_block_to_ififo(base, (const ltc_xcm_block_t *)(uint32_t)&blk, tagSize); in ltc_aes_received_mac_compare()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/dcp/
Dfsl_dcp.c45 …dcp_hash_block_t blk; /*!< memory buffer. only full blocks are written to DCP during ha… member
1074 (void)dcp_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in dcp_hash_process_message_data()
1079 status = dcp_hash_update(base, ctxInternal, &ctxInternal->blk.b[0], DCP_HASH_BLOCK_SIZE); in dcp_hash_process_message_data()
1100 (void)dcp_memcpy(&ctxInternal->blk.b[0], message, messageSize); in dcp_hash_process_message_data()
1120 status = dcp_hash_update(base, ctxInternal, &ctxInternal->blk.b[0], ctxInternal->blksz); in dcp_hash_finalize()
1227 const uint32_t j = sizeof(ctxInternal->blk.w) / sizeof(ctxInternal->blk.w[0]); in DCP_HASH_Init()
1230 ctxInternal->blk.w[i] = 0u; in DCP_HASH_Init()
1283 (void)dcp_memcpy((&ctxInternal->blk.b[0]) + ctxInternal->blksz, input, inputSize); in DCP_HASH_Update()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/cau3/
Dfsl_cau3.c105 …cau3_hash_block_t blk; /*!< memory buffer. only full blocks are written to CAU3 during hash… member
1901 (void)cau3_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in cau3_hash_process_message_data()
1926 …status = funcUpdate(base, &ctxInternal->blk.b[0], CAU3_HASH_BLOCK_SIZE / 64u, ctxInternal->running… in cau3_hash_process_message_data()
1947 (void)cau3_memcpy(&ctxInternal->blk.b[0], message, messageSize); in cau3_hash_process_message_data()
1996 …status = funcUpdate(base, &ctxInternal->blk.b[0], 1, ctxInternal->runningHash, kCAU3_TaskDonePoll); in cau3_hash_finalize()
2002 (void)memmove(&ctxInternal->blk.b[0], &ctxInternal->blk.b[64], ctxInternal->blksz); in cau3_hash_finalize()
2009 (void)cau3_memcpy(&lastBlock.b[0], &ctxInternal->blk.b[0], ctxInternal->blksz); in cau3_hash_finalize()
2022 ctxInternal->blk.b[ctxInternal->blksz] = (uint8_t)0x80U; in cau3_hash_finalize()
2025 ctxInternal->blk.b[i] = 0; in cau3_hash_finalize()
2033 …status = funcUpdate(base, &ctxInternal->blk.b[0], 1, ctxInternal->runningHash, kCAU3_TaskDonePoll); in cau3_hash_finalize()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/caam/
Dfsl_caam.c141 …caam_hash_block_t blk; /*!< memory buffer. only full 64-byte blocks are written to CAAM during has… member
191 …caam_hash_block_t blk; /*!< memory buffer. only full 64-byte blocks are written to CAAM during has… member
879 caam_xcm_block_t blk; in caam_aes_ccm_context_init() local
887 (void)caam_memcpy(&blk, &blkZero, sizeof(blk)); in caam_aes_ccm_context_init()
895 blk.b[0] = flags_field; /* flags field */ in caam_aes_ccm_context_init()
896 blk.w[3] = swap_bytes(inputSize); /* message size, most significant byte first */ in caam_aes_ccm_context_init()
897 (void)caam_memcpy(&blk.b[1], iv, ivSize); /* nonce field */ in caam_aes_ccm_context_init()
901 (void)caam_memcpy(b0, (void *)&blk.b[0], 16); in caam_aes_ccm_context_init()
905 (void)caam_memcpy(&blk, &blkZero, sizeof(blk)); /* ctr(0) field = zero */ in caam_aes_ccm_context_init()
906 blk.b[0] = q - 1U; /* flags field */ in caam_aes_ccm_context_init()
[all …]