Lines Matching refs:lastBlock
802 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
1466 lastEncryptedCounter = lastBlock; in HASHCRYPT_AES_CryptCtr()
1470 … status = hashcrypt_aes_one_block(base, lastBlock, lastEncryptedCounter, HASHCRYPT_AES_BLOCK_SIZE); in HASHCRYPT_AES_CryptCtr()