Lines Matching refs:retVal

46    CRYPT_RESULT         retVal = CRYPT_SUCCESS;                // Assume success  in RsaPrivateExponent()  local
72 retVal = CRYPT_PARAMETER; in RsaPrivateExponent()
81 retVal = CRYPT_PARAMETER; // problem may be recoverable in RsaPrivateExponent()
101 retVal = CRYPT_PARAMETER; in RsaPrivateExponent()
113 return retVal; in RsaPrivateExponent()
151 CRYPT_RESULT retVal = CRYPT_SUCCESS; // Assume success in _cpri__TestKeyRSA() local
183 retVal = CRYPT_PARAMETER; in _cpri__TestKeyRSA()
193 retVal = CRYPT_PARAMETER; in _cpri__TestKeyRSA()
202 retVal = CRYPT_PARAMETER; in _cpri__TestKeyRSA()
213 retVal = CRYPT_PARAMETER; // problem may be recoverable in _cpri__TestKeyRSA()
232 retVal = CRYPT_PARAMETER; in _cpri__TestKeyRSA()
244 return retVal; in _cpri__TestKeyRSA()
267 CRYPT_RESULT retVal; in RSAEP() local
273 retVal = _math__ModExp(dInOutSize, dInOut, dInOutSize, dInOut, 4, exponent, in RSAEP()
276 pAssert(retVal != CRYPT_UNDERFLOW); in RSAEP()
277 return retVal; in RSAEP()
301 CRYPT_RESULT retVal; in RSADP() local
316 retVal = _math__ModExp(dInOutSize, dInOut, dInOutSize, dInOut, in RSADP()
320 pAssert(retVal != CRYPT_UNDERFLOW); in RSADP()
321 return retVal; in RSADP()
359 CRYPT_RESULT retVal = CRYPT_SUCCESS; in OaepEncode() local
376 retVal = _cpri__HashBlock(hashAlg, lSize, (BYTE *)label, hLen, pp); in OaepEncode()
394 if((retVal = _cpri__MGF1(dbSize, mask, hashAlg, hLen, seed)) < 0) in OaepEncode()
395 return retVal; // Don't expect an error because hash size is not zero in OaepEncode()
403 if((retVal = _cpri__MGF1(hLen, &padded[1], hashAlg, dbSize, pp)) < 0) in OaepEncode()
404 return retVal; // Don't expect zero here as the only case for zero in OaepEncode()
448 CRYPT_RESULT retVal = CRYPT_SUCCESS; in OaepDecode() local
464 if((retVal = _cpri__MGF1(hLen, seedMask, hashAlg, in OaepDecode()
466 return retVal; in OaepDecode()
473 if((retVal = _cpri__MGF1(paddedSize-hLen-1, mask, hashAlg, in OaepDecode()
475 return retVal; in OaepDecode()
483 if((retVal=_cpri__HashBlock(hashAlg, lSize,(BYTE *)label, hLen, seedMask)) < 0) in OaepDecode()
484 return retVal; in OaepDecode()
623 CRYPT_RESULT retVal; in PssEncode() local
655 if((retVal = _cpri__MGF1(mLen, eOut, hashAlg, hLen, &eOut[mLen])) < 0) in PssEncode()
711 CRYPT_RESULT retVal; in PssDecode() local
725 if((retVal = _cpri__MGF1(mLen, mask, hashAlg, hLen, &eIn[mLen])) < 0) in PssDecode()
726 return retVal; in PssDecode()
727 if(retVal == 0) in PssDecode()
771 retVal = _cpri__CompleteHash(&hashState, MAX_DIGEST_SIZE, mask); in PssDecode()
774 fail |= (retVal != hLen); in PssDecode()
940 CRYPT_RESULT retVal = CRYPT_SUCCESS; in _cpri__EncryptRSA() local
967 retVal = RSAES_PKSC1v1_5Encode(*cOutSize, cOut, dInSize, dIn); in _cpri__EncryptRSA()
970 retVal = OaepEncode(*cOutSize, cOut, hashAlg, label, dInSize, dIn in _cpri__EncryptRSA()
981 if(retVal != CRYPT_SUCCESS) in _cpri__EncryptRSA()
982 return retVal; in _cpri__EncryptRSA()
1013 CRYPT_RESULT retVal; in _cpri__DecryptRSA() local
1021 if((retVal = RSADP(cInSize, cIn, key)) != CRYPT_SUCCESS) in _cpri__DecryptRSA()
1022 return retVal; // Decryption failed in _cpri__DecryptRSA()
1066 CRYPT_RESULT retVal; in _cpri__SignRSA() local
1078 retVal = PssEncode(*sigOutSize, sigOut, hashAlg, hInSize, hIn in _cpri__SignRSA()
1086 retVal = RSASSA_Encode(*sigOutSize, sigOut, hashAlg, hInSize, hIn); in _cpri__SignRSA()
1091 if(retVal != CRYPT_SUCCESS) in _cpri__SignRSA()
1092 return retVal; in _cpri__SignRSA()
1123 CRYPT_RESULT retVal; in _cpri__ValidateSignatureRSA() local
1130 if((retVal = RSAEP(sigInSize, sigIn, key)) != CRYPT_SUCCESS) in _cpri__ValidateSignatureRSA()
1186 CRYPT_RESULT retVal; in _cpri__GenerateKeyRSA() local
1254 retVal = CRYPT_CANCEL; in _cpri__GenerateKeyRSA()
1318 if((retVal = (CRYPT_RESULT)BN_is_prime_ex(bnP, in _cpri__GenerateKeyRSA()
1321 if(retVal != 1) in _cpri__GenerateKeyRSA()
1389 retVal = CRYPT_SUCCESS; in _cpri__GenerateKeyRSA()
1392 retVal = CRYPT_FAIL; in _cpri__GenerateKeyRSA()
1402 return retVal; in _cpri__GenerateKeyRSA()