[Cryptech-Commits] [core/pkey/ed25519] 02/04: Fixed wrong word order.

git at cryptech.is git at cryptech.is
Mon Oct 15 13:18:09 UTC 2018


This is an automated email from the git hooks/post-receive script.

meisterpaul1 at yandex.ru pushed a commit to branch master
in repository core/pkey/ed25519.

commit 1a233271ba75b0a878068e5c6acfb7ba66480c21
Author: Pavel V. Shatov (Meister) <meisterpaul1 at yandex.ru>
AuthorDate: Mon Oct 15 15:49:49 2018 +0300

    Fixed wrong word order.
---
 rtl/ed25519_bank.v | 78 +++++++++++++++++++++++++++---------------------------
 1 file changed, 39 insertions(+), 39 deletions(-)

diff --git a/rtl/ed25519_bank.v b/rtl/ed25519_bank.v
index 9c8100e..81984f3 100644
--- a/rtl/ed25519_bank.v
+++ b/rtl/ed25519_bank.v
@@ -58,60 +58,60 @@ module ed25519_bank
         //
         // CONST_ZERO 
         //
-        bram[ 0*8 + 0] = 32'h00000000;
-        bram[ 0*8 + 1] = 32'h00000000;
-        bram[ 0*8 + 2] = 32'h00000000;
-        bram[ 0*8 + 3] = 32'h00000000;
-        bram[ 0*8 + 4] = 32'h00000000;
-        bram[ 0*8 + 5] = 32'h00000000;
-        bram[ 0*8 + 6] = 32'h00000000;
         bram[ 0*8 + 7] = 32'h00000000;
+        bram[ 0*8 + 6] = 32'h00000000;
+        bram[ 0*8 + 5] = 32'h00000000;
+        bram[ 0*8 + 4] = 32'h00000000;
+        bram[ 0*8 + 3] = 32'h00000000;
+        bram[ 0*8 + 2] = 32'h00000000;
+        bram[ 0*8 + 1] = 32'h00000000;
+        bram[ 0*8 + 0] = 32'h00000000;
         //
         // CONST_ONE
         //
-        bram[ 1*8 + 0] = 32'h00000001;
-        bram[ 1*8 + 1] = 32'h00000000;
-        bram[ 1*8 + 2] = 32'h00000000;
-        bram[ 1*8 + 3] = 32'h00000000;
-        bram[ 1*8 + 4] = 32'h00000000;
-        bram[ 1*8 + 5] = 32'h00000000;
-        bram[ 1*8 + 6] = 32'h00000000;
         bram[ 1*8 + 7] = 32'h00000000;
+        bram[ 1*8 + 6] = 32'h00000000;
+        bram[ 1*8 + 5] = 32'h00000000;
+        bram[ 1*8 + 4] = 32'h00000000;
+        bram[ 1*8 + 3] = 32'h00000000;
+        bram[ 1*8 + 2] = 32'h00000000;
+        bram[ 1*8 + 1] = 32'h00000000;
+        bram[ 1*8 + 0] = 32'h00000001;
         //
         // G_X
         //
-        bram[15*8 + 0] = 32'h216936d3;
-        bram[15*8 + 1] = 32'hcd6e53fe;
-        bram[15*8 + 2] = 32'hc0a4e231;
-        bram[15*8 + 3] = 32'hfdd6dc5c;
-        bram[15*8 + 4] = 32'h692cc760;
-        bram[15*8 + 5] = 32'h9525a7b2;
-        bram[15*8 + 6] = 32'hc9562d60;
-        bram[15*8 + 7] = 32'h8f25d51a;
+        bram[14*8 + 7] = 32'h216936d3;
+        bram[14*8 + 6] = 32'hcd6e53fe;
+        bram[14*8 + 5] = 32'hc0a4e231;
+        bram[14*8 + 4] = 32'hfdd6dc5c;
+        bram[14*8 + 3] = 32'h692cc760;
+        bram[14*8 + 2] = 32'h9525a7b2;
+        bram[14*8 + 1] = 32'hc9562d60;
+        bram[14*8 + 0] = 32'h8f25d51a;
         //
         // G_Y
         //
-        bram[16*8 + 0] = 32'h66666666;
-        bram[16*8 + 1] = 32'h66666666;
-        bram[16*8 + 2] = 32'h66666666;
-        bram[16*8 + 3] = 32'h66666666;
-        bram[16*8 + 4] = 32'h66666666;
-        bram[16*8 + 5] = 32'h66666666;
-        bram[16*8 + 6] = 32'h66666666;
-        bram[16*8 + 7] = 32'h66666658;
+        bram[15*8 + 7] = 32'h66666666;
+        bram[15*8 + 6] = 32'h66666666;
+        bram[15*8 + 5] = 32'h66666666;
+        bram[15*8 + 4] = 32'h66666666;
+        bram[15*8 + 3] = 32'h66666666;
+        bram[15*8 + 2] = 32'h66666666;
+        bram[15*8 + 1] = 32'h66666666;
+        bram[15*8 + 0] = 32'h66666658;
         //
         // G_T
         //
-        bram[18*8 + 0] = 32'h67875f0f;
-        bram[18*8 + 1] = 32'hd78b7665;
-        bram[18*8 + 2] = 32'h66ea4e8e;
-        bram[18*8 + 3] = 32'h64abe37d;
-        bram[18*8 + 4] = 32'h20f09f80;
-        bram[18*8 + 5] = 32'h775152f5;
-        bram[18*8 + 6] = 32'h6dde8ab3;
-        bram[18*8 + 7] = 32'ha5b7dda3;
+        bram[16*8 + 7] = 32'h67875f0f;
+        bram[16*8 + 6] = 32'hd78b7665;
+        bram[16*8 + 5] = 32'h66ea4e8e;
+        bram[16*8 + 4] = 32'h64abe37d;
+        bram[16*8 + 3] = 32'h20f09f80;
+        bram[16*8 + 2] = 32'h775152f5;
+        bram[16*8 + 1] = 32'h6dde8ab3;
+        bram[16*8 + 0] = 32'ha5b7dda3;
 	end
-    
+
 
     //
     // Output Register



More information about the Commits mailing list