Searched refs:bn_ctx (Results 1 – 7 of 7) sorted by relevance
/external/boringssl/src/ssl/ |
D | ssl_ecdh.c | 48 BN_CTX *bn_ctx = BN_CTX_new(); in ssl_ec_point_offer() local 49 if (bn_ctx == NULL) { in ssl_ec_point_offer() 52 BN_CTX_start(bn_ctx); in ssl_ec_point_offer() 69 !EC_POINT_mul(group, public_key, private_key, NULL, NULL, bn_ctx) || in ssl_ec_point_offer() 71 bn_ctx)) { in ssl_ec_point_offer() 80 BN_CTX_end(bn_ctx); in ssl_ec_point_offer() 81 BN_CTX_free(bn_ctx); in ssl_ec_point_offer() 93 BN_CTX *bn_ctx = BN_CTX_new(); in ssl_ec_point_finish() local 94 if (bn_ctx == NULL) { in ssl_ec_point_finish() 97 BN_CTX_start(bn_ctx); in ssl_ec_point_finish() [all …]
|
/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/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/boringssl/src/crypto/ec/ |
D | ec.c | 295 BN_CTX *bn_ctx = BN_CTX_new(); in built_in_curve_scalar_field_monts_init() local 298 if (bn_ctx == NULL || in built_in_curve_scalar_field_monts_init() 315 !BN_MONT_CTX_set(mont_ctx, order, bn_ctx)) { in built_in_curve_scalar_field_monts_init() 332 BN_CTX_free(bn_ctx); in built_in_curve_scalar_field_monts_init()
|
/external/boringssl/src/crypto/bn/ |
D | montgomery.c | 227 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked() argument 246 if (!BN_MONT_CTX_set(ctx, mod, bn_ctx)) { in BN_MONT_CTX_set_locked()
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 824 const BIGNUM *mod, BN_CTX *bn_ctx);
|