You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by km...@apache.org on 2020/03/31 08:54:44 UTC

[incubator-milagro-crypto-rust] 29/31: Fix bls tests

This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-rust.git

commit f748c7b23e9a28d945b839e385e706ea6f50ba8d
Author: Kirk Baird <ba...@outlook.com>
AuthorDate: Tue Mar 31 10:01:20 2020 +1100

    Fix bls tests
    
    Signed-off-by: Kirk Baird <ba...@outlook.com>
---
 src/bls192.rs | 6 +++---
 src/bls256.rs | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/bls192.rs b/src/bls192.rs
index fb8e836..1f262a7 100644
--- a/src/bls192.rs
+++ b/src/bls192.rs
@@ -100,13 +100,13 @@ mod tests {
     use crate::test_utils::*;
 
     #[test]
-    fn test_bls() {
+    fn test_bls24() {
         let mut rng = create_rng();
 
         let mut s: [u8; BGS] = [0; BGS];
 
-        const G1S: usize = BFS + 1; /* Group 1 Size */
-        const G2S: usize = 4 * BFS; /* Group 2 Size */
+        const G1S: usize = BFS + 1; // Group 1 Size
+        const G2S: usize = 8 * BFS; // Group 2 Size
 
         let mut w: [u8; G2S] = [0; G2S];
         let mut sig: [u8; G1S] = [0; G1S];
diff --git a/src/bls256.rs b/src/bls256.rs
index b36566c..adad0da 100644
--- a/src/bls256.rs
+++ b/src/bls256.rs
@@ -98,13 +98,13 @@ mod tests {
     use crate::test_utils::*;
 
     #[test]
-    fn test_bls() {
+    fn test_bls48() {
         let mut rng = create_rng();
 
         let mut s: [u8; BGS] = [0; BGS];
 
-        const G1S: usize = BFS + 1; /* Group 1 Size */
-        const G2S: usize = 4 * BFS; /* Group 2 Size */
+        const G1S: usize = BFS + 1; // Group 1 Size
+        const G2S: usize = 16 * BFS; // Group 2 Size
 
         let mut w: [u8; G2S] = [0; G2S];
         let mut sig: [u8; G1S] = [0; G1S];