Lines Matching refs:retVal
34 CRYPT_RESULT retVal // IN: crypt error to evaluate in TranslateCryptErrors() argument
37 switch (retVal) in TranslateCryptErrors()
159 CRYPT_RESULT retVal = 0; in CryptStartHash() local
164 if((retVal = _cpri__StartHash(hashAlg, FALSE, &hashState->state)) > 0) in CryptStartHash()
166 return retVal; in CryptStartHash()
188 CRYPT_RESULT retVal = 0; in CryptStartHashSequence() local
193 if((retVal = _cpri__StartHash(hashAlg, TRUE, &hashState->state)) > 0) in CryptStartHashSequence()
195 return retVal; in CryptStartHashSequence()
220 CRYPT_RESULT retVal; in CryptStartHMAC() local
228 if((retVal = _cpri__StartHMAC(hashAlg, FALSE, &hashState->state, keySize, key, in CryptStartHMAC()
231 return retVal; in CryptStartHMAC()
257 CRYPT_RESULT retVal; in CryptStartHMACSequence() local
260 if((retVal = _cpri__StartHMAC(hashAlg, TRUE, &hashState->state, in CryptStartHMACSequence()
263 return retVal; in CryptStartHMACSequence()
465 UINT16 retVal = 0; in CryptCompleteHash2B() local
467 retVal = CryptCompleteHash(state, digest->size, digest->buffer); in CryptCompleteHash2B()
468 return retVal; in CryptCompleteHash2B()
536 UINT16 retVal = 0; in CryptCompleteHMAC2B() local
538 retVal = CryptCompleteHMAC(hmacState, digest->size, digest->buffer); in CryptCompleteHMAC2B()
539 return retVal; in CryptCompleteHMAC2B()
824 CRYPT_RESULT retVal; in CryptTestKeyRSA() local
831 retVal =_cpri__TestKeyRSA(d, e, n, p, q); in CryptTestKeyRSA()
832 if(retVal == CRYPT_SUCCESS) in CryptTestKeyRSA()
868 CRYPT_RESULT retVal; in CryptGenerateKeyRSA() local
878 retVal = _cpri__GenerateKeyRSA(&publicArea->unique.rsa.b, in CryptGenerateKeyRSA()
888 return TranslateCryptErrors(retVal); in CryptGenerateKeyRSA()
941 TPMT_RSA_DECRYPT *retVal = NULL; in CryptSelectRSAScheme() local
949 retVal = scheme; in CryptSelectRSAScheme()
956 retVal = (TPMT_RSA_DECRYPT *)keyScheme; in CryptSelectRSAScheme()
968 retVal = scheme; in CryptSelectRSAScheme()
971 return retVal; in CryptSelectRSAScheme()
1000 CRYPT_RESULT retVal = CRYPT_SUCCESS; in CryptDecryptRSA() local
1041 retVal = _cpri__DecryptRSA(&dSize, dataOut, &key, scheme->scheme, in CryptDecryptRSA()
1044 pAssert(retVal != CRYPT_SCHEME); in CryptDecryptRSA()
1049 result = TranslateCryptErrors(retVal); in CryptDecryptRSA()
1078 CRYPT_RESULT retVal; in CryptEncryptRSA() local
1107 retVal = _cpri__EncryptRSA(&cOutSize,cipherOut, &key, scheme->scheme, in CryptEncryptRSA()
1112 return TranslateCryptErrors(retVal); in CryptEncryptRSA()
1137 CRYPT_RESULT retVal; in CryptSignRSA() local
1156 retVal = _cpri__SignRSA(&signSize, in CryptSignRSA()
1165 result = TranslateCryptErrors(retVal); in CryptSignRSA()
1188 CRYPT_RESULT retVal; in CryptRSAVerifySignature() local
1198 retVal = _cpri__ValidateSignatureRSA(&key, in CryptRSAVerifySignature()
1208 if(retVal == CRYPT_FAIL) in CryptRSAVerifySignature()
1212 result = TranslateCryptErrors(retVal); in CryptRSAVerifySignature()
1383 CRYPT_RESULT retVal; in CryptEccPointMultiply() local
1393 retVal = _cpri__EccPointMultiply(pOut, curveId, dIn, pIn, n); in CryptEccPointMultiply()
1395 return TranslateCryptErrors(retVal); in CryptEccPointMultiply()
1420 CRYPT_RESULT retVal; in CryptGenerateKeyECC() local
1433 retVal = _cpri__GenerateKeyEcc(&publicArea->unique.ecc, in CryptGenerateKeyECC()
1439 return TranslateCryptErrors(retVal); in CryptGenerateKeyECC()
1465 CRYPT_RESULT retVal; in CryptSignECC() local
1482 retVal = _cpri__SignEcc(&signature->signature.ecdsa.signatureR, in CryptSignECC()
1491 if(CryptIsSplitSign(scheme->scheme) && retVal == CRYPT_SUCCESS) in CryptSignECC()
1494 return TranslateCryptErrors(retVal); in CryptSignECC()
1514 CRYPT_RESULT retVal; in CryptECCVerifySignature() local
1520 retVal = _cpri__ValidateSignatureEcc(&signature->signature.ecdsa.signatureR, in CryptECCVerifySignature()
1527 if(retVal == CRYPT_FAIL) in CryptECCVerifySignature()
1530 return TranslateCryptErrors(retVal); in CryptECCVerifySignature()