Lines Matching refs:bnS

84     bigNum                   bnS,           // OUT: 's' component of the signature  in BnSchnorrSign()  argument
105 BnDiv(NULL, bnS, bnT1, bnN); in BnSchnorrSign()
106 return (BnEqualZero(bnS)) ? TPM_RC_NO_RESULT : TPM_RC_SUCCESS; in BnSchnorrSign()
117 bigNum bnS, // OUT: 's' component of the signature in BnSignEcdsa() argument
179 BnModMult(bnS, bnR, bnD, order); in BnSignEcdsa()
181 BnAdd(bnS, bnE, bnS); in BnSignEcdsa()
183 BnModMult(bnS, bnIk, bnS, order); in BnSignEcdsa()
186 } while(BnEqualZero(bnS)); in BnSignEcdsa()
211 bigNum bnS, // OUT: 's' component of the signature in BnSignEcdaa() argument
260 retVal = BnSchnorrSign(bnS, bnR, bnT, bnD, in BnSignEcdaa()
311 bigNum bnS, // OUT: 's' component of the signature in BnSignEcSchnorr() argument
343 BnSetWord(bnS, 0); in BnSignEcSchnorr()
364 retVal = BnSchnorrSign(bnS, bnK, bnR, bnD, CurveGetOrder(C)); in BnSignEcSchnorr()
402 bigNum bnS, // OUT: 's' component of the signature in BnSignEcSm2() argument
462 BnModMult(bnS, bnR, bnD, order); in BnSignEcSm2()
464 BnSub(bnS, order, bnS); in BnSignEcSm2()
465 BnAdd(bnS, bnK, bnS); in BnSignEcSm2()
466 BnModMult(bnS, bnS, bnT, order); in BnSignEcSm2()
468 pAssert(BnHexEqual(bnS, "6FC6DAC32C5D5CF10C77DFB20F7C2EB6" in BnSignEcSm2()
471 if(BnEqualZero(bnS)) in BnSignEcSm2()
481 pAssert(BnHexEqual(bnS, "6FC6DAC32C5D5CF10C77DFB20F7C2EB6" in BnSignEcSm2()
513 ECC_NUM(bnS); in CryptEccSign()
529 retVal = BnSignEcdsa(bnR, bnS, E, bnD, digest, rand); in CryptEccSign()
533 retVal = BnSignEcdaa(&signature->signature.ecdaa.signatureR, bnS, E, in CryptEccSign()
540 retVal = BnSignEcSchnorr(bnR, bnS, E, bnD, digest, in CryptEccSign()
547 retVal = BnSignEcSm2(bnR, bnS, E, bnD, digest, rand); in CryptEccSign()
560 if(bnS != NULL) in CryptEccSign()
561 BnTo2B(bnS, &signature->signature.ecdaa.signatureS.b, orderBytes); in CryptEccSign()
580 bigNum bnS, // IN: 's' component of the signature in BnValidateSignatureEcdsa() argument
607 if(!BnModInverse(bnW, bnS, order)) in BnValidateSignatureEcdsa()
640 bigNum bnS, // IN: 's' component of the signature in BnValidateSignatureEcSm2() argument
659 pAssert(BnHexEqual(bnS, in BnValidateSignatureEcSm2()
664 BnAdd(bnT, bnR, bnS); in BnValidateSignatureEcSm2()
676 BnCopy(bnT, bnS); in BnValidateSignatureEcSm2()
678 OK = BnEccModMult2(P, NULL, bnS, ecQ, bnT, E); in BnValidateSignatureEcSm2()
708 bigNum bnS, // IN: 's' component of the signature in BnValidateSignatureEcSchnorr() argument
732 OK = BnPointMult(ecE, CurveGetG(C), bnS, ecQ, bnRn, E) == TPM_RC_SUCCESS; in BnValidateSignatureEcSchnorr()
768 ECC_NUM(bnS); in CryptEccValidateSignature()
797 BnFrom2B(bnS, &signature->signature.ecdsa.signatureS.b); in CryptEccValidateSignature()
800 if(BnEqualZero(bnR) || BnEqualZero(bnS)) in CryptEccValidateSignature()
802 if((BnUnsignedCmp(bnS, 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()