Skip to content

Commit

Permalink
Added group order
Browse files Browse the repository at this point in the history
  • Loading branch information
qpernil committed Oct 15, 2021
1 parent d230099 commit 124df09
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions common/ecdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ static const uint8_t n_P256[] = "\xff\xff\xff\xff\x00\x00\x00\x00"
"\xbc\xe6\xfa\xad\xa7\x17\x9e\x84"
"\xf3\xb9\xca\xc2\xfc\x63\x25\x51";

static const uint8_t n_P384[] = "\xff\xff\xff\xff\xff\xff\xff\xff"
"\xff\xff\xff\xff\xff\xff\xff\xff"
"\xff\xff\xff\xff\xff\xff\xff\xff"
"\xc7\x63\x4d\x81\xf4\x37\x2d\xdf"
"\x58\x1a\x0d\xb2\x48\xb0\xa7\x7a"
"\xec\xec\x19\x6a\xcc\xc5\x29\x73";

static const uint8_t n_P521[] = "\x01\xff\xff\xff\xff\xff\xff\xff"
"\xff\xff\xff\xff\xff\xff\xff\xff"
"\xff\xff\xff\xff\xff\xff\xff\xff"
"\xff\xff\xff\xff\xff\xff\xff\xff"
"\xff\xfa\x51\x86\x87\x83\xbf\x2f"
"\x96\x6b\x7f\xcc\x01\x48\xf7\x09"
"\xa5\xd0\x3b\xb5\xc9\xb8\x89\x9c"
"\x47\xae\xbb\x6f\xb7\x1e\x91\x38"
"\x64\x09";

static const BCRYPT_ALG_HANDLE curves[] = {NULL, BCRYPT_ECDH_P256_ALG_HANDLE,
BCRYPT_ECDH_P384_ALG_HANDLE,
BCRYPT_ECDH_P521_ALG_HANDLE};
Expand Down

0 comments on commit 124df09

Please sign in to comment.