Home
last modified time | relevance | path

Searched refs:HashOutputSize (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_oaep.c72 uint32_t HashOutputSize; in RsaPssOaepEncode() local
111 HashOutputSize = CC_HASH_MD5_DIGEST_SIZE_IN_BYTES; in RsaPssOaepEncode()
114 HashOutputSize = CC_HASH_SHA1_DIGEST_SIZE_IN_BYTES; in RsaPssOaepEncode()
117 HashOutputSize = CC_HASH_SHA224_DIGEST_SIZE_IN_BYTES; in RsaPssOaepEncode()
120 HashOutputSize = CC_HASH_SHA256_DIGEST_SIZE_IN_BYTES; in RsaPssOaepEncode()
123 HashOutputSize = CC_HASH_SHA384_DIGEST_SIZE_IN_BYTES; in RsaPssOaepEncode()
126 HashOutputSize = CC_HASH_SHA512_DIGEST_SIZE_IN_BYTES; in RsaPssOaepEncode()
159 if ((uint32_t)MSize + 2 * HashOutputSize + VersionConstant > emLen) in RsaPssOaepEncode()
172 …CC_PalMemSetZero((uint8_t*)&EM_ptr[2*HashOutputSize], emLen-MSize-2*HashOutputSize-VersionConstant… in RsaPssOaepEncode()
229 …lMemCopy(&EM_ptr[HashOutputSize], (uint8_t *)(((CCRsaOaepData_t*)((void*)PrimeData_ptr->InternalBu… in RsaPssOaepEncode()
[all …]
Dcc_rsa_schemes.c101 uint8_t HashOutputSize; in CC_RsaSchemesEncrypt() local
216 HashOutputSize = CC_HASH_SHA1_DIGEST_SIZE_IN_WORDS*CC_32BIT_WORD_SIZE; in CC_RsaSchemesEncrypt()
220 HashOutputSize = CC_HASH_SHA224_DIGEST_SIZE_IN_WORDS*CC_32BIT_WORD_SIZE; in CC_RsaSchemesEncrypt()
224 HashOutputSize = CC_HASH_SHA256_DIGEST_SIZE_IN_WORDS*CC_32BIT_WORD_SIZE; in CC_RsaSchemesEncrypt()
228 HashOutputSize = CC_HASH_SHA384_DIGEST_SIZE_IN_WORDS*CC_32BIT_WORD_SIZE; in CC_RsaSchemesEncrypt()
232 HashOutputSize = CC_HASH_SHA512_DIGEST_SIZE_IN_WORDS*CC_32BIT_WORD_SIZE; in CC_RsaSchemesEncrypt()
240 if ((uint32_t)DataInSize + 2 * HashOutputSize + 2 > K) in CC_RsaSchemesEncrypt()