Searched refs:PSSize (Results 1 – 2 of 2) sorted by relevance
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/ |
D | cc_rsa_pkcs_ver15_util.c | 195 int32_t PSSize; in RsaEmsaPkcs1v15Encode() local 221 PSSize = K-MSize-hashAlgIdSize-3; /*therefore, PSSize >= PS_MIN_LEN*/ in RsaEmsaPkcs1v15Encode() 227 PSSize = K-DataInSize-3; in RsaEmsaPkcs1v15Encode() 233 CC_PalMemSet(&pOut[2], 0xFF, PSSize); in RsaEmsaPkcs1v15Encode() 235 pOut[2+PSSize] = 0x00; in RsaEmsaPkcs1v15Encode() 238 CC_PalMemCopy(&pOut[3+PSSize], pHashAlgId, hashAlgIdSize); in RsaEmsaPkcs1v15Encode() 242 CC_PalMemCopy(&pOut[3+PSSize], DataIn_ptr, DataInSize); in RsaEmsaPkcs1v15Encode()
|
D | cc_rsa_schemes.c | 110 uint32_t PSSize; in CC_RsaSchemesEncrypt() local 183 PSSize = K - 3 - DataInSize; in CC_RsaSchemesEncrypt() 193 Error = RsaGenRndNonZeroVect(rndContext_ptr, &EB_buff[2], PSSize); in CC_RsaSchemesEncrypt() 365 int32_t PSSize, i; in CC_RsaSchemesDecrypt() local 543 PSSize = i - 2; in CC_RsaSchemesDecrypt() 544 if (PSSize < PS_MIN_LEN) { in CC_RsaSchemesDecrypt() 549 if (PSSize + 3 > K) { in CC_RsaSchemesDecrypt() 556 if (*OutputSize_ptr < (uint32_t)(K - 3 - PSSize)) { in CC_RsaSchemesDecrypt() 560 … *OutputSize_ptr = K - 3 - PSSize; /* output actual size of decrypted message*/ in CC_RsaSchemesDecrypt() 564 CC_PalMemCopy(Output_ptr, &EB_buff[3 + PSSize], *OutputSize_ptr); in CC_RsaSchemesDecrypt()
|