From: James Prestwood <prestwoj@gmail.com>
To: ell@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v2 2/2] unit: update test-ecc with compressed point bug fix
Date: Tue, 10 Oct 2023 07:25:06 -0700 [thread overview]
Message-ID: <20231010142506.261152-2-prestwoj@gmail.com> (raw)
In-Reply-To: <20231010142506.261152-1-prestwoj@gmail.com>
---
unit/test-ecc.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/unit/test-ecc.c b/unit/test-ecc.c
index 21f73f1..05a89ab 100644
--- a/unit/test-ecc.c
+++ b/unit/test-ecc.c
@@ -374,28 +374,28 @@ struct compressed_point_data {
static struct compressed_point_data compressed_tests[] = {
{
- /* BIT1, subtraction performed */
+ /* BIT0, computed Y is odd, subtraction performed */
.x = "19b3fec1c000a888ee9c44272e4d7317e6e36577fc9d53e1edfb4e296b0b7ce1",
.exp_y = "a8f9efd0ab526cd930870779621f4e9a53d4e78887ac9f4ed45ff75ded32b158",
- .type = L_ECC_POINT_TYPE_COMPRESSED_BIT1,
+ .type = L_ECC_POINT_TYPE_COMPRESSED_BIT0,
},
{
- /* BIT1, no subtraction */
+ /* BIT0, computed Y is even, no subtraction */
.x = "958df5997362a9695ad73938c86be34a4730da877eccaaf8b189e73ff20e67c3",
.exp_y = "1042f37262ded34d8424c1728a1ed23a726645b71db30a38f2932001a2027f46",
- .type = L_ECC_POINT_TYPE_COMPRESSED_BIT1,
+ .type = L_ECC_POINT_TYPE_COMPRESSED_BIT0,
},
{
- /* BIT0, subtraction performed */
+ /* BIT1, computed Y is even, subtraction performed */
.x = "069bd56634454ca76e7ba434244137509141cbbf532586c6b36e9b5be8a2cc34",
.exp_y = "f4f34d46e4bdc1473fec4b4c8724f349375a8a602f5e83c260d6724e64ec7e99",
- .type = L_ECC_POINT_TYPE_COMPRESSED_BIT0,
+ .type = L_ECC_POINT_TYPE_COMPRESSED_BIT1,
},
{
- /* BIT0, no subtraction */
+ /* BIT1, computed Y is odd, no subtraction */
.x = "8cade296a68e0c40bcf45a049f1993263bdc8524825e2be44b14ce114e475df0",
.exp_y = "94ed7d09b2a0e95d8df993eaf81eb64d5ff734d01da57e53b2e0277199bc5897",
- .type = L_ECC_POINT_TYPE_COMPRESSED_BIT0,
+ .type = L_ECC_POINT_TYPE_COMPRESSED_BIT1,
},
};
--
2.25.1
next prev parent reply other threads:[~2023-10-10 14:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 14:25 [PATCH v2 1/2] ecc: fix incorrect derivation of compressed points James Prestwood
2023-10-10 14:25 ` James Prestwood [this message]
2023-10-11 15:26 ` [PATCH v2 2/2] unit: update test-ecc with compressed point bug fix Denis Kenzior
2023-10-11 14:55 ` [PATCH v2 1/2] ecc: fix incorrect derivation of compressed points Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231010142506.261152-2-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=ell@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).