Update PKEY2005.md

This commit is contained in:
WitherOrNot 2023-10-17 21:56:43 -04:00 committed by GitHub
parent f365064270
commit 356e14a8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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
};