Home
last modified time | relevance | path

Searched refs:EC_GROUP (Results 1 – 25 of 50) sorted by relevance

12

/external/boringssl/src/crypto/ec/
Dinternal.h90 int (*group_init)(EC_GROUP *);
91 void (*group_finish)(EC_GROUP *);
92 void (*group_clear_finish)(EC_GROUP *);
93 int (*group_copy)(EC_GROUP *, const EC_GROUP *);
97 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a,
99 int (*group_get_curve)(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b,
103 int (*group_get_degree)(const EC_GROUP *);
106 int (*group_check_discriminant)(const EC_GROUP *, BN_CTX *);
121 int (*point_set_to_infinity)(const EC_GROUP *, EC_POINT *);
122 int (*point_set_Jprojective_coordinates_GFp)(const EC_GROUP *, EC_POINT *,
[all …]
Dec.c236 EC_GROUP *ec_group_new(const EC_METHOD *meth) { in ec_group_new()
237 EC_GROUP *ret; in ec_group_new()
249 ret = OPENSSL_malloc(sizeof(EC_GROUP)); in ec_group_new()
254 memset(ret, 0, sizeof(EC_GROUP)); in ec_group_new()
268 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, in EC_GROUP_new_curve_GFp()
271 EC_GROUP *ret; in EC_GROUP_new_curve_GFp()
290 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, in EC_GROUP_set_generator()
328 static EC_GROUP *ec_group_new_from_data(const struct built_in_curve *curve) { in ec_group_new_from_data()
329 EC_GROUP *group = NULL; in ec_group_new_from_data()
416 EC_GROUP *EC_GROUP_new_by_curve_name(int nid) { in EC_GROUP_new_by_curve_name()
[all …]
Dec_montgomery.c120 int ec_GFp_mont_group_init(EC_GROUP *group) { in ec_GFp_mont_group_init()
129 void ec_GFp_mont_group_finish(EC_GROUP *group) { in ec_GFp_mont_group_finish()
137 void ec_GFp_mont_group_clear_finish(EC_GROUP *group) { in ec_GFp_mont_group_clear_finish()
145 int ec_GFp_mont_group_copy(EC_GROUP *dest, const EC_GROUP *src) { in ec_GFp_mont_group_copy()
179 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_mont_group_set_curve()
232 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_mul()
242 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_sqr()
252 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_encode()
262 int ec_GFp_mont_field_decode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ec_GFp_mont_field_decode()
272 int ec_GFp_mont_field_set_to_one(const EC_GROUP *group, BIGNUM *r, in ec_GFp_mont_field_set_to_one()
Dsimple.c135 int ec_GFp_simple_group_init(EC_GROUP *group) { in ec_GFp_simple_group_init()
143 void ec_GFp_simple_group_finish(EC_GROUP *group) { in ec_GFp_simple_group_finish()
149 void ec_GFp_simple_group_clear_finish(EC_GROUP *group) { in ec_GFp_simple_group_clear_finish()
155 int ec_GFp_simple_group_copy(EC_GROUP *dest, const EC_GROUP *src) { in ec_GFp_simple_group_copy()
166 int ec_GFp_simple_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ec_GFp_simple_group_set_curve()
233 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, in ec_GFp_simple_group_get_curve()
273 int ec_GFp_simple_group_get_degree(const EC_GROUP *group) { in ec_GFp_simple_group_get_degree()
277 int ec_GFp_simple_group_check_discriminant(const EC_GROUP *group, BN_CTX *ctx) { in ec_GFp_simple_group_check_discriminant()
381 int ec_GFp_simple_point_set_to_infinity(const EC_GROUP *group, in ec_GFp_simple_point_set_to_infinity()
389 const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, in ec_GFp_simple_set_Jprojective_coordinates_GFp()
[all …]
Doct.c76 static size_t ec_GFp_simple_point2oct(const EC_GROUP *group, in ec_GFp_simple_point2oct()
179 static int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point, in ec_GFp_simple_oct2point()
278 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, in EC_POINT_oct2point()
297 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2oct()
317 int ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *group, in ec_GFp_simple_set_compressed_coordinates()
457 int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group, in EC_POINT_set_compressed_coordinates_GFp()
Dec_asn1.c163 ECPKPARAMETERS *ec_asn1_group2pkparameters(const EC_GROUP *group, in ec_asn1_group2pkparameters()
194 EC_GROUP *ec_asn1_pkparameters2group(const ECPKPARAMETERS *params) { in ec_asn1_pkparameters2group()
195 EC_GROUP *ret = NULL; in ec_asn1_pkparameters2group()
239 static EC_GROUP *d2i_ECPKParameters(EC_GROUP **groupp, const uint8_t **inp, in d2i_ECPKParameters()
241 EC_GROUP *group = NULL; in d2i_ECPKParameters()
267 static int i2d_ECPKParameters(const EC_GROUP *group, uint8_t **outp) { in i2d_ECPKParameters()
Dexample_mul.c78 EC_GROUP *group = NULL; in example_EC_POINT_mul()
/external/boringssl/src/include/openssl/
Dec.h81 typedef struct ec_group_st EC_GROUP; typedef
105 OPENSSL_EXPORT EC_GROUP *EC_GROUP_new_by_curve_name(int nid);
108 OPENSSL_EXPORT void EC_GROUP_free(EC_GROUP *group);
112 OPENSSL_EXPORT EC_GROUP *EC_GROUP_dup(const EC_GROUP *a);
116 OPENSSL_EXPORT int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b,
121 OPENSSL_EXPORT const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);
125 OPENSSL_EXPORT int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order,
130 OPENSSL_EXPORT int EC_GROUP_get_cofactor(const EC_GROUP *group,
138 OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p,
143 OPENSSL_EXPORT int EC_GROUP_get_curve_name(const EC_GROUP *group);
[all …]
Dec_key.h117 OPENSSL_EXPORT const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
121 OPENSSL_EXPORT int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
/external/openssh/
Dbufec.c32 buffer_put_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, in buffer_put_ecpoint_ret()
45 buffer_put_ecpoint(Buffer *buffer, const EC_GROUP *curve, in buffer_put_ecpoint()
53 buffer_get_ecpoint_ret(Buffer *buffer, const EC_GROUP *curve, in buffer_get_ecpoint_ret()
66 buffer_get_ecpoint(Buffer *buffer, const EC_GROUP *curve, in buffer_get_ecpoint()
Dpacket.h27 # define EC_GROUP void macro
33 # define EC_GROUP void macro
174 int sshpkt_put_ec(struct ssh *ssh, const EC_POINT *v, const EC_GROUP *g);
185 int sshpkt_get_ec(struct ssh *ssh, EC_POINT *v, const EC_GROUP *g);
198 # undef EC_GROUP
202 # undef EC_GROUP
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 *);
Dsshkey.h38 # define EC_GROUP void macro
45 # define EC_GROUP void macro
155 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_GROUP
227 # undef EC_GROUP
Dkex.h42 # define EC_GROUP void macro
47 # define EC_GROUP void macro
155 const EC_GROUP *ec_group; /* ECDH */
198 int kex_ecdh_hash(int, const EC_GROUP *, const char *, const char *,
223 # undef EC_GROUP
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()
192 sshbuf_put_ec(struct sshbuf *buf, const EC_POINT *v, const EC_GROUP *g) in sshbuf_put_ec()
Dkexecdhc.c59 const EC_GROUP *group; in kexecdh_client()
102 const EC_GROUP *group; in input_kex_ecdh_reply()
Dopacket.h11 void ssh_packet_put_ecpoint(struct ssh *, const EC_GROUP *, const EC_POINT *);
22 void ssh_packet_get_ecpoint(struct ssh *, const EC_GROUP *, EC_POINT *);
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLECGroupContext.java30 private final NativeRef.EC_GROUP groupCtx;
32 public OpenSSLECGroupContext(NativeRef.EC_GROUP groupCtx) { in OpenSSLECGroupContext()
49 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(ctx); in getCurveByName()
74 public NativeRef.EC_GROUP getNativeRef() { in getNativeRef()
161 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(group); in getInstance()
DNativeCrypto.java112 NativeRef.EC_GROUP ecGroupRef); in getECPrivateKeyWrapper()
169 public static native long EVP_PKEY_new_EC_KEY(NativeRef.EC_GROUP groupRef, in EVP_PKEY_new_EC_KEY()
177 public static native void EC_GROUP_set_asn1_flag(NativeRef.EC_GROUP groupRef, int flag); in EC_GROUP_set_asn1_flag()
179 public static native void EC_GROUP_set_point_conversion_form(NativeRef.EC_GROUP groupRef, in EC_GROUP_set_point_conversion_form()
182 public static native String EC_GROUP_get_curve_name(NativeRef.EC_GROUP groupRef); in EC_GROUP_get_curve_name()
184 public static native byte[][] EC_GROUP_get_curve(NativeRef.EC_GROUP groupRef); in EC_GROUP_get_curve()
188 public static native boolean EC_GROUP_cmp(NativeRef.EC_GROUP ctx1, NativeRef.EC_GROUP ctx2); in EC_GROUP_cmp()
190 public static native long EC_GROUP_get_generator(NativeRef.EC_GROUP groupRef); in EC_GROUP_get_generator()
192 public static native int get_EC_GROUP_type(NativeRef.EC_GROUP groupRef); in get_EC_GROUP_type()
194 public static native byte[] EC_GROUP_get_order(NativeRef.EC_GROUP groupRef); in EC_GROUP_get_order()
[all …]
DNativeRef.java48 public static class EC_GROUP extends NativeRef { class in NativeRef
49 public EC_GROUP(long ctx) { in EC_GROUP() method in NativeRef.EC_GROUP
DOpenSSLECPublicKey.java46 this.group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in OpenSSLECPublicKey()
159 group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in readObject()
DOpenSSLECPrivateKey.java50 this.group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in OpenSSLECPrivateKey()
251 group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in readObject()
/external/boringssl/src/crypto/evp/
Dp_ec_asn1.c70 const EC_GROUP *group; in eckey_param2type()
202 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp()
242 const EC_GROUP *group; in eckey_priv_decode()
340 const EC_GROUP *group; in ec_bits()
363 EC_GROUP *group = EC_GROUP_dup(EC_KEY_get0_group(from->pkey.ec)); in ec_copy_parameters()
373 const EC_GROUP *group_a = EC_KEY_get0_group(a->pkey.ec), in ec_cmp_parameters()
391 const EC_GROUP *group; in do_EC_KEY_print()
Dp_ec.c78 EC_GROUP *gen_group;
182 const EC_GROUP *group; in pkey_ec_derive()
204 EC_GROUP *group; in pkey_ec_ctrl()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c144 const EC_GROUP *group; in ECDSA_do_verify()
240 const EC_GROUP *group; in ecdsa_sign_setup()
363 const EC_GROUP *group; in ECDSA_do_sign_ex()

12