X-Git-Url: https://bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=src%2Fec%2Fec_p256_m15.c;h=0d40aef5ba8b416c8f643fb1b8e4dce59e277ce2;hp=99c7224b3108940dd67971468a0e63aab3199b9f;hb=3655193439d4e093bb80a2f0d9e02179d424de08;hpb=2f9c953af45299f8546df8984d5262e767a7d943 diff --git a/src/ec/ec_p256_m15.c b/src/ec/ec_p256_m15.c index 99c7224..0d40aef 100644 --- 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; } +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) @@ -2079,6 +2087,7 @@ const br_ec_impl br_ec_p256_m15 = { (uint32_t)0x00800000, &api_generator, &api_order, + &api_xoff, &api_mul, &api_mulgen, &api_muladd