Home
last modified time | relevance | path

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

/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_chacha20_poly1305.c310 uint32_t lastBlock[CC_POLY_BLOCK_SIZE_IN_WORDS]; in cc3xx_chacha20_poly1305_update() local
312 lastBlock[0] = context->ad_len; in cc3xx_chacha20_poly1305_update()
313 lastBlock[1] = 0; in cc3xx_chacha20_poly1305_update()
314 lastBlock[2] = context->plaintext_len; in cc3xx_chacha20_poly1305_update()
315 lastBlock[3] = 0; in cc3xx_chacha20_poly1305_update()
316 rc = PolyUpdate(&context->poly, (const uint8_t *)lastBlock, in cc3xx_chacha20_poly1305_update()
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/poly/
Dpoly.c398 uint32_t lastBlock[CC_POLY_BLOCK_SIZE_IN_WORDS]; in PolyMacCalc() local
441 lastBlock[0] = addDataSize; in PolyMacCalc()
442 lastBlock[1] = 0; in PolyMacCalc()
443 lastBlock[2] = dataInSize; in PolyMacCalc()
444 lastBlock[3] = 0; in PolyMacCalc()
446 rc = PolyAccCalc((uint8_t*)lastBlock, CC_POLY_BLOCK_SIZE_IN_BYTES, false); in PolyMacCalc()
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/common/Native_Driver/drivers/
Dfsl_hashcrypt.c747 hashcrypt_sha_block_t lastBlock; in hashcrypt_sha_finalize() local
749 (void)memset(&lastBlock, 0, sizeof(hashcrypt_sha_block_t)); in hashcrypt_sha_finalize()
755 (void)hashcrypt_memcpy(&lastBlock.b[0], &ctxInternal->blk.b[0], ctxInternal->blksz); in hashcrypt_sha_finalize()
756 lastBlock.b[ctxInternal->blksz] = (uint8_t)0x80U; in hashcrypt_sha_finalize()
757 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in hashcrypt_sha_finalize()
758 hashcrypt_sha_one_block(base, &lastBlock.b[0]); in hashcrypt_sha_finalize()
772 lastBlock.b[0] = (uint8_t)0x80U; in hashcrypt_sha_finalize()
776 lastBlock.w[SHA_BLOCK_SIZE / 4U - 1U] = swap_bytes(8u * ctxInternal->fullMessageSize); in hashcrypt_sha_finalize()
777 hashcrypt_sha_one_block(base, &lastBlock.b[0]); in hashcrypt_sha_finalize()
1320 uint8_t lastBlock[HASHCRYPT_AES_BLOCK_SIZE] = {0}; in HASHCRYPT_AES_CryptCtr() local
[all …]