/external/boringssl/src/crypto/fipsmodule/ec/ |
felem.c | 25 int ec_bignum_to_felem(const EC_GROUP *group, EC_FELEM *out, const BIGNUM *in) { 33 int ec_felem_to_bignum(const EC_GROUP *group, BIGNUM *out, const EC_FELEM *in) { 37 void ec_felem_neg(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a) { 49 void ec_felem_add(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, 50 const EC_FELEM *b) { 51 EC_FELEM tmp; 56 void ec_felem_sub(const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a [all...] |
internal.h | 103 // An EC_FELEM represents a field element. Only the first |field->width| words 104 // are used. An |EC_FELEM| is specific to an |EC_GROUP| and must not be mixed 111 } EC_FELEM; 117 EC_FELEM X, Y, Z; 132 // Note: unlike |EC_FELEM|s used as intermediate values internal to the 135 EC_FELEM *x, EC_FELEM *y); 162 // TODO(davidben): This constrains |EC_FELEM|'s internal representation, adds 165 // could say |EC_FELEM| is always in Montgomery form. If we routed the rest of 167 // representation and say |EC_FELEM| is purely a |EC_GFp_mont_method| type [all...] |
simple.c | 175 OPENSSL_memset(&point->X, 0, sizeof(EC_FELEM)); 176 OPENSSL_memset(&point->Y, 0, sizeof(EC_FELEM)); 177 OPENSSL_memset(&point->Z, 0, sizeof(EC_FELEM)); 181 OPENSSL_memcpy(&dest->X, &src->X, sizeof(EC_FELEM)); 182 OPENSSL_memcpy(&dest->Y, &src->Y, sizeof(EC_FELEM)); 183 OPENSSL_memcpy(&dest->Z, &src->Z, sizeof(EC_FELEM)); 206 OPENSSL_memcpy(&point->Z, &group->one, sizeof(EC_FELEM)); 235 void (*const felem_mul)(const EC_GROUP *, EC_FELEM *r, const EC_FELEM *a, 236 const EC_FELEM *b) = group->meth->felem_mul [all...] |
ec_montgomery.c | 127 EC_FELEM *out, const EC_FELEM *in) { 133 EC_FELEM *out, 134 const EC_FELEM *in) { 139 static void ec_GFp_mont_felem_inv(const EC_GROUP *group, EC_FELEM *out, 140 const EC_FELEM *a) { 145 void ec_GFp_mont_felem_mul(const EC_GROUP *group, EC_FELEM *r, 146 const EC_FELEM *a, const EC_FELEM *b) { 151 void ec_GFp_mont_felem_sqr(const EC_GROUP *group, EC_FELEM *r [all...] |
p224-64.c | 206 static void p224_generic_to_felem(p224_felem out, const EC_FELEM *in) { 211 static void p224_felem_to_generic(EC_FELEM *out, const p224_felem in) { [all...] |
ec.c | 786 EC_FELEM x_felem, y_felem; 963 EC_FELEM x; [all...] |
p256-x86_64.c | 445 const EC_RAW_POINT *point, EC_FELEM *x, 446 EC_FELEM *y) {
|
/external/boringssl/src/third_party/fiat/ |
p256.c | 103 static void fe_from_generic(fe out, const EC_FELEM *in) { 107 static void fe_to_generic(EC_FELEM *out, const fe in) { [all...] |