projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Activated Curve25519 support for ECDHE cipher suites.
[BearSSL]
/
src
/
ec
/
ec_p256_m15.c
diff --git
a/src/ec/ec_p256_m15.c
b/src/ec/ec_p256_m15.c
index
99c7224
..
0d40aef
100644
(file)
--- a/
src/ec/ec_p256_m15.c
+++ b/
src/ec/ec_p256_m15.c
@@
-1987,6
+1987,14
@@
api_order(int curve, size_t *len)
return P256_N;
}
return P256_N;
}
+static size_t
+api_xoff(int curve, size_t *len)
+{
+ (void)curve;
+ *len = 32;
+ return 1;
+}
+
static uint32_t
api_mul(unsigned char *G, size_t Glen,
const unsigned char *x, size_t xlen, int curve)
static uint32_t
api_mul(unsigned char *G, size_t Glen,
const unsigned char *x, size_t xlen, int curve)
@@
-2079,6
+2087,7
@@
const br_ec_impl br_ec_p256_m15 = {
(uint32_t)0x00800000,
&api_generator,
&api_order,
(uint32_t)0x00800000,
&api_generator,
&api_order,
+ &api_xoff,
&api_mul,
&api_mulgen,
&api_muladd
&api_mul,
&api_mulgen,
&api_muladd