]> Cypherpunks.ru repositories - gogost.git/commitdiff
go.cypherpunks.ru namespace usage
authorSergey Matveev <stargrave@stargrave.org>
Wed, 2 Oct 2019 14:20:57 +0000 (17:20 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 3 Oct 2019 08:02:39 +0000 (11:02 +0300)
59 files changed:
cmd/streebog256/main.go [moved from src/cypherpunks.ru/gogost/cmd/streebog256/main.go with 93% similarity]
cmd/streebog512/main.go [moved from src/cypherpunks.ru/gogost/cmd/streebog512/main.go with 93% similarity]
go.mod [new file with mode: 0644]
go.sum [moved from src/cypherpunks.ru/gogost/go.sum with 76% similarity]
gogost.go [moved from src/cypherpunks.ru/gogost/gogost.go with 100% similarity]
gost28147/cbc_test.go [moved from src/cypherpunks.ru/gogost/gost28147/cbc_test.go with 100% similarity]
gost28147/cfb.go [moved from src/cypherpunks.ru/gogost/gost28147/cfb.go with 100% similarity]
gost28147/cfb_test.go [moved from src/cypherpunks.ru/gogost/gost28147/cfb_test.go with 100% similarity]
gost28147/cipher.go [moved from src/cypherpunks.ru/gogost/gost28147/cipher.go with 100% similarity]
gost28147/cipher_test.go [moved from src/cypherpunks.ru/gogost/gost28147/cipher_test.go with 100% similarity]
gost28147/ctr.go [moved from src/cypherpunks.ru/gogost/gost28147/ctr.go with 100% similarity]
gost28147/ctr_test.go [moved from src/cypherpunks.ru/gogost/gost28147/ctr_test.go with 100% similarity]
gost28147/ecb.go [moved from src/cypherpunks.ru/gogost/gost28147/ecb.go with 100% similarity]
gost28147/ecb_test.go [moved from src/cypherpunks.ru/gogost/gost28147/ecb_test.go with 100% similarity]
gost28147/mac.go [moved from src/cypherpunks.ru/gogost/gost28147/mac.go with 100% similarity]
gost28147/mac_test.go [moved from src/cypherpunks.ru/gogost/gost28147/mac_test.go with 100% similarity]
gost28147/sbox.go [moved from src/cypherpunks.ru/gogost/gost28147/sbox.go with 100% similarity]
gost3410/2001_test.go [moved from src/cypherpunks.ru/gogost/gost3410/2001_test.go with 100% similarity]
gost3410/2012_test.go [moved from src/cypherpunks.ru/gogost/gost3410/2012_test.go with 100% similarity]
gost3410/curve.go [moved from src/cypherpunks.ru/gogost/gost3410/curve.go with 100% similarity]
gost3410/doc.go [moved from src/cypherpunks.ru/gogost/gost3410/doc.go with 100% similarity]
gost3410/edwards.go [moved from src/cypherpunks.ru/gogost/gost3410/edwards.go with 100% similarity]
gost3410/params.go [moved from src/cypherpunks.ru/gogost/gost3410/params.go with 100% similarity]
gost3410/private.go [moved from src/cypherpunks.ru/gogost/gost3410/private.go with 100% similarity]
gost3410/private_test.go [moved from src/cypherpunks.ru/gogost/gost3410/private_test.go with 100% similarity]
gost3410/public.go [moved from src/cypherpunks.ru/gogost/gost3410/public.go with 100% similarity]
gost3410/ukm.go [moved from src/cypherpunks.ru/gogost/gost3410/ukm.go with 100% similarity]
gost3410/utils.go [moved from src/cypherpunks.ru/gogost/gost3410/utils.go with 100% similarity]
gost3410/vko.go [moved from src/cypherpunks.ru/gogost/gost3410/vko.go with 100% similarity]
gost3410/vko2001.go [moved from src/cypherpunks.ru/gogost/gost3410/vko2001.go with 93% similarity]
gost3410/vko2001_test.go [moved from src/cypherpunks.ru/gogost/gost3410/vko2001_test.go with 100% similarity]
gost3410/vko2012.go [moved from src/cypherpunks.ru/gogost/gost3410/vko2012.go with 93% similarity]
gost3410/vko2012_test.go [moved from src/cypherpunks.ru/gogost/gost3410/vko2012_test.go with 100% similarity]
gost34112012256/esptree.go [moved from src/cypherpunks.ru/gogost/gost34112012256/esptree.go with 100% similarity]
gost34112012256/esptree_test.go [moved from src/cypherpunks.ru/gogost/gost34112012256/esptree_test.go with 100% similarity]
gost34112012256/hash.go [moved from src/cypherpunks.ru/gogost/gost34112012256/hash.go with 95% similarity]
gost34112012256/hkdf_test.go [moved from src/cypherpunks.ru/gogost/gost34112012256/hkdf_test.go with 100% similarity]
gost34112012256/kdf.go [moved from src/cypherpunks.ru/gogost/gost34112012256/kdf.go with 100% similarity]
gost34112012256/kdf_test.go [moved from src/cypherpunks.ru/gogost/gost34112012256/kdf_test.go with 100% similarity]
gost34112012256/tlstree.go [moved from src/cypherpunks.ru/gogost/gost34112012256/tlstree.go with 100% similarity]
gost34112012256/tlstree_test.go [moved from src/cypherpunks.ru/gogost/gost34112012256/tlstree_test.go with 100% similarity]
gost34112012512/hash.go [moved from src/cypherpunks.ru/gogost/gost34112012512/hash.go with 95% similarity]
gost341194/hash.go [moved from src/cypherpunks.ru/gogost/gost341194/hash.go with 99% similarity]
gost341194/hash_test.go [moved from src/cypherpunks.ru/gogost/gost341194/hash_test.go with 99% similarity]
gost341194/pbkdf2_test.go [moved from src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go with 98% similarity]
gost3412128/cipher.go [moved from src/cypherpunks.ru/gogost/gost3412128/cipher.go with 100% similarity]
gost3412128/cipher_test.go [moved from src/cypherpunks.ru/gogost/gost3412128/cipher_test.go with 100% similarity]
gost341264/cipher.go [moved from src/cypherpunks.ru/gogost/gost341264/cipher.go with 98% similarity]
gost341264/cipher_test.go [moved from src/cypherpunks.ru/gogost/gost341264/cipher_test.go with 100% similarity]
gost3413/padding.go [moved from src/cypherpunks.ru/gogost/gost3413/padding.go with 100% similarity]
internal/gost34112012/hash.go [moved from src/cypherpunks.ru/gogost/internal/gost34112012/hash.go with 100% similarity]
internal/gost34112012/hash_test.go [moved from src/cypherpunks.ru/gogost/internal/gost34112012/hash_test.go with 100% similarity]
internal/gost34112012/hmac_test.go [moved from src/cypherpunks.ru/gogost/internal/gost34112012/hmac_test.go with 100% similarity]
mgm/mode.go [moved from src/cypherpunks.ru/gogost/mgm/mode.go with 100% similarity]
mgm/mode_test.go [moved from src/cypherpunks.ru/gogost/mgm/mode_test.go with 98% similarity]
mgm/mul.go [moved from src/cypherpunks.ru/gogost/mgm/mul.go with 100% similarity]
mgm/mul_test.go [moved from src/cypherpunks.ru/gogost/mgm/mul_test.go with 94% similarity]
mgm/slice.go [moved from src/cypherpunks.ru/gogost/mgm/slice.go with 100% similarity]
src/cypherpunks.ru/gogost/go.mod [deleted file]

similarity index 93%
rename from src/cypherpunks.ru/gogost/cmd/streebog256/main.go
rename to cmd/streebog256/main.go
index 55d1914bee341784651b4167694a1b574ae1b295..972216802a90f0543407fa644e94e278c1c2a3c7 100644 (file)
@@ -23,8 +23,8 @@ import (
        "io"
        "os"
 
-       "cypherpunks.ru/gogost"
-       "cypherpunks.ru/gogost/gost34112012256"
+       "go.cypherpunks.ru/gogost/v4"
+       "go.cypherpunks.ru/gogost/v4/gost34112012256"
 )
 
 var (
similarity index 93%
rename from src/cypherpunks.ru/gogost/cmd/streebog512/main.go
rename to cmd/streebog512/main.go
index 24afe904732084275566694fa18938425f5a26b2..41d0c6a972b3515a8cfc9984e7f53475fa0feae6 100644 (file)
@@ -23,8 +23,8 @@ import (
        "io"
        "os"
 
-       "cypherpunks.ru/gogost"
-       "cypherpunks.ru/gogost/gost34112012512"
+       "go.cypherpunks.ru/gogost/v4"
+       "go.cypherpunks.ru/gogost/v4/gost34112012512"
 )
 
 var (
diff --git a/go.mod b/go.mod
new file mode 100644 (file)
index 0000000..21dce95
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,5 @@
+module go.cypherpunks.ru/gogost/v4
+
+go 1.12
+
+require golang.org/x/crypto v0.0.0-20191001170739-f9e2070545dc
similarity index 76%
rename from src/cypherpunks.ru/gogost/go.sum
rename to go.sum
index b75b87f0559bb172701d32af32dd6314f65562ef..a95cc328388463a06ea5b4f0166fe031cd0e4cd3 100644 (file)
+++ b/go.sum
@@ -1,6 +1,6 @@
 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc=
-golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20191001170739-f9e2070545dc h1:KyTYo8xkh/2WdbFLUyQwBS0Jfn3qfZ9QmuPbok2oENE=
+golang.org/x/crypto v0.0.0-20191001170739-f9e2070545dc/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
 golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
 golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
similarity index 93%
rename from src/cypherpunks.ru/gogost/gost3410/vko2001.go
rename to gost3410/vko2001.go
index 18fff3e2999921193e630c8657a7f6ae7a34969a..ed49d8f00fbb423f4991dc650bad9a618bd38800 100644 (file)
@@ -19,8 +19,8 @@ import (
        "errors"
        "math/big"
 
-       "cypherpunks.ru/gogost/gost28147"
-       "cypherpunks.ru/gogost/gost341194"
+       "go.cypherpunks.ru/gogost/v4/gost28147"
+       "go.cypherpunks.ru/gogost/v4/gost341194"
 )
 
 // RFC 4357 VKO GOST R 34.10-2001 key agreement function.
similarity index 93%
rename from src/cypherpunks.ru/gogost/gost3410/vko2012.go
rename to gost3410/vko2012.go
index 836d3a4f0b3b5b1572c9327d839e7ac033ed27c9..7a30b4ed367d07a34cec98cffbd5a04f5219e33e 100644 (file)
@@ -18,8 +18,8 @@ package gost3410
 import (
        "math/big"
 
-       "cypherpunks.ru/gogost/gost34112012256"
-       "cypherpunks.ru/gogost/gost34112012512"
+       "go.cypherpunks.ru/gogost/v4/gost34112012256"
+       "go.cypherpunks.ru/gogost/v4/gost34112012512"
 )
 
 // RFC 7836 VKO GOST R 34.10-2012 256-bit key agreement function.
similarity index 95%
rename from src/cypherpunks.ru/gogost/gost34112012256/hash.go
rename to gost34112012256/hash.go
index 30e308bbf9920e0b06c52b054fd7e82505e5c555..f1f7e9b01f125a80829ce04862c370c8b885ae2e 100644 (file)
@@ -20,7 +20,7 @@ package gost34112012256
 import (
        "hash"
 
-       "cypherpunks.ru/gogost/internal/gost34112012"
+       "go.cypherpunks.ru/gogost/v4/internal/gost34112012"
 )
 
 const (
similarity index 95%
rename from src/cypherpunks.ru/gogost/gost34112012512/hash.go
rename to gost34112012512/hash.go
index bdfd53885aabe554cfa2bed9032b69f9b1df6658..06e1a86109550a28ed29decfad9a7bbfb9dc2b43 100644 (file)
@@ -20,7 +20,7 @@ package gost34112012512
 import (
        "hash"
 
-       "cypherpunks.ru/gogost/internal/gost34112012"
+       "go.cypherpunks.ru/gogost/v4/internal/gost34112012"
 )
 
 const (
similarity index 99%
rename from src/cypherpunks.ru/gogost/gost341194/hash.go
rename to gost341194/hash.go
index 61d506c3f9d3ac6bddbb13fe6989f0185934e31e..e386ddd207e0ef1637e9faffff7db6976f991488 100644 (file)
@@ -21,7 +21,7 @@ import (
        "encoding/binary"
        "math/big"
 
-       "cypherpunks.ru/gogost/gost28147"
+       "go.cypherpunks.ru/gogost/v4/gost28147"
 )
 
 const (
similarity index 99%
rename from src/cypherpunks.ru/gogost/gost341194/hash_test.go
rename to gost341194/hash_test.go
index bcd86c538480c6999d84d23952b3c6270b6e53fe..de5d988600c6dc90e939eef0b56d997de83a826a 100644 (file)
@@ -22,7 +22,7 @@ import (
        "testing"
        "testing/quick"
 
-       "cypherpunks.ru/gogost/gost28147"
+       "go.cypherpunks.ru/gogost/v4/gost28147"
 )
 
 func TestHashInterface(t *testing.T) {
similarity index 98%
rename from src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go
rename to gost341194/pbkdf2_test.go
index 86ecea8e9d10c4b8d569eea8b0b3d541f2d3daf0..20c5c13926af657112910906bfa9bd3aa34e3350 100644 (file)
@@ -20,7 +20,7 @@ import (
        "hash"
        "testing"
 
-       "cypherpunks.ru/gogost/gost28147"
+       "go.cypherpunks.ru/gogost/v4/gost28147"
        "golang.org/x/crypto/pbkdf2"
 )
 
similarity index 98%
rename from src/cypherpunks.ru/gogost/gost341264/cipher.go
rename to gost341264/cipher.go
index 53a27920b8009a602b5be3a4dfd0fd3b5107128d..f30808076990df4316e30d5e4d149e5d3b48584e 100644 (file)
@@ -17,7 +17,7 @@
 package gost341264
 
 import (
-       "cypherpunks.ru/gogost/gost28147"
+       "go.cypherpunks.ru/gogost/v4/gost28147"
 )
 
 const (
similarity index 98%
rename from src/cypherpunks.ru/gogost/mgm/mode_test.go
rename to mgm/mode_test.go
index aedd59b2637118d9925ecf9536ac19770600b551..38d6ee9a842b4fa54c21def92e43b6c369ecdfb4 100644 (file)
@@ -22,8 +22,8 @@ import (
        "testing"
        "testing/quick"
 
-       "cypherpunks.ru/gogost/gost3412128"
-       "cypherpunks.ru/gogost/gost341264"
+       "go.cypherpunks.ru/gogost/v4/gost3412128"
+       "go.cypherpunks.ru/gogost/v4/gost341264"
 )
 
 func TestVector(t *testing.T) {
similarity index 94%
rename from src/cypherpunks.ru/gogost/mgm/mul_test.go
rename to mgm/mul_test.go
index 742085981871ab5718415bb3bba1f06addd7bed9..9a08946a3e4a20c3e71b84bc32b3cf7ff68b5c26 100644 (file)
@@ -20,8 +20,8 @@ import (
        "math/big"
        "testing"
 
-       "cypherpunks.ru/gogost/gost3412128"
-       "cypherpunks.ru/gogost/gost341264"
+       "go.cypherpunks.ru/gogost/v4/gost3412128"
+       "go.cypherpunks.ru/gogost/v4/gost341264"
 )
 
 func BenchmarkMul64(b *testing.B) {
diff --git a/src/cypherpunks.ru/gogost/go.mod b/src/cypherpunks.ru/gogost/go.mod
deleted file mode 100644 (file)
index 2876534..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-module cypherpunks.ru/gogost
-
-go 1.12
-
-require golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4