/external/vboot_reference/host/lib/ |
D | util_misc.c | 42 BN_CTX *bn_ctx = BN_CTX_new(); in vb_keyb_from_rsa() local 84 BN_exp(B, Big2, Big32, bn_ctx); /* B = 2^32 */ in vb_keyb_from_rsa() 87 BN_mod_inverse(N0inv, N, B, bn_ctx); in vb_keyb_from_rsa() 95 BN_exp(R, Big2, NnumBits, bn_ctx); in vb_keyb_from_rsa() 99 BN_mul(RRTemp, RR, R, bn_ctx); in vb_keyb_from_rsa() 100 BN_mod(RR, RRTemp, N, bn_ctx); in vb_keyb_from_rsa() 107 BN_mod(n, N, B, bn_ctx); /* n = N mod B */ in vb_keyb_from_rsa() 118 BN_mod(rr, RR, B, bn_ctx); /* rr = RR mod B */ in vb_keyb_from_rsa()
|
/external/vboot_reference/utility/ |
D | dumpRSAPublicKey.c | 48 BN_CTX *bn_ctx = BN_CTX_new(); in output() local 78 BN_exp(B, Big2, Big32, bn_ctx); /* B = 2^32 */ in output() 81 BN_mod_inverse(N0inv, N, B, bn_ctx); in output() 89 BN_exp(R, Big2, NnumBits, bn_ctx); in output() 93 BN_mul(RRTemp, RR, R, bn_ctx); in output() 94 BN_mod(RR, RRTemp, N, bn_ctx); in output() 101 BN_mod(n, N, B, bn_ctx); /* n = N mod B */ in output() 113 BN_mod(rr, RR, B, bn_ctx); /* rr = RR mod B */ in output()
|
/external/boringssl/src/ssl/ |
D | ssl_key_share.cc | 49 UniquePtr<BN_CTX> bn_ctx(BN_CTX_new()); in Offer() local 50 if (!bn_ctx) { in Offer() 53 BN_CTXScope scope(bn_ctx.get()); in Offer() 68 NULL, bn_ctx.get()) || in Offer() 70 POINT_CONVERSION_UNCOMPRESSED, bn_ctx.get())) { in Offer() 83 UniquePtr<BN_CTX> bn_ctx(BN_CTX_new()); in Finish() local 84 if (!bn_ctx) { in Finish() 87 BN_CTXScope scope(bn_ctx.get()); in Finish() 96 BIGNUM *x = BN_CTX_get(bn_ctx.get()); in Finish() 103 peer_key.size(), bn_ctx.get())) { in Finish() [all …]
|
/external/openssh/ |
D | sshbuf-getput-crypto.c | 195 BN_CTX *bn_ctx; in sshbuf_put_ec() local 199 if ((bn_ctx = BN_CTX_new()) == NULL) in sshbuf_put_ec() 202 NULL, 0, bn_ctx)) > SSHBUF_MAX_ECPOINT) { in sshbuf_put_ec() 203 BN_CTX_free(bn_ctx); in sshbuf_put_ec() 207 d, len, bn_ctx) != len) { in sshbuf_put_ec() 208 BN_CTX_free(bn_ctx); in sshbuf_put_ec() 211 BN_CTX_free(bn_ctx); in sshbuf_put_ec()
|
/external/u-boot/lib/rsa/ |
D | rsa-sign.c | 560 BN_CTX *bn_ctx = BN_CTX_new(); in rsa_get_params() local 587 if (!BN_exp(big2_32, big2, big32, bn_ctx)) in rsa_get_params() 591 if (!BN_mod_inverse(tmp, n, big2_32, bn_ctx) || in rsa_get_params() 598 !BN_exp(r, big2, tmp, bn_ctx)) in rsa_get_params() 603 !BN_mul(tmp, r_squared, r, bn_ctx) || in rsa_get_params() 604 !BN_mod(r_squared, tmp, n, bn_ctx)) in rsa_get_params()
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | montgomery.c | 265 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked() argument 276 *pmont = BN_MONT_CTX_new_for_modulus(mod, bn_ctx); in BN_MONT_CTX_set_locked()
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 840 const BIGNUM *mod, BN_CTX *bn_ctx);
|