Home
last modified time | relevance | path

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

/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/kdf/
Dcc_hkdf.c85 uint32_t HashOutputSizeBytes; in HkdfExtract() local
98 … Error = GetParamsFromHKDFHashMode(HKDFhashMode, &hashMode, &HashOutputSizeBytes, &BlockSizeBytes); in HkdfExtract()
102 if (*prk_len_ptr < HashOutputSizeBytes ) { in HkdfExtract()
112 salt_len = (uint16_t)HashOutputSizeBytes; in HkdfExtract()
126 CC_PalMemCopy(prk_ptr,(uint8_t *)HmacResultBuff, HashOutputSizeBytes); in HkdfExtract()
127 *prk_len_ptr = HashOutputSizeBytes; in HkdfExtract()
161 uint32_t HashOutputSizeBytes; in HkdfExpand() local
180 … Error = GetParamsFromHKDFHashMode(HKDFhashMode, &hashMode, &HashOutputSizeBytes, &BlockSizeBytes); in HkdfExpand()
184 if (prk_len < HashOutputSizeBytes) { in HkdfExpand()
188 N = okm_len / HashOutputSizeBytes; in HkdfExpand()
[all …]
Dmbedtls_cc_hkdf.c93 uint32_t HashOutputSizeBytes; in HkdfExtract() local
108 …Error = GetParamsFromHKDFHashMode(HKDFhashMode, &hashMode, &HashOutputSizeBytes, &BlockSizeBytes, … in HkdfExtract()
112 if (*prk_len_ptr < HashOutputSizeBytes ) { in HkdfExtract()
122 salt_len = (uint16_t)HashOutputSizeBytes; in HkdfExtract()
140 CC_PalMemCopy(prk_ptr,(uint8_t *)HmacResultBuff, HashOutputSizeBytes); in HkdfExtract()
141 *prk_len_ptr = HashOutputSizeBytes; in HkdfExtract()
175 uint32_t HashOutputSizeBytes; in HkdfExpand() local
195 …Error = GetParamsFromHKDFHashMode(HKDFhashMode, &hashMode, &HashOutputSizeBytes, &BlockSizeBytes, … in HkdfExpand()
199 if (prk_len < HashOutputSizeBytes) { in HkdfExpand()
203 N = okm_len / HashOutputSizeBytes; in HkdfExpand()
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_schemes.c359 uint16_t HashOutputSizeBytes; in CC_RsaSchemesDecrypt() local
453 HashOutputSizeBytes = CC_HASH_SHA1_DIGEST_SIZE_IN_BYTES; in CC_RsaSchemesDecrypt()
457 HashOutputSizeBytes = CC_HASH_SHA224_DIGEST_SIZE_IN_BYTES; in CC_RsaSchemesDecrypt()
461 HashOutputSizeBytes = CC_HASH_SHA256_DIGEST_SIZE_IN_BYTES; in CC_RsaSchemesDecrypt()
465 HashOutputSizeBytes = CC_HASH_SHA384_DIGEST_SIZE_IN_BYTES; in CC_RsaSchemesDecrypt()
469 HashOutputSizeBytes = CC_HASH_SHA512_DIGEST_SIZE_IN_BYTES; in CC_RsaSchemesDecrypt()
476 if (K < 2*HashOutputSizeBytes + 2) in CC_RsaSchemesDecrypt()