From 1c0daa5478d5b4cad3bf3f4e5fbc24f6faf84a20 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Fri, 11 Dec 2020 13:24:32 -0700 Subject: [PATCH] Add leading zeroes to hex in some constants. --- src/pasta/fields/fp.rs | 4 ++-- src/pasta/fields/fq.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pasta/fields/fp.rs b/src/pasta/fields/fp.rs index fc9ba72..47cc64e 100644 --- a/src/pasta/fields/fp.rs +++ b/src/pasta/fields/fp.rs @@ -179,7 +179,7 @@ const R2: Fp = Fp([ 0x8c78ecb30000000f, 0xd7d30dbd8b0de0e7, 0x7797a99bc3c95d18, - 0x96d41af7b9cb714, + 0x096d41af7b9cb714, ]); /// R^3 = 2^768 mod p @@ -218,7 +218,7 @@ const DELTA: Fp = Fp::from_raw([ 0x6a6ccd20dd7b9ba2, 0xf5e4f3f13eee5636, 0xbd455b7112a5049d, - 0xa757d0f0006ab6c, + 0x0a757d0f0006ab6c, ]); impl Default for Fp { diff --git a/src/pasta/fields/fq.rs b/src/pasta/fields/fq.rs index 9d8c098..0c36f9d 100644 --- a/src/pasta/fields/fq.rs +++ b/src/pasta/fields/fq.rs @@ -179,7 +179,7 @@ const R2: Fq = Fq([ 0xfc9678ff0000000f, 0x67bb433d891a16e3, 0x7fae231004ccf590, - 0x96d41af7ccfdaa9, + 0x096d41af7ccfdaa9, ]); /// R^3 = 2^768 mod q @@ -187,7 +187,7 @@ const R3: Fq = Fq([ 0x008b421c249dae4c, 0xe13bda50dba41326, 0x88fececb8e15cb63, - 0x7dd97a06e6792c8, + 0x07dd97a06e6792c8, ]); /// `GENERATOR = 5 mod q` is a generator of the `q - 1` order multiplicative @@ -674,7 +674,7 @@ impl FieldExt for Fq { 0x2aa9d2e050aa0e4f, 0x0fed467d47c033af, 0x511db4d81cf70f5a, - 0x6819a58283e528e, + 0x06819a58283e528e, ]); fn ct_is_zero(&self) -> Choice {