HomeSort by relevance Sort by last modified time
    Searched refs:EC_GROUP (Results 1 - 25 of 58) sorted by null

1 2 3

  /external/boringssl/src/crypto/fipsmodule/ec/
internal.h 95 // |order->top| words are used. An |EC_SCALAR| is specific to an |EC_GROUP| and
104 int (*group_init)(EC_GROUP *);
105 void (*group_finish)(EC_GROUP *);
106 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a,
108 int (*point_get_affine_coordinates)(const EC_GROUP *, const EC_POINT *,
116 int (*mul)(const EC_GROUP *group, EC_POINT *r, const EC_SCALAR *g_scalar,
121 int (*mul_public)(const EC_GROUP *group, EC_POINT *r,
128 int (*field_mul)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a,
130 int (*field_sqr)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
132 int (*field_encode)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a
    [all...]
ec.c 272 EC_GROUP *ec_group_new(const EC_METHOD *meth) {
273 EC_GROUP *ret;
285 ret = OPENSSL_malloc(sizeof(EC_GROUP));
290 OPENSSL_memset(ret, 0, sizeof(EC_GROUP));
304 static void ec_group_set0_generator(EC_GROUP *group, EC_POINT *generator) {
317 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,
324 EC_GROUP *ret = ec_group_new(EC_GFp_mont_method());
341 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,
345 // |EC_GROUP_set_generator| may only be used with |EC_GROUP|s returned by
401 static EC_GROUP *ec_group_new_from_data(const struct built_in_curve *curve)
    [all...]
ec_montgomery.c 79 int ec_GFp_mont_group_init(EC_GROUP *group) {
87 void ec_GFp_mont_group_finish(EC_GROUP *group) {
93 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p,
126 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
136 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
146 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
156 int ec_GFp_mont_field_decode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
166 static int ec_GFp_mont_point_get_affine_coordinates(const EC_GROUP *group,
simple.c 91 int ec_GFp_simple_group_init(EC_GROUP *group) {
100 void ec_GFp_simple_group_finish(EC_GROUP *group) {
107 int ec_GFp_simple_group_set_curve(EC_GROUP *group, const BIGNUM *p,
182 int ec_GFp_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a,
222 unsigned ec_GFp_simple_group_get_degree(const EC_GROUP *group) {
250 int ec_GFp_simple_point_set_to_infinity(const EC_GROUP *group,
256 static int set_Jprojective_coordinate_GFp(const EC_GROUP *group, BIGNUM *out,
272 int ec_GFp_simple_point_set_affine_coordinates(const EC_GROUP *group,
303 int ec_GFp_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,
305 int (*field_mul)(const EC_GROUP *, BIGNUM *, const BIGNUM *, const BIGNUM *
    [all...]
wnaf.c 95 static int compute_wNAF(const EC_GROUP *group, int8_t *out,
199 static int compute_precomp(const EC_GROUP *group, EC_POINT **out,
229 static int lookup_precomp(const EC_GROUP *group, EC_POINT *out,
240 int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const EC_SCALAR *g_scalar,
oct.c 76 static size_t ec_GFp_simple_point2oct(const EC_GROUP *group,
166 static int ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
250 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point,
259 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point,
269 int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group,
  /external/boringssl/src/include/openssl/
ec.h 104 // EC_GROUP_new_by_curve_name returns a fresh EC_GROUP object for the elliptic
112 OPENSSL_EXPORT EC_GROUP *EC_GROUP_new_by_curve_name(int nid);
115 OPENSSL_EXPORT void EC_GROUP_free(EC_GROUP *group);
117 // EC_GROUP_dup returns a fresh |EC_GROUP| which is equal to |a| or NULL on
119 OPENSSL_EXPORT EC_GROUP *EC_GROUP_dup(const EC_GROUP *a);
123 OPENSSL_EXPORT int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b,
128 OPENSSL_EXPORT const EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);
132 OPENSSL_EXPORT const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group)
    [all...]
ec_key.h 115 // EC_KEY_get0_group returns a pointer to the |EC_GROUP| object inside |key|.
116 OPENSSL_EXPORT const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
118 // EC_KEY_set_group sets the |EC_GROUP| object that |key| will use to |group|.
121 OPENSSL_EXPORT int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
197 const EC_GROUP *group);
207 // name from |cbs| and advances |cbs|. It returns a newly-allocated |EC_GROUP|
209 OPENSSL_EXPORT EC_GROUP *EC_KEY_parse_curve_name(CBS *cbs);
214 OPENSSL_EXPORT int EC_KEY_marshal_curve_name(CBB *cbb, const EC_GROUP *group);
217 // 5480) from |cbs| and advances |cbs|. It returns a newly-allocated |EC_GROUP|
221 OPENSSL_EXPORT EC_GROUP *EC_KEY_parse_parameters(CBS *cbs)
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLECGroupContext.java 29 * Represents a BoringSSL EC_GROUP object.
32 private final NativeRef.EC_GROUP groupCtx;
34 OpenSSLECGroupContext(NativeRef.EC_GROUP groupCtx) {
49 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(ctx);
65 NativeRef.EC_GROUP getNativeRef() {
152 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(group);
NativeRef.java 61 static final class EC_GROUP extends NativeRef {
62 EC_GROUP(long ctx) {
NativeCrypto.java 114 static native long getECPrivateKeyWrapper(PrivateKey key, NativeRef.EC_GROUP ecGroupRef);
153 NativeRef.EC_GROUP groupRef, NativeRef.EC_POINT pubkeyRef, byte[] privkey);
160 static native String EC_GROUP_get_curve_name(NativeRef.EC_GROUP groupRef);
162 static native byte[][] EC_GROUP_get_curve(NativeRef.EC_GROUP groupRef);
166 static native long EC_GROUP_get_generator(NativeRef.EC_GROUP groupRef);
168 static native byte[] EC_GROUP_get_order(NativeRef.EC_GROUP groupRef);
170 static native int EC_GROUP_get_degree(NativeRef.EC_GROUP groupRef);
172 static native byte[] EC_GROUP_get_cofactor(NativeRef.EC_GROUP groupRef);
174 static native long EC_POINT_new(NativeRef.EC_GROUP groupRef);
179 NativeRef.EC_GROUP groupRef, NativeRef.EC_POINT pointRef)
    [all...]
OpenSSLECPublicKey.java 49 this.group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP(
165 group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP(
ECParameters.java 71 this.curve = new OpenSSLECGroupContext(new NativeRef.EC_GROUP(ref));
  /system/keymaster/include/keymaster/km_openssl/
ec_key_factory.h 59 static EC_GROUP* ChooseGroup(size_t key_size_bits);
60 static EC_GROUP* ChooseGroup(keymaster_ec_curve_t ec_curve);
openssl_utils.h 59 DEFINE_OPENSSL_OBJECT_POINTER(EC_GROUP)
73 keymaster_error_t ec_get_group_size(const EC_GROUP* group, size_t* key_size_bits);
74 EC_GROUP* ec_get_group(keymaster_ec_curve_t curve);
  /external/boringssl/src/crypto/evp/
p_ec_asn1.c 70 const EC_GROUP *group = EC_KEY_get0_group(ec_key);
98 EC_GROUP *group = EC_KEY_parse_curve_name(params);
130 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
145 EC_GROUP *group = EC_KEY_parse_parameters(params);
196 const EC_GROUP *group = EC_KEY_get0_group(pkey->pkey.ec);
209 EC_GROUP *group = EC_GROUP_dup(EC_KEY_get0_group(from->pkey.ec));
219 const EC_GROUP *group_a = EC_KEY_get0_group(a->pkey.ec),
  /system/keymaster/km_openssl/
openssl_utils.cpp 26 keymaster_error_t ec_get_group_size(const EC_GROUP* group, size_t* key_size_bits) {
46 EC_GROUP* ec_get_group(keymaster_ec_curve_t curve) {
127 const EC_GROUP* group = EC_KEY_get0_group(ec_key);
nist_curve_key_exchange.cpp 73 const EC_GROUP* group = EC_KEY_get0_group(private_key_.get());
100 const EC_GROUP* group = EC_KEY_get0_group(private_key_.get());
  /external/boringssl/src/crypto/fipsmodule/ecdsa/
ecdsa_test.cc 160 bssl::UniquePtr<EC_GROUP> group(EC_GROUP_new_by_curve_name(nid));
262 static bssl::UniquePtr<EC_GROUP> GetCurve(FileTest *t, const char *key) {
269 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp224r1));
272 return bssl::UniquePtr<EC_GROUP>(
276 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp384r1));
279 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp521r1));
286 static bssl::UniquePtr<EC_GROUP> MakeCustomClone(const EC_GROUP *group) {
296 bssl::UniquePtr<EC_GROUP> ret(
326 bssl::UniquePtr<EC_GROUP> group = GetCurve(t, "Curve")
    [all...]
ecdsa.c 77 static void scalar_add_loose(const EC_GROUP *group, EC_LOOSE_SCALAR *r,
94 static int scalar_mod_mul_montgomery(const EC_GROUP *group, EC_SCALAR *r,
101 static int scalar_mod_mul_montgomery_loose(const EC_GROUP *group, EC_SCALAR *r,
115 static void digest_to_scalar(const EC_GROUP *group, EC_LOOSE_SCALAR *out,
141 static int field_element_to_scalar(const EC_GROUP *group, BIGNUM *r) {
220 const EC_GROUP *group = EC_KEY_get0_group(eckey);
317 const EC_GROUP *group = EC_KEY_get0_group(eckey);
395 const EC_GROUP *group = EC_KEY_get0_group(eckey);
  /system/iot/attestation/partner-tools/
ec_helper_native.c 38 EC_GROUP* group = EC_GROUP_new_by_curve_name(NID_X9_62_prime256v1);
77 EC_GROUP* group = NULL;
  /external/boringssl/src/crypto/ecdh/
ecdh_test.cc 34 static bssl::UniquePtr<EC_GROUP> GetCurve(FileTest *t, const char *key) {
41 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp224r1));
44 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(
48 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp384r1));
51 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp521r1));
69 bssl::UniquePtr<EC_GROUP> group = GetCurve(t, "Curve");
118 // MakeCustomGroup returns an |EC_GROUP| containing a non-standard group. (P-256
120 static bssl::UniquePtr<EC_GROUP> MakeCustomGroup() {
161 bssl::UniquePtr<EC_GROUP> group(
183 std::vector<bssl::UniquePtr<EC_GROUP>> groups
    [all...]
ecdh.c 100 const EC_GROUP *const group = EC_KEY_get0_group(priv_key);
  /external/wpa_supplicant_8/src/eap_common/
eap_pwd_common.h 22 EC_GROUP *group;
  /external/boringssl/src/crypto/ec_extra/
ec_asn1.c 75 EC_KEY *EC_KEY_parse_private_key(CBS *cbs, const EC_GROUP *group) {
87 EC_GROUP *inner_group = NULL;
328 EC_GROUP *EC_KEY_parse_curve_name(CBS *cbs) {
350 int EC_KEY_marshal_curve_name(CBB *cbb, const EC_GROUP *group) {
372 EC_GROUP *EC_KEY_parse_parameters(CBS *cbs) {
411 int EC_POINT_point2cbb(CBB *out, const EC_GROUP *group, const EC_POINT *point,
425 const EC_GROUP *group = NULL;
465 EC_GROUP *group = EC_KEY_parse_parameters(&cbs);

Completed in 527 milliseconds

1 2 3