/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/ssl/ |
D | s3_srvr.c | 1246 BN_CTX *bn_ctx = NULL; in ssl3_send_server_key_exchange() local 1367 bn_ctx = BN_CTX_new(); in ssl3_send_server_key_exchange() 1368 if (encodedPoint == NULL || bn_ctx == NULL) { in ssl3_send_server_key_exchange() 1376 encodedPoint, encodedlen, bn_ctx); in ssl3_send_server_key_exchange() 1383 BN_CTX_free(bn_ctx); in ssl3_send_server_key_exchange() 1384 bn_ctx = NULL; in ssl3_send_server_key_exchange() 1516 BN_CTX_free(bn_ctx); in ssl3_send_server_key_exchange() 1606 BN_CTX *bn_ctx = NULL; in ssl3_get_client_key_exchange() local 1894 bn_ctx = BN_CTX_new(); in ssl3_get_client_key_exchange() 1895 if (bn_ctx == NULL) { in ssl3_get_client_key_exchange() [all …]
|
D | s3_clnt.c | 1065 BN_CTX *bn_ctx = NULL; in ssl3_get_server_key_exchange() local 1245 ((bn_ctx = BN_CTX_new()) == NULL)) { in ssl3_get_server_key_exchange() 1252 CBS_len(&point), bn_ctx)) { in ssl3_get_server_key_exchange() 1272 BN_CTX_free(bn_ctx); in ssl3_get_server_key_exchange() 1273 bn_ctx = NULL; in ssl3_get_server_key_exchange() 1353 BN_CTX_free(bn_ctx); in ssl3_get_server_key_exchange() 1625 BN_CTX *bn_ctx = NULL; in ssl3_send_client_key_exchange() local 1881 bn_ctx = BN_CTX_new(); in ssl3_send_client_key_exchange() 1882 if (encodedPoint == NULL || bn_ctx == NULL) { in ssl3_send_client_key_exchange() 1891 POINT_CONVERSION_UNCOMPRESSED, encodedPoint, encoded_pt_len, bn_ctx); in ssl3_send_client_key_exchange() [all …]
|
/external/boringssl/src/crypto/bn/ |
D | montgomery.c | 297 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked() argument 316 if (!BN_MONT_CTX_set(ctx, mod, bn_ctx)) { in BN_MONT_CTX_set_locked()
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 733 const BIGNUM *mod, BN_CTX *bn_ctx);
|