/freebsd/crypto/libecc/src/sig/ |
H A D | fuzzing_ecgdsa.c | 55 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 D | fuzzing_ecrdsa.c | 96 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 D | ecsdsa_common.c | 283 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 D | ecrdsa.c | 209 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 D | ecgdsa.c | 194 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 D | eckcdsa.c | 312 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 D | bign_common.c | 487 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 D | eddsa.c | 1251 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 D | ecfsdsa.c | 267 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 D | bip0340.c | 181 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 D | rsa.c | 524 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 D | RISCVInstrInfoZb.td | 331 def BINV : ALU_rr<0b0110100, 0b001, "binv">, 478 def : InstAlias<"binv $rd, $rs1, $shamt",
|