Home
last modified time | relevance | path

Searched refs:bnS (Results 1 – 2 of 2) sorted by relevance

/external/tpm2/
DCpriECC.c1241 BIGNUM *bnS; in SignSM2() local
1257 bnS = BN_CTX_get(context); in SignSM2()
1322 if( !BN_mod_mul(bnS, bnD, bnR, bnN, context) // (r * dA) mod n in SignSM2()
1323 || !BN_mod_sub(bnS, bnK, bnS, bnN, context) // (k - (r * dA) mod n in SignSM2()
1324 || !BN_mod_mul(bnS, bnT, bnS, bnN, context))// t * (k - (r * dA) mod n in SignSM2()
1327 pAssert(cmp_bn2hex(bnS, in SignSM2()
1331 if(BN_is_zero(bnS)) in SignSM2()
1337 BnTo2B(&sOut->b, bnS, curveData->n->size); in SignSM2()
1434 BIGNUM *bnS; in ValidateSignatureEcdsa() local
1459 bnS = BN_CTX_get(context); in ValidateSignatureEcdsa()
[all …]
Dpart4.txt34504 1112 BIGNUM *bnS;
34523 1131 bnS = BN_CTX_get(context);
34602 1205 if( !BN_mod_mul(bnS, bnD, bnR, bnN, context) // (r * dA) mod n
34603 1206 || !BN_mod_sub(bnS, bnK, bnS, bnN, context) // (k - (r * dA) mod n
34604 1207 || !BN_mod_mul(bnS, bnT, bnS, bnN, context))// t * (k - (r * dA) mod n
34607 1210 pAssert(cmp_bn2hex(bnS,
34612 1215 if(BN_is_zero(bnS))
34620 1223 BnTo2B(&sOut->b, bnS, curveData->n->size);
34727 1298 BIGNUM *bnS;
34758 1329 bnS = BN_CTX_get(context);
[all …]