Home
last modified time | relevance | path

Searched refs:binv (Results 1 – 12 of 12) sorted by relevance

/freebsd/crypto/libecc/src/sig/
H A Dfuzzing_ecgdsa.c55 nn b, binv; in ecgdsa_sign_raw() local
56 b.magic = binv.magic = WORD(0); in ecgdsa_sign_raw()
196 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in ecgdsa_sign_raw()
197 ret = nn_mod_mul(&s, &s, &binv, q); EG(ret, err); in ecgdsa_sign_raw()
243 nn_uninit(&binv); in ecgdsa_sign_raw()
H A Dfuzzing_ecrdsa.c96 nn b, binv; in ecrdsa_sign_raw() local
97 b.magic = binv.magic = WORD(0); in ecrdsa_sign_raw()
229 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in ecrdsa_sign_raw()
230 ret = nn_mod_mul(&s, &s, &binv, q); EG(ret, err); in ecrdsa_sign_raw()
277 nn_uninit(&binv); in ecrdsa_sign_raw()
H A Decsdsa_common.c283 nn b, binv; in __ecsdsa_sign_finalize() local
284 b.magic = binv.magic = WORD(0); in __ecsdsa_sign_finalize()
355 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in __ecsdsa_sign_finalize()
356 ret = nn_mod_mul(&s, &s, &binv, q); EG(ret, err); in __ecsdsa_sign_finalize()
379 nn_uninit(&binv); in __ecsdsa_sign_finalize()
H A Decrdsa.c209 nn b, binv; in _ecrdsa_sign_finalize() local
210 b.magic = binv.magic = WORD(0); in _ecrdsa_sign_finalize()
333 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in _ecrdsa_sign_finalize()
334 ret = nn_mod_mul(&s, &s, &binv, q); EG(ret, err); in _ecrdsa_sign_finalize()
360 nn_uninit(&binv); in _ecrdsa_sign_finalize()
H A Decgdsa.c194 nn b, binv; in _ecgdsa_sign_finalize() local
195 b.magic = binv.magic = WORD(0); in _ecgdsa_sign_finalize()
334 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in _ecgdsa_sign_finalize()
335 ret = nn_mod_mul(&s, &s, &binv, q); EG(ret, err); in _ecgdsa_sign_finalize()
358 nn_uninit(&binv); in _ecgdsa_sign_finalize()
H A Deckcdsa.c312 nn b, binv; in _eckcdsa_sign_finalize() local
313 b.magic = binv.magic = WORD(0); in _eckcdsa_sign_finalize()
443 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in _eckcdsa_sign_finalize()
457 ret = nn_mod_mul(&s, &s, &binv, q); EG(ret, err); in _eckcdsa_sign_finalize()
481 nn_uninit(&binv); in _eckcdsa_sign_finalize()
H A Dbign_common.c487 nn b, binv; in __bign_sign_finalize() local
488 b.magic = binv.magic = WORD(0); in __bign_sign_finalize()
609 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in __bign_sign_finalize()
681 ret = nn_mod_mul(&s1, &s1, &binv, q); EG(ret, err); in __bign_sign_finalize()
700 nn_uninit(&binv); in __bign_sign_finalize()
H A Deddsa.c1251 nn b, binv; local
1252 b.magic = binv.magic = WORD(0);
1377 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err);
1405 ret = nn_mod_mul(&r_tmp, &r_tmp, &binv, q); EG(ret, err1);
1425 ret = nn_mod_mul(&r_tmp, &r_tmp, &binv, q); EG(ret, err2);
1504 ret = nn_mod_mul(&S, &S, &binv, q); EG(ret, err);
1538 nn_uninit(&binv);
1589 nn b, binv; local
1590 b.magic = binv.magic = WORD(0);
1725 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err);
[all …]
H A Decfsdsa.c267 nn b, binv; in _ecfsdsa_sign_finalize() local
268 b.magic = binv.magic = WORD(0); in _ecfsdsa_sign_finalize()
339 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in _ecfsdsa_sign_finalize()
340 ret = nn_mod_mul(&s, &s, &binv, q); EG(ret, err); in _ecfsdsa_sign_finalize()
363 nn_uninit(&binv); in _ecfsdsa_sign_finalize()
H A Dbip0340.c181 nn b, binv; in _bip0340_sign() local
182 b.magic = binv.magic = WORD(0); in _bip0340_sign()
350 ret = nn_modinv_fermat(&binv, &b, q); EG(ret, err); in _bip0340_sign()
351 ret = nn_mod_mul(&e, &e, &binv, q); EG(ret, err); in _bip0340_sign()
/freebsd/crypto/libecc/src/examples/sig/rsa/
H A Drsa.c524 nn b, binv; in rsadp_hardened() local
525 b.magic = binv.magic = WORD(0); in rsadp_hardened()
538 ret = nn_init(&binv, 0); EG(ret, err); in rsadp_hardened()
542 ret = nn_modinv(&binv, &b, n); in rsadp_hardened()
553 ret = nn_mod_mul(m, m, &binv, n); EG(ret, err); in rsadp_hardened()
564 nn_uninit(&binv); in rsadp_hardened()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoZb.td331 def BINV : ALU_rr<0b0110100, 0b001, "binv">,
478 def : InstAlias<"binv $rd, $rs1, $shamt",