From 356e14a8daa3f59bc3ea3826ce4b23fa307e6e61 Mon Sep 17 00:00:00 2001 From: WitherOrNot Date: Tue, 17 Oct 2023 21:56:43 -0400 Subject: [PATCH] Update PKEY2005.md --- PKEY2005.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PKEY2005.md b/PKEY2005.md index 221799d..b0b20e3 100644 --- a/PKEY2005.md +++ b/PKEY2005.md @@ -83,12 +83,12 @@ struct field_data { u32 at_0x1f; // unused u32 at_0x23; // unused u32 at_0x27; // unused - u32 offset_modulus; + u32 num_elements; // Number of points Qi and length of H1 vector u32 at_0x2f; // unused u32 at_0x33; // unused u32 at_0x37; // unused - u8 max_quotient; // Equals floor((24 ^ 25) / p) - 1, unused - u8 h1_coeffs[size_modulus]; // H1 radices + u8 max_quotient; // Can equal floor((24 ^ 25) / p) - 1, unused + u8 h1_coeffs[num_elements]; // H1 radices bignum modulus; // Prime modulus of base field u8 order[size_order]; // Order of elliptic curve over base field (also a bignum) // Polynomials are stored as bytes in order of lowest to highest degree coefficients @@ -115,7 +115,7 @@ struct Pubkey { u32 field_data_size; field_data field; padding[field_data_size + 12 - $]; - ecpoint_k3 points[field.size_modulus]; // Points Qi over twisted curve + ecpoint_k3 points[field.num_elements]; // Points Qi over twisted curve bignum pairing_val[field.ext_deg1 * field.ext_deg2]; // value of Tate pairing between generator P and signature base point S };