Home
last modified time | relevance | path

Searched refs:EC_POINT (Results 1 – 25 of 57) sorted by relevance

123

/external/boringssl/src/include/openssl/
Dec.h128 OPENSSL_EXPORT const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);
160 OPENSSL_EXPORT EC_POINT *EC_POINT_new(const EC_GROUP *group);
163 OPENSSL_EXPORT void EC_POINT_free(EC_POINT *point);
167 OPENSSL_EXPORT void EC_POINT_clear_free(EC_POINT *point);
171 OPENSSL_EXPORT int EC_POINT_copy(EC_POINT *dest, const EC_POINT *src);
175 OPENSSL_EXPORT EC_POINT *EC_POINT_dup(const EC_POINT *src,
181 EC_POINT *point);
186 const EC_POINT *point);
192 const EC_POINT *point, BN_CTX *ctx);
196 OPENSSL_EXPORT int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a,
[all …]
Dec_key.h131 OPENSSL_EXPORT const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
135 OPENSSL_EXPORT int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
/external/boringssl/src/crypto/fipsmodule/ec/
Dinternal.h88 int (*point_get_affine_coordinates)(const EC_GROUP *, const EC_POINT *,
96 int (*mul)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
97 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx);
117 EC_POINT *generator;
155 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar,
156 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx);
167 int ec_GFp_simple_point_init(EC_POINT *);
168 void ec_GFp_simple_point_finish(EC_POINT *);
169 void ec_GFp_simple_point_clear_finish(EC_POINT *);
170 int ec_GFp_simple_point_copy(EC_POINT *, const EC_POINT *);
[all …]
Dec.c386 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, in EC_GROUP_set_generator()
410 EC_POINT *P = NULL; in ec_group_new_from_data()
564 const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group) { in EC_GROUP_get0_generator()
597 EC_POINT *EC_POINT_new(const EC_GROUP *group) { in EC_POINT_new()
598 EC_POINT *ret; in EC_POINT_new()
621 void EC_POINT_free(EC_POINT *point) { in EC_POINT_free()
631 void EC_POINT_clear_free(EC_POINT *point) { in EC_POINT_clear_free()
642 int EC_POINT_copy(EC_POINT *dest, const EC_POINT *src) { in EC_POINT_copy()
653 EC_POINT *EC_POINT_dup(const EC_POINT *a, const EC_GROUP *group) { in EC_POINT_dup()
658 EC_POINT *ret = EC_POINT_new(group); in EC_POINT_dup()
[all …]
Dec_test.cc141 const EC_POINT *pub_key = EC_KEY_get0_public_key(key.get()); in TEST()
250 bssl::UniquePtr<EC_POINT> generator(EC_POINT_new(group.get())); in TEST()
263 bssl::UniquePtr<EC_POINT> point(EC_POINT_new(group.get())); in TEST()
302 auto point = bssl::UniquePtr<EC_POINT>(EC_POINT_new(group)); in TEST_P()
311 bssl::UniquePtr<EC_POINT> invalid_point(EC_POINT_new(group)); in TEST_P()
331 bssl::UniquePtr<EC_POINT> p1(EC_POINT_new(group)); in TEST_P()
335 bssl::UniquePtr<EC_POINT> p2(EC_POINT_new(group)); in TEST_P()
339 bssl::UniquePtr<EC_POINT> double_p1(EC_POINT_new(group)); in TEST_P()
345 bssl::UniquePtr<EC_POINT> p1_plus_p2(EC_POINT_new(group)); in TEST_P()
359 bssl::UniquePtr<EC_POINT> point(EC_POINT_new(group.get())); in TEST_P()
[all …]
Dwnaf.c241 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, in ec_wNAF_mul()
242 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx) { in ec_wNAF_mul()
244 const EC_POINT *generator = NULL; in ec_wNAF_mul()
245 EC_POINT *tmp = NULL; in ec_wNAF_mul()
256 EC_POINT **val = NULL; /* precomputation */ in ec_wNAF_mul()
257 EC_POINT **v; in ec_wNAF_mul()
258 EC_POINT ***val_sub = NULL; /* pointers to sub-arrays of 'val' */ in ec_wNAF_mul()
272 const EC_POINT **points = p != NULL ? &p : NULL; in ec_wNAF_mul()
Dsimple.c238 int ec_GFp_simple_point_init(EC_POINT *point) { in ec_GFp_simple_point_init()
246 void ec_GFp_simple_point_finish(EC_POINT *point) { in ec_GFp_simple_point_finish()
252 void ec_GFp_simple_point_clear_finish(EC_POINT *point) { in ec_GFp_simple_point_clear_finish()
258 int ec_GFp_simple_point_copy(EC_POINT *dest, const EC_POINT *src) { in ec_GFp_simple_point_copy()
269 EC_POINT *point) { in ec_GFp_simple_point_set_to_infinity()
291 const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, in ec_GFp_simple_set_Jprojective_coordinates_GFp()
317 const EC_POINT *point, in ec_GFp_simple_get_Jprojective_coordinates_GFp()
360 EC_POINT *point, const BIGNUM *x, in ec_GFp_simple_point_set_affine_coordinates()
372 int ec_GFp_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, in ec_GFp_simple_add()
373 const EC_POINT *b, BN_CTX *ctx) { in ec_GFp_simple_add()
[all …]
Doct.c77 const EC_POINT *point, in ec_GFp_simple_point2oct()
171 static int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point, in ec_GFp_simple_oct2point()
252 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, in EC_POINT_oct2point()
261 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2oct()
272 EC_POINT *point, const BIGNUM *x, in ec_GFp_simple_set_compressed_coordinates()
397 EC_POINT *point, const BIGNUM *x, in EC_POINT_set_compressed_coordinates_GFp()
Dec_key.c268 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key) { in EC_KEY_get0_public_key()
272 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub_key) { in EC_KEY_set_public_key()
295 EC_POINT *point = NULL; in EC_KEY_check_key()
379 EC_POINT *point = NULL; in EC_KEY_set_public_key_affine_coordinates()
438 EC_POINT *pub_key = NULL; in EC_KEY_generate_key()
/external/openssh/
Dbufec.c33 const EC_POINT *point) in buffer_put_ecpoint_ret()
46 const EC_POINT *point) in buffer_put_ecpoint()
54 EC_POINT *point) in buffer_get_ecpoint_ret()
67 EC_POINT *point) in buffer_get_ecpoint()
Dbuffer.h92 int buffer_put_ecpoint_ret(Buffer *, const EC_GROUP *, const EC_POINT *);
93 void buffer_put_ecpoint(Buffer *, const EC_GROUP *, const EC_POINT *);
94 int buffer_get_ecpoint_ret(Buffer *, const EC_GROUP *, EC_POINT *);
95 void buffer_get_ecpoint(Buffer *, const EC_GROUP *, EC_POINT *);
Dpacket.h28 # define EC_POINT void macro
34 # define EC_POINT void macro
184 int sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g);
195 int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g);
209 # undef EC_POINT
213 # undef EC_POINT
Dsshkey.h39 # define EC_POINT void macro
46 # define EC_POINT void macro
154 int sshkey_ec_validate_public(const EC_GROUP *, const EC_POINT *);
177 void sshkey_dump_ec_point(const EC_GROUP *, const EC_POINT *);
223 # undef EC_POINT
227 # undef EC_POINT
Dkex.h43 # define EC_POINT void macro
48 # define EC_POINT void macro
213 const EC_POINT *, const EC_POINT *, const BIGNUM *, u_char *, size_t *);
238 # undef EC_POINT
Dsshbuf-getput-crypto.c76 get_ec(const u_char *d, size_t len, EC_POINT *v, const EC_GROUP *g) in get_ec()
90 sshbuf_get_ec(struct sshbuf *buf, EC_POINT *v, const EC_GROUP *g) in sshbuf_get_ec()
113 EC_POINT *pt = EC_POINT_new(EC_KEY_get0_group(v)); in sshbuf_get_eckey()
192 sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g) in sshbuf_put_ec()
Dkexecdh.c58 const EC_POINT *client_dh_pub, in kex_ecdh_hash()
59 const EC_POINT *server_dh_pub, in kex_ecdh_hash()
Dkexecdhs.c65 EC_POINT *client_public; in input_kex_ecdh_init()
68 const EC_POINT *public_key; in input_kex_ecdh_init()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECPointContext.java24 private final NativeRef.EC_POINT pointCtx;
26 OpenSSLECPointContext(OpenSSLECGroupContext group, NativeRef.EC_POINT pointCtx) { in OpenSSLECPointContext()
50 NativeRef.EC_POINT getNativeRef() { in getNativeRef()
56 OpenSSLECPointContext point = new OpenSSLECPointContext(group, new NativeRef.EC_POINT( in getInstance()
DNativeRef.java72 static final class EC_POINT extends NativeRef { class in NativeRef
73 EC_POINT(long nativePointer) { in EC_POINT() method in NativeRef.EC_POINT
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c1487 EC_POINT_clear_free((EC_POINT *) p); in crypto_ec_point_deinit()
1489 EC_POINT_free((EC_POINT *) p); in crypto_ec_point_deinit()
1507 EC_POINT_get_affine_coordinates_GFp(e->group, (EC_POINT *) point, in crypto_ec_point_to_bin()
1530 EC_POINT *elem; in crypto_ec_point_from_bin()
1565 return EC_POINT_add(e->group, (EC_POINT *) c, (const EC_POINT *) a, in crypto_ec_point_add()
1566 (const EC_POINT *) b, e->bnctx) ? 0 : -1; in crypto_ec_point_add()
1576 return EC_POINT_mul(e->group, (EC_POINT *) res, NULL, in crypto_ec_point_mul()
1577 (const EC_POINT *) p, (const BIGNUM *) b, e->bnctx) in crypto_ec_point_mul()
1586 return EC_POINT_invert(e->group, (EC_POINT *) p, e->bnctx) ? 0 : -1; in crypto_ec_point_invert()
1596 if (!EC_POINT_set_compressed_coordinates_GFp(e->group, (EC_POINT *) p, in crypto_ec_point_solve_y_coord()
[all …]
/external/tpm2/
DCpriECC.c105 EC_POINT *ecP, // IN: the point to convert in Point2B()
149 EC_POINT *P = NULL; in EccCurveInit()
207 static EC_POINT *
210 EC_POINT *ecP, // IN: an existing BN point in the group in PointFrom2B()
240 static EC_POINT *
247 EC_POINT *ecP; in EccInitPoint2B()
269 EC_POINT *ecpQ, // OUT: result in PointMul()
271 EC_POINT *ecpP, // IN: point for [B]P in PointMul()
355 EC_POINT *R = NULL; in _cpri__EccPointMultiply()
356 EC_POINT *Q = NULL; in _cpri__EccPointMultiply()
[all …]
/external/boringssl/src/crypto/ecdh/
Decdh.c80 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ECDH_compute_key()
101 EC_POINT *tmp = EC_POINT_new(group); in ECDH_compute_key()
Decdh_test.cc84 bssl::UniquePtr<EC_POINT> pub_key(EC_POINT_new(group.get())); in TEST()
86 bssl::UniquePtr<EC_POINT> peer_pub_key(EC_POINT_new(group.get())); in TEST()
/external/boringssl/src/crypto/evp/
Dp_ec_asn1.c71 const EC_POINT *public_key = EC_KEY_get0_public_key(ec_key); in eckey_pub_encode()
96 EC_POINT *point = NULL; in eckey_pub_decode()
131 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp()
/external/boringssl/src/ssl/
Dssl_ecdh.cc57 bssl::UniquePtr<EC_POINT> public_key(EC_POINT_new(group.get())); in ssl_ec_point_offer()
90 bssl::UniquePtr<EC_POINT> peer_point(EC_POINT_new(group.get())); in ssl_ec_point_finish()
91 bssl::UniquePtr<EC_POINT> result(EC_POINT_new(group.get())); in ssl_ec_point_finish()

123