Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sha/
Dfsl_sha.c47 size_t blksz; /*!< number of valid bytes in memory buffer */ member
308 if (ctxInternal->blksz != 0U) in sha_process_message_data()
310 size_t toCopy = SHA_BLOCK_SIZE - ctxInternal->blksz; in sha_process_message_data()
311 (void)sha_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in sha_process_message_data()
329 ctxInternal->blksz = messageSize; in sha_process_message_data()
359 if (ctxInternal->blksz != 0U) in sha_process_message_data_master()
361 size_t toCopy = SHA_BLOCK_SIZE - ctxInternal->blksz; in sha_process_message_data_master()
362 (void)sha_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in sha_process_message_data_master()
403 ctxInternal->blksz = messageSize; in sha_process_message_data_master()
429 if (ctxInternal->blksz <= 55u) in sha_finalize()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/hashcrypt/
Dfsl_hashcrypt.c48 size_t blksz; /*!< number of valid bytes in memory buffer */ member
703 if (ctxInternal->blksz != 0U) in hashcrypt_sha_process_message_data()
705 size_t toCopy = SHA_BLOCK_SIZE - ctxInternal->blksz; in hashcrypt_sha_process_message_data()
706 (void)hashcrypt_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in hashcrypt_sha_process_message_data()
786 ctxInternal->blksz = messageSize; in hashcrypt_sha_process_message_data()
807 if (ctxInternal->blksz <= 55u) 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()
817 if (ctxInternal->blksz < SHA_BLOCK_SIZE) 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/dcp/
Dfsl_dcp.c46 size_t blksz; /*!< number of valid bytes in memory buffer */ member
1071 if (ctxInternal->blksz > 0U) in dcp_hash_process_message_data()
1073 size_t toCopy = DCP_HASH_BLOCK_SIZE - ctxInternal->blksz; in dcp_hash_process_message_data()
1074 (void)dcp_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in dcp_hash_process_message_data()
1101 ctxInternal->blksz = messageSize; in dcp_hash_process_message_data()
1120 status = dcp_hash_update(base, ctxInternal, &ctxInternal->blk.b[0], ctxInternal->blksz); in dcp_hash_finalize()
1225 ctxInternal->blksz = 0u; in DCP_HASH_Init()
1281 if ((ctxInternal->blksz + inputSize) <= blockSize) in DCP_HASH_Update()
1283 (void)dcp_memcpy((&ctxInternal->blk.b[0]) + ctxInternal->blksz, input, inputSize); in DCP_HASH_Update()
1284 ctxInternal->blksz += inputSize; in DCP_HASH_Update()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/cau3/
Dfsl_cau3.c106 size_t blksz; /*!< number of valid bytes in memory buffer */ member
1900 size_t toCopy = CAU3_HASH_BLOCK_SIZE - ctxInternal->blksz; in cau3_hash_process_message_data()
1901 (void)cau3_memcpy(&ctxInternal->blk.b[ctxInternal->blksz], message, toCopy); in cau3_hash_process_message_data()
1948 ctxInternal->blksz = messageSize; in cau3_hash_process_message_data()
1994 while (ctxInternal->blksz >= 64u) in cau3_hash_finalize()
2001 ctxInternal->blksz -= 64u; in cau3_hash_finalize()
2002 (void)memmove(&ctxInternal->blk.b[0], &ctxInternal->blk.b[64], ctxInternal->blksz); in cau3_hash_finalize()
2006 if (ctxInternal->blksz <= 55u) 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()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ltc/
Dfsl_ltc.c2992 uint32_t blksz; /*!< number of valid bytes in memory buffer */ member
3336 ctx->blksz = dataSize; in ltc_hash_move_to_ififo()
3355 if (0U != ctx->blksz) in ltc_hash_merge_and_flush_buf()
3357 sz = blockSize - ctx->blksz; in ltc_hash_merge_and_flush_buf()
3362 ltc_memcpy(ctx->blk.b + ctx->blksz, input, sz); in ltc_hash_merge_and_flush_buf()
3365 ctx->blksz += sz; in ltc_hash_merge_and_flush_buf()
3367 if (ctx->blksz == blockSize) in ltc_hash_merge_and_flush_buf()
3371 ctx->blksz = 0; in ltc_hash_merge_and_flush_buf()
3418 if (dataSize + ctx->blksz > blockSize) in ltc_hash_move_rest_to_context()
3432 ctx->blksz = dataSize; in ltc_hash_move_rest_to_context()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/caam/
Dfsl_caam.c143 uint32_t blksz; /*!< number of valid bytes in memory buffer */ member
193 uint32_t blksz; /*!< number of valid bytes in memory buffer */ member
2676 uint32_t ctxBlksz = (ctxInternal != NULL) ? ctxInternal->blksz : 0U; in caam_hash_sgt_insert()
2967 ctxInternal->blksz = 0u; in CAAM_HASH_Init()
3026 if ((ctxInternal->blksz + inputSize) <= CAAM_HASH_BLOCK_SIZE) in CAAM_HASH_Update()
3028 (void)caam_memcpy((&ctxInternal->blk.b[0]) + ctxInternal->blksz, input, inputSize); in CAAM_HASH_Update()
3029 ctxInternal->blksz += inputSize; in CAAM_HASH_Update()
3080 ctxInternal->blksz = numRemain; in CAAM_HASH_Update()
3126 uint32_t currSgtEntry = ctxInternal->blksz; in CAAM_HASH_UpdateNonBlocking()
3137 ctxInternal->blksz++; in CAAM_HASH_UpdateNonBlocking()
[all …]