Lines Matching refs:bnR
86 bigNum bnR, // IN: the signature 'r' value in BnSchnorrSign() argument
96 BnDiv(NULL, bnT1, bnR, bnN); in BnSchnorrSign()
116 bigNum bnR, // OUT: 'r' component of the signature in BnSignEcdsa() argument
164 BnCopy(bnR, ecR->x); in BnSignEcdsa()
179 BnModMult(bnS, bnR, bnD, order); in BnSignEcdsa()
236 ECC_INITIALIZED(bnR, &r); in BnSignEcdaa()
260 retVal = BnSchnorrSign(bnS, bnR, bnT, bnD, in BnSignEcdaa()
310 bigNum bnR, // OUT: 'r' component of the signature in BnSignEcSchnorr() argument
342 BnSetWord(bnR, 0); in BnSignEcSchnorr()
362 BnFrom2B(bnR, e); in BnSignEcSchnorr()
364 retVal = BnSchnorrSign(bnS, bnK, bnR, bnD, CurveGetOrder(C)); in BnSignEcSchnorr()
401 bigNum bnR, // OUT: 'r' component of the signature in BnSignEcSm2() argument
440 BnAdd(bnR, bnE, Q1->x); in BnSignEcSm2()
441 BnMod(bnR, order); in BnSignEcSm2()
443 pAssert(BnHexEqual(bnR, "40F1EC59F793D9F49E09DCEF49130D41" in BnSignEcSm2()
447 if(BnEqualZero(bnR)) in BnSignEcSm2()
449 BnAdd(bnT, bnK, bnR); in BnSignEcSm2()
462 BnModMult(bnS, bnR, bnD, order); in BnSignEcSm2()
479 pAssert(BnHexEqual(bnR, "40F1EC59F793D9F49E09DCEF49130D41" in BnSignEcSm2()
512 ECC_NUM(bnR); in CryptEccSign()
529 retVal = BnSignEcdsa(bnR, bnS, E, bnD, digest, rand); in CryptEccSign()
535 bnR = NULL; in CryptEccSign()
540 retVal = BnSignEcSchnorr(bnR, bnS, E, bnD, digest, in CryptEccSign()
547 retVal = BnSignEcSm2(bnR, bnS, E, bnD, digest, rand); in CryptEccSign()
558 if(bnR != NULL) in CryptEccSign()
559 BnTo2B(bnR, &signature->signature.ecdaa.signatureR.b, orderBytes); in CryptEccSign()
579 bigNum bnR, // IN: 'r' component of the signature in BnValidateSignatureEcdsa() argument
611 BnModMult(bnU2, bnR, bnW, order); in BnValidateSignatureEcdsa()
621 if(BnUnsignedCmp(ecR->x, bnR) != 0) in BnValidateSignatureEcdsa()
639 bigNum bnR, // IN: 'r' component of the signature in BnValidateSignatureEcSm2() argument
656 pAssert(BnHexEqual(bnR, in BnValidateSignatureEcSm2()
664 BnAdd(bnT, bnR, bnS); in BnValidateSignatureEcSm2()
689 OK = OK && (BnUnsignedCmp(bnR, bnRp) == 0); in BnValidateSignatureEcSm2()
707 bigNum bnR, // IN: 'r' component of the signature in BnValidateSignatureEcSchnorr() argument
728 BnMod(bnR, order); in BnValidateSignatureEcSchnorr()
730 BnSub(bnRn, order, bnR); in BnValidateSignatureEcSchnorr()
748 OK = BnUnsignedCmp(bnEx, bnR) == 0; in BnValidateSignatureEcSchnorr()
767 ECC_NUM(bnR); in CryptEccValidateSignature()
796 BnFrom2B(bnR, &signature->signature.ecdsa.signatureR.b); in CryptEccValidateSignature()
800 if(BnEqualZero(bnR) || BnEqualZero(bnS)) in CryptEccValidateSignature()
803 || (BnUnsignedCmp(bnR, order) >= 0)) in CryptEccValidateSignature()
809 retVal = BnValidateSignatureEcdsa(bnR, bnS, E, ecQ, digest); in CryptEccValidateSignature()
814 retVal = BnValidateSignatureEcSchnorr(bnR, bnS, in CryptEccValidateSignature()
821 retVal = BnValidateSignatureEcSm2(bnR, bnS, E, ecQ, digest); in CryptEccValidateSignature()
862 ECC_INITIALIZED(bnR, r); in CryptEccCommitCompute()
899 if(!BnIsValidPrivateEcc(bnR, curve)) in CryptEccCommitCompute()
901 if((retVal = BnPointMult(pL, pB, bnR, NULL, NULL, curve)) != TPM_RC_SUCCESS) in CryptEccCommitCompute()
921 if((retVal = BnPointMult(pE, pM, bnR, NULL, NULL, curve)) != TPM_RC_SUCCESS) in CryptEccCommitCompute()