diff --git a/dh/sidh/internal/p434/arith_amd64_test.go b/dh/sidh/internal/p434/arith_amd64_test.go index 9ae0549..c479bf7 100644 --- a/dh/sidh/internal/p434/arith_amd64_test.go +++ b/dh/sidh/internal/p434/arith_amd64_test.go @@ -10,7 +10,7 @@ import ( "testing" "testing/quick" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "golang.org/x/sys/cpu" ) diff --git a/dh/sidh/internal/p434/arith_decl.go b/dh/sidh/internal/p434/arith_decl.go index 7c9c415..dd1662a 100644 --- a/dh/sidh/internal/p434/arith_decl.go +++ b/dh/sidh/internal/p434/arith_decl.go @@ -6,7 +6,7 @@ package p434 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. diff --git a/dh/sidh/internal/p434/arith_generic.go b/dh/sidh/internal/p434/arith_generic.go index 68be920..028012f 100644 --- a/dh/sidh/internal/p434/arith_generic.go +++ b/dh/sidh/internal/p434/arith_generic.go @@ -8,7 +8,7 @@ package p434 import ( "math/bits" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Compute z = x + y (mod p). diff --git a/dh/sidh/internal/p434/arith_test.go b/dh/sidh/internal/p434/arith_test.go index c9f1a6a..9a094ae 100644 --- a/dh/sidh/internal/p434/arith_test.go +++ b/dh/sidh/internal/p434/arith_test.go @@ -6,7 +6,7 @@ package p434 import ( "testing" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Package-level storage for this field element is intended to deter diff --git a/dh/sidh/internal/p434/core.go b/dh/sidh/internal/p434/core.go index 1e5c3a2..5b77af5 100644 --- a/dh/sidh/internal/p434/core.go +++ b/dh/sidh/internal/p434/core.go @@ -4,7 +4,7 @@ package p434 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // ----------------------------------------------------------------------------- diff --git a/dh/sidh/internal/p434/curve.go b/dh/sidh/internal/p434/curve.go index aa02553..c36a6c9 100644 --- a/dh/sidh/internal/p434/curve.go +++ b/dh/sidh/internal/p434/curve.go @@ -4,7 +4,7 @@ package p434 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // Stores isogeny 3 curve constants diff --git a/dh/sidh/internal/p434/curve_test.go b/dh/sidh/internal/p434/curve_test.go index 119684a..b19f564 100644 --- a/dh/sidh/internal/p434/curve_test.go +++ b/dh/sidh/internal/p434/curve_test.go @@ -7,7 +7,7 @@ import ( "bytes" "testing" - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) func vartimeEqProjFp2(lhs, rhs *ProjectivePoint) bool { diff --git a/dh/sidh/internal/p434/fp2.go b/dh/sidh/internal/p434/fp2.go index 05ec5a5..78090d5 100644 --- a/dh/sidh/internal/p434/fp2.go +++ b/dh/sidh/internal/p434/fp2.go @@ -4,7 +4,7 @@ package p434 import ( - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Montgomery multiplication. Input values must be already diff --git a/dh/sidh/internal/p434/fp2_test.go b/dh/sidh/internal/p434/fp2_test.go index 4499361..564f29f 100644 --- a/dh/sidh/internal/p434/fp2_test.go +++ b/dh/sidh/internal/p434/fp2_test.go @@ -9,7 +9,7 @@ import ( "testing" "testing/quick" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) type testParams struct { diff --git a/dh/sidh/internal/p434/params.go b/dh/sidh/internal/p434/params.go index 00acaca..86a1095 100644 --- a/dh/sidh/internal/p434/params.go +++ b/dh/sidh/internal/p434/params.go @@ -3,7 +3,7 @@ package p434 //go:generate go run ../templates/gen.go P434 import ( - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "golang.org/x/sys/cpu" ) diff --git a/dh/sidh/internal/p434/params_test.go b/dh/sidh/internal/p434/params_test.go index 6ec524f..44d33ee 100644 --- a/dh/sidh/internal/p434/params_test.go +++ b/dh/sidh/internal/p434/params_test.go @@ -4,7 +4,7 @@ package p434 import ( "testing/quick" - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // Values omputed using Sage diff --git a/dh/sidh/internal/p503/arith_amd64_test.go b/dh/sidh/internal/p503/arith_amd64_test.go index f853607..7d4a859 100644 --- a/dh/sidh/internal/p503/arith_amd64_test.go +++ b/dh/sidh/internal/p503/arith_amd64_test.go @@ -10,7 +10,7 @@ import ( "testing" "testing/quick" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "golang.org/x/sys/cpu" ) diff --git a/dh/sidh/internal/p503/arith_decl.go b/dh/sidh/internal/p503/arith_decl.go index 6241726..1e574da 100644 --- a/dh/sidh/internal/p503/arith_decl.go +++ b/dh/sidh/internal/p503/arith_decl.go @@ -6,7 +6,7 @@ package p503 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. diff --git a/dh/sidh/internal/p503/arith_generic.go b/dh/sidh/internal/p503/arith_generic.go index ac83432..11e11b6 100644 --- a/dh/sidh/internal/p503/arith_generic.go +++ b/dh/sidh/internal/p503/arith_generic.go @@ -8,7 +8,7 @@ package p503 import ( "math/bits" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Compute z = x + y (mod p). diff --git a/dh/sidh/internal/p503/arith_test.go b/dh/sidh/internal/p503/arith_test.go index 47a37a8..3a98982 100644 --- a/dh/sidh/internal/p503/arith_test.go +++ b/dh/sidh/internal/p503/arith_test.go @@ -6,7 +6,7 @@ package p503 import ( "testing" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Package-level storage for this field element is intended to deter diff --git a/dh/sidh/internal/p503/core.go b/dh/sidh/internal/p503/core.go index cf128d0..eaebf9c 100644 --- a/dh/sidh/internal/p503/core.go +++ b/dh/sidh/internal/p503/core.go @@ -4,7 +4,7 @@ package p503 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // ----------------------------------------------------------------------------- diff --git a/dh/sidh/internal/p503/curve.go b/dh/sidh/internal/p503/curve.go index 395d0cb..276895f 100644 --- a/dh/sidh/internal/p503/curve.go +++ b/dh/sidh/internal/p503/curve.go @@ -4,7 +4,7 @@ package p503 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // Stores isogeny 3 curve constants diff --git a/dh/sidh/internal/p503/curve_test.go b/dh/sidh/internal/p503/curve_test.go index bf5b1d1..a415469 100644 --- a/dh/sidh/internal/p503/curve_test.go +++ b/dh/sidh/internal/p503/curve_test.go @@ -7,7 +7,7 @@ import ( "bytes" "testing" - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) func vartimeEqProjFp2(lhs, rhs *ProjectivePoint) bool { diff --git a/dh/sidh/internal/p503/fp2.go b/dh/sidh/internal/p503/fp2.go index 089fdaa..4a303f2 100644 --- a/dh/sidh/internal/p503/fp2.go +++ b/dh/sidh/internal/p503/fp2.go @@ -4,7 +4,7 @@ package p503 import ( - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Montgomery multiplication. Input values must be already diff --git a/dh/sidh/internal/p503/fp2_test.go b/dh/sidh/internal/p503/fp2_test.go index 3e15994..569fd1b 100644 --- a/dh/sidh/internal/p503/fp2_test.go +++ b/dh/sidh/internal/p503/fp2_test.go @@ -9,7 +9,7 @@ import ( "testing" "testing/quick" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) type testParams struct { diff --git a/dh/sidh/internal/p503/params.go b/dh/sidh/internal/p503/params.go index 432ac50..49f0d7a 100644 --- a/dh/sidh/internal/p503/params.go +++ b/dh/sidh/internal/p503/params.go @@ -3,7 +3,7 @@ package p503 //go:generate go run ../templates/gen.go P503 import ( - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "golang.org/x/sys/cpu" ) diff --git a/dh/sidh/internal/p503/params_test.go b/dh/sidh/internal/p503/params_test.go index d174613..c98c68c 100644 --- a/dh/sidh/internal/p503/params_test.go +++ b/dh/sidh/internal/p503/params_test.go @@ -4,7 +4,7 @@ package p503 import ( "testing/quick" - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // Values omputed using Sage diff --git a/dh/sidh/internal/p751/arith_amd64_test.go b/dh/sidh/internal/p751/arith_amd64_test.go index 9aa58cf..d1c15ce 100644 --- a/dh/sidh/internal/p751/arith_amd64_test.go +++ b/dh/sidh/internal/p751/arith_amd64_test.go @@ -10,7 +10,7 @@ import ( "testing" "testing/quick" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "golang.org/x/sys/cpu" ) diff --git a/dh/sidh/internal/p751/arith_decl.go b/dh/sidh/internal/p751/arith_decl.go index 8ff0bf4..6f8a3c2 100644 --- a/dh/sidh/internal/p751/arith_decl.go +++ b/dh/sidh/internal/p751/arith_decl.go @@ -6,7 +6,7 @@ package p751 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. diff --git a/dh/sidh/internal/p751/arith_generic.go b/dh/sidh/internal/p751/arith_generic.go index 9fab653..78a6198 100644 --- a/dh/sidh/internal/p751/arith_generic.go +++ b/dh/sidh/internal/p751/arith_generic.go @@ -8,7 +8,7 @@ package p751 import ( "math/bits" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Compute z = x + y (mod p). diff --git a/dh/sidh/internal/p751/arith_test.go b/dh/sidh/internal/p751/arith_test.go index a8a544f..878025c 100644 --- a/dh/sidh/internal/p751/arith_test.go +++ b/dh/sidh/internal/p751/arith_test.go @@ -6,7 +6,7 @@ package p751 import ( "testing" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Package-level storage for this field element is intended to deter diff --git a/dh/sidh/internal/p751/core.go b/dh/sidh/internal/p751/core.go index fcc89f5..d0017af 100644 --- a/dh/sidh/internal/p751/core.go +++ b/dh/sidh/internal/p751/core.go @@ -4,7 +4,7 @@ package p751 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // ----------------------------------------------------------------------------- diff --git a/dh/sidh/internal/p751/curve.go b/dh/sidh/internal/p751/curve.go index 3a79ca2..e74a6c1 100644 --- a/dh/sidh/internal/p751/curve.go +++ b/dh/sidh/internal/p751/curve.go @@ -4,7 +4,7 @@ package p751 import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // Stores isogeny 3 curve constants diff --git a/dh/sidh/internal/p751/curve_test.go b/dh/sidh/internal/p751/curve_test.go index c34ce56..f2c7608 100644 --- a/dh/sidh/internal/p751/curve_test.go +++ b/dh/sidh/internal/p751/curve_test.go @@ -7,7 +7,7 @@ import ( "bytes" "testing" - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) func vartimeEqProjFp2(lhs, rhs *ProjectivePoint) bool { diff --git a/dh/sidh/internal/p751/fp2.go b/dh/sidh/internal/p751/fp2.go index ed41019..761eb0c 100644 --- a/dh/sidh/internal/p751/fp2.go +++ b/dh/sidh/internal/p751/fp2.go @@ -4,7 +4,7 @@ package p751 import ( - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Montgomery multiplication. Input values must be already diff --git a/dh/sidh/internal/p751/fp2_test.go b/dh/sidh/internal/p751/fp2_test.go index b276d12..d5392c7 100644 --- a/dh/sidh/internal/p751/fp2_test.go +++ b/dh/sidh/internal/p751/fp2_test.go @@ -9,7 +9,7 @@ import ( "testing" "testing/quick" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) type testParams struct { diff --git a/dh/sidh/internal/p751/params.go b/dh/sidh/internal/p751/params.go index d6f5a40..02218a9 100644 --- a/dh/sidh/internal/p751/params.go +++ b/dh/sidh/internal/p751/params.go @@ -3,7 +3,7 @@ package p751 //go:generate go run ../templates/gen.go P751 import ( - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "golang.org/x/sys/cpu" ) diff --git a/dh/sidh/internal/p751/params_test.go b/dh/sidh/internal/p751/params_test.go index bcee9ba..c6522ce 100644 --- a/dh/sidh/internal/p751/params_test.go +++ b/dh/sidh/internal/p751/params_test.go @@ -4,7 +4,7 @@ package p751 import ( "testing/quick" - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) var ( diff --git a/dh/sidh/internal/templates/arith_decl.gotemp b/dh/sidh/internal/templates/arith_decl.gotemp index 02d9063..6eb5b23 100644 --- a/dh/sidh/internal/templates/arith_decl.gotemp +++ b/dh/sidh/internal/templates/arith_decl.gotemp @@ -6,7 +6,7 @@ package {{ .PACKAGE}} import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. diff --git a/dh/sidh/internal/templates/arith_generic.gotemp b/dh/sidh/internal/templates/arith_generic.gotemp index 8e435a8..b7c69b5 100644 --- a/dh/sidh/internal/templates/arith_generic.gotemp +++ b/dh/sidh/internal/templates/arith_generic.gotemp @@ -8,7 +8,7 @@ package {{ .PACKAGE}} import ( "math/bits" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Compute z = x + y (mod p). diff --git a/dh/sidh/internal/templates/arith_test.gotemp b/dh/sidh/internal/templates/arith_test.gotemp index 1ceb01e..151aff6 100644 --- a/dh/sidh/internal/templates/arith_test.gotemp +++ b/dh/sidh/internal/templates/arith_test.gotemp @@ -6,7 +6,7 @@ package {{ .PACKAGE}} import ( "testing" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Package-level storage for this field element is intended to deter diff --git a/dh/sidh/internal/templates/core.gotemp b/dh/sidh/internal/templates/core.gotemp index 0e70380..99d392e 100644 --- a/dh/sidh/internal/templates/core.gotemp +++ b/dh/sidh/internal/templates/core.gotemp @@ -4,7 +4,7 @@ package {{ .PACKAGE}} import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // ----------------------------------------------------------------------------- diff --git a/dh/sidh/internal/templates/curve.gotemp b/dh/sidh/internal/templates/curve.gotemp index 92ec240..f8d4bce 100644 --- a/dh/sidh/internal/templates/curve.gotemp +++ b/dh/sidh/internal/templates/curve.gotemp @@ -4,7 +4,7 @@ package {{ .PACKAGE}} import ( - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) // Stores isogeny 3 curve constants diff --git a/dh/sidh/internal/templates/curve_test.gotemp b/dh/sidh/internal/templates/curve_test.gotemp index 5c504f3..80d1ed7 100644 --- a/dh/sidh/internal/templates/curve_test.gotemp +++ b/dh/sidh/internal/templates/curve_test.gotemp @@ -7,7 +7,7 @@ import ( "bytes" "testing" - . "github.com/henrydcase/nobs/dh/sidh/internal/common" + . "github.com/henrydcase/nobs/dh/sidh/common" ) func vartimeEqProjFp2(lhs, rhs *ProjectivePoint) bool { diff --git a/dh/sidh/internal/templates/fp2.gotemp b/dh/sidh/internal/templates/fp2.gotemp index 2505735..1f4cac3 100644 --- a/dh/sidh/internal/templates/fp2.gotemp +++ b/dh/sidh/internal/templates/fp2.gotemp @@ -4,7 +4,7 @@ package {{ .PACKAGE}} import ( - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) // Montgomery multiplication. Input values must be already diff --git a/dh/sidh/internal/templates/fp2_test.gotemp b/dh/sidh/internal/templates/fp2_test.gotemp index 4b892a3..fddddc5 100644 --- a/dh/sidh/internal/templates/fp2_test.gotemp +++ b/dh/sidh/internal/templates/fp2_test.gotemp @@ -9,7 +9,7 @@ import ( "testing" "testing/quick" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) type testParams struct { diff --git a/dh/sidh/sidh.go b/dh/sidh/sidh.go index 6a0b281..1856f9e 100644 --- a/dh/sidh/sidh.go +++ b/dh/sidh/sidh.go @@ -4,7 +4,7 @@ import ( "errors" "io" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "github.com/henrydcase/nobs/dh/sidh/internal/p434" "github.com/henrydcase/nobs/dh/sidh/internal/p503" "github.com/henrydcase/nobs/dh/sidh/internal/p751" diff --git a/dh/sidh/sidh_test.go b/dh/sidh/sidh_test.go index 954236d..4b752d1 100644 --- a/dh/sidh/sidh_test.go +++ b/dh/sidh/sidh_test.go @@ -8,7 +8,7 @@ import ( "math/big" "testing" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) /* ------------------------------------------------------------------------- diff --git a/dh/sidh/sike.go b/dh/sidh/sike.go index bac8ffe..7eac282 100644 --- a/dh/sidh/sike.go +++ b/dh/sidh/sike.go @@ -5,7 +5,7 @@ import ( "errors" "io" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" "github.com/henrydcase/nobs/hash/sha3" ) diff --git a/dh/sidh/sike_test.go b/dh/sidh/sike_test.go index 7cec5a0..4b27d07 100644 --- a/dh/sidh/sike_test.go +++ b/dh/sidh/sike_test.go @@ -12,7 +12,7 @@ import ( "strings" "testing" - "github.com/henrydcase/nobs/dh/sidh/internal/common" + "github.com/henrydcase/nobs/dh/sidh/common" ) type sikeVec struct { diff --git a/kem/mkem/csidh.go b/kem/mkem/csidh.go deleted file mode 100644 index f3a3f28..0000000 --- a/kem/mkem/csidh.go +++ /dev/null @@ -1,13 +0,0 @@ -package mkem - -func PK_enc() { - -} - -func PK_dec() { - -} - -func KEM_mEnc() { - -}