Browse Source

New Hope -> NewHope (No functional changes).

Yawning Angel 2 years ago
parent
commit
c9a2ed0b96
10 changed files with 17 additions and 16 deletions
  1. 1 1
      error_correction.go
  2. 8 7
      newhope.go
  3. 1 1
      newhope_test.go
  4. 1 1
      newhope_testvectors_test.go
  5. 1 1
      newhope_testvectors_tor_test.go
  6. 1 1
      ntt.go
  7. 1 1
      params.go
  8. 1 1
      poly.go
  9. 1 1
      precomp.go
  10. 1 1
      reduce.go

+ 1 - 1
error_correction.go

@@ -1,4 +1,4 @@
-// error_correction.go - New Hope key exchange error correction.
+// error_correction.go - NewHope key exchange error correction.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 8 - 7
newhope.go

@@ -1,4 +1,4 @@
-// newhope.go - New Hope interface.
+// newhope.go - NewHope interface.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative
@@ -9,7 +9,9 @@
 // Errors Problem.  It is a mechanical port of the Public Domain implementation
 // by Erdem Alkim, Léo Ducas, Thomas Pöppelmann, and Peter Schwabe.
 //
-// For more information see: https://cryptojedi.org/papers/newhope-20160803.pdf
+// For more information see:
+// https://cryptojedi.org/papers/newhope-20161119.pdf
+// https://cryptojedi.org/papers/newhopesimple-20161217.pdf
 //
 package newhope
 
@@ -81,12 +83,12 @@ func memwipe(b []byte) {
 	}
 }
 
-// PublicKeyAlice is Alice's New Hope public key.
+// PublicKeyAlice is Alice's NewHope public key.
 type PublicKeyAlice struct {
 	Send [SendASize]byte
 }
 
-// PrivateKeyAlice is Alice's New Hope private key.
+// PrivateKeyAlice is Alice's NewHope private key.
 type PrivateKeyAlice struct {
 	sk poly
 }
@@ -133,7 +135,7 @@ func GenerateKeyPair(rand io.Reader) (*PrivateKeyAlice, *PublicKeyAlice, error)
 	return privKey, pubKey, nil
 }
 
-// PublicKeyBob is Bob's New Hope public key.
+// PublicKeyBob is Bob's NewHope public key.
 type PublicKeyBob struct {
 	Send [SendBSize]byte
 }
@@ -192,8 +194,7 @@ func KeyExchangeBob(rand io.Reader, alicePk *PublicKeyAlice) (*PublicKeyBob, []b
 }
 
 // KeyExchangeAlice is the Initiaitor side of the Ring-LWE key exchange.  The
-// provided private key is obliterated prior to returning, to promote
-// implementing Perfect Forward Secrecy.
+// provided private key is obliterated prior to returning.
 func KeyExchangeAlice(bobPk *PublicKeyBob, aliceSk *PrivateKeyAlice) ([]byte, error) {
 	var u, r, vp poly
 

+ 1 - 1
newhope_test.go

@@ -1,4 +1,4 @@
-// newhope_test.go - New Hope Integration tests.
+// newhope_test.go - NewHope Integration tests.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 1 - 1
newhope_testvectors_test.go

@@ -1,4 +1,4 @@
-// newhope_testvectors_test.go - New Hope Known Answer Tests.
+// newhope_testvectors_test.go - NewHope Known Answer Tests.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 1 - 1
newhope_testvectors_tor_test.go

@@ -1,4 +1,4 @@
-// newhope_testvectors_test.go - New Hope Known Answer Tests.
+// newhope_testvectors_test.go - NewHope Known Answer Tests.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 1 - 1
ntt.go

@@ -1,4 +1,4 @@
-// ntt.go - New Hope Number Theoretic Transform.
+// ntt.go - NewHope Number Theoretic Transform.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 1 - 1
params.go

@@ -1,4 +1,4 @@
-// params.go - New Hope parameters.
+// params.go - NewHope parameters.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 1 - 1
poly.go

@@ -1,4 +1,4 @@
-// poly.go - New Hope polynomial.
+// poly.go - NewHope polynomial.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 1 - 1
precomp.go

@@ -1,4 +1,4 @@
-// precomp.go - New Hope precomputed tables.
+// precomp.go - NewHope precomputed tables.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative

+ 1 - 1
reduce.go

@@ -1,4 +1,4 @@
-// poly.go - New Hope reductions.
+// poly.go - NewHope reductions.
 //
 // To the extent possible under law, Yawning Angel has waived all copyright
 // and related or neighboring rights to newhope, using the Creative