Home
last modified time | relevance | path

Searched refs:p256_int (Results 1 – 8 of 8) sorted by relevance

/system/core/include/mincrypt/
Dp256.h52 } p256_int; typedef
54 extern const p256_int SECP256r1_n; // Curve order
55 extern const p256_int SECP256r1_p; // Curve prime
56 extern const p256_int SECP256r1_b; // Curve param
59 void p256_init(p256_int* a);
62 void p256_clear(p256_int* a);
65 int p256_get_bit(const p256_int* a, int index);
69 const p256_int* MOD,
70 const p256_int* a,
71 p256_int* b);
[all …]
Dp256_ecdsa.h44 int p256_ecdsa_verify(const p256_int* key_x,
45 const p256_int* key_y,
46 const p256_int* message,
47 const p256_int* r, const p256_int* s);
Ddsa_sig.h37 int dsa_sig_unpack(unsigned char* sig, int sig_len, p256_int* r_int, p256_int* s_int);
/system/core/libmincrypt/
Dp256.c42 const p256_int SECP256r1_n = // curve order
45 const p256_int SECP256r1_p = // curve field size
48 const p256_int SECP256r1_b = // curve b
52 void p256_init(p256_int* a) { in p256_init()
56 void p256_clear(p256_int* a) { p256_init(a); } in p256_clear()
58 int p256_get_bit(const p256_int* scalar, int bit) { in p256_get_bit()
63 int p256_is_zero(const p256_int* a) { in p256_is_zero()
71 static p256_digit mulAdd(const p256_int* a, in mulAdd()
110 static p256_digit subM(const p256_int* MOD, in subM()
127 static p256_digit addM(const p256_int* MOD, in addM()
[all …]
Dp256_ecdsa.c32 int p256_ecdsa_verify(const p256_int* key_x, const p256_int* key_y, in p256_ecdsa_verify()
33 const p256_int* message, in p256_ecdsa_verify()
34 const p256_int* r, const p256_int* s) { in p256_ecdsa_verify()
35 p256_int u, v; in p256_ecdsa_verify()
Ddsa_sig.c54 int dsa_sig_unpack(unsigned char* sig, int sig_len, p256_int* r_int, p256_int* s_int) { in dsa_sig_unpack()
Dp256_ec.c1047 const p256_int* scalar) { in scalar_base_mult()
1115 const felem y, const p256_int* scalar) { in scalar_mult()
1175 static const p256_int kR = { kRDigits };
1176 static const p256_int kRInv = { kRInvDigits };
1179 static void to_montgomery(felem out, const p256_int* in) { in to_montgomery()
1180 p256_int in_shifted; in to_montgomery()
1200 static void from_montgomery(p256_int* out, const felem in) { in from_montgomery()
1201 p256_int result, tmp; in from_montgomery()
1225 void p256_base_point_mul(const p256_int* n, p256_int* out_x, p256_int* out_y) { in p256_base_point_mul()
1246 const p256_int* n1, const p256_int* n2, const p256_int* in_x, in p256_points_mul_vartime()
[all …]
/system/core/libmincrypt/test/
Decdsa_test.c52 p256_int key_x = {
56 p256_int key_y = {
138 p256_int good_dsa_signature_1_r = {
142 p256_int good_dsa_signature_1_s = {
227 p256_int hash; in main()
228 p256_int r; in main()
229 p256_int s; in main()