X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=ecdsa%2Fnist_p192.c;fp=ecdsa%2Fnist_p192.c;h=3045762933aaa6d2fff5df090fde8bbe90fe7801;hp=6e914c872a9f240fe145147d7c2360d17a79f39d;hb=109c9312f3f0d3b09f24b9c849ba390f17767c26;hpb=2f89c4687b258a5476576e47c6d436397b13db12 diff --git a/ecdsa/nist_p192.c b/ecdsa/nist_p192.c index 6e914c8..3045762 100644 --- a/ecdsa/nist_p192.c +++ b/ecdsa/nist_p192.c @@ -46,6 +46,12 @@ uint8_t nist_curve_p192_p_w[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; +uint8_t nist_curve_p192_n_w[] = { + 0x31, 0x28, 0xd2, 0xb4, 0xb1, 0xc9, 0x6b, 0x14, + 0x36, 0xf8, 0xde, 0x99, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff +}; + uint8_t nist_curve_p192_b_w[] = { 0xb1, 0xb9, 0x46, 0xc1, 0xec, 0xde, 0xb8, 0xfe, 0x49, 0x30, 0x24, 0x72, 0xab, 0xe9, 0xa7, 0x0f, @@ -85,6 +91,13 @@ bigint_t nist_curve_p192_p = { .info = 7 }; + +bigint_t nist_curve_p192_n = { + .length_W = 192 / BIGINT_WORD_SIZE, + .wordv = nist_curve_p192_n_w, + .info = 7 +}; + bigint_t nist_curve_p192_b = { .length_W = 192 / BIGINT_WORD_SIZE, .wordv = nist_curve_p192_b_w, @@ -124,6 +137,7 @@ ecc_combi_point_t nist_curve_p192_basepoint = { ecc_curve_sp_t nist_curve_p192 = { .b = &nist_curve_p192_b, .p = &nist_curve_p192_p, + .n = &nist_curve_p192_n, .reduce_p = bigint_reduce_p192 };