Searched defs:bn_ctx (Results 1 - 6 of 6) sorted by relevance

/external/openssh/
H A Dsshbuf-getput-crypto.c195 BN_CTX *bn_ctx; local
199 if ((bn_ctx = BN_CTX_new()) == NULL)
202 NULL, 0, bn_ctx)) > SSHBUF_MAX_ECPOINT) {
203 BN_CTX_free(bn_ctx);
207 d, len, bn_ctx) != len) {
208 BN_CTX_free(bn_ctx);
211 BN_CTX_free(bn_ctx);
/external/vboot_reference/host/lib/
H A Dutil_misc.c42 BN_CTX *bn_ctx = BN_CTX_new(); local
84 BN_exp(B, Big2, Big32, bn_ctx); /* B = 2^32 */
87 BN_mod_inverse(N0inv, N, B, bn_ctx);
95 BN_exp(R, Big2, NnumBits, bn_ctx);
99 BN_mul(RRTemp, RR, R, bn_ctx);
100 BN_mod(RR, RRTemp, N, bn_ctx);
107 BN_mod(n, N, B, bn_ctx); /* n = N mod B */
118 BN_mod(rr, RR, B, bn_ctx); /* rr = RR mod B */
/external/vboot_reference/utility/
H A DdumpRSAPublicKey.c48 BN_CTX *bn_ctx = BN_CTX_new(); local
78 BN_exp(B, Big2, Big32, bn_ctx); /* B = 2^32 */
81 BN_mod_inverse(N0inv, N, B, bn_ctx);
89 BN_exp(R, Big2, NnumBits, bn_ctx);
93 BN_mul(RRTemp, RR, R, bn_ctx);
94 BN_mod(RR, RRTemp, N, bn_ctx);
101 BN_mod(n, N, B, bn_ctx); /* n = N mod B */
113 BN_mod(rr, RR, B, bn_ctx); /* rr = RR mod B */
/external/boringssl/src/crypto/bn/
H A Dmontgomery.c297 const BIGNUM *mod, BN_CTX *bn_ctx) {
316 if (!BN_MONT_CTX_set(ctx, mod, bn_ctx)) {
296 BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_MUTEX *lock, const BIGNUM *mod, BN_CTX *bn_ctx) argument
/external/boringssl/src/ssl/
H A Ds3_clnt.c1065 BN_CTX *bn_ctx = NULL; local
1245 ((bn_ctx = BN_CTX_new()) == NULL)) {
1252 CBS_len(&point), bn_ctx)) {
1272 BN_CTX_free(bn_ctx);
1273 bn_ctx = NULL;
1353 BN_CTX_free(bn_ctx);
1625 BN_CTX *bn_ctx = NULL; local
1881 bn_ctx = BN_CTX_new();
1882 if (encodedPoint == NULL || bn_ctx == NULL) {
1891 POINT_CONVERSION_UNCOMPRESSED, encodedPoint, encoded_pt_len, bn_ctx);
[all...]
H A Ds3_srvr.c1246 BN_CTX *bn_ctx = NULL; local
1367 bn_ctx = BN_CTX_new();
1368 if (encodedPoint == NULL || bn_ctx == NULL) {
1376 encodedPoint, encodedlen, bn_ctx);
1383 BN_CTX_free(bn_ctx);
1384 bn_ctx = NULL;
1516 BN_CTX_free(bn_ctx);
1606 BN_CTX *bn_ctx = NULL; local
1894 bn_ctx = BN_CTX_new();
1895 if (bn_ctx
[all...]

Completed in 226 milliseconds