From c07494bbd559b9d00f391e28cfd070e18afe9900 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 2 Oct 2019 17:20:57 +0300 Subject: [PATCH] go.cypherpunks.ru namespace usage --- {src/cypherpunks.ru/gogost/cmd => cmd}/streebog256/main.go | 4 ++-- {src/cypherpunks.ru/gogost/cmd => cmd}/streebog512/main.go | 4 ++-- go.mod | 5 +++++ src/cypherpunks.ru/gogost/go.sum => go.sum | 4 ++-- src/cypherpunks.ru/gogost/gogost.go => gogost.go | 0 .../gogost/gost28147 => gost28147}/cbc_test.go | 0 {src/cypherpunks.ru/gogost/gost28147 => gost28147}/cfb.go | 0 .../gogost/gost28147 => gost28147}/cfb_test.go | 0 {src/cypherpunks.ru/gogost/gost28147 => gost28147}/cipher.go | 0 .../gogost/gost28147 => gost28147}/cipher_test.go | 0 {src/cypherpunks.ru/gogost/gost28147 => gost28147}/ctr.go | 0 .../gogost/gost28147 => gost28147}/ctr_test.go | 0 {src/cypherpunks.ru/gogost/gost28147 => gost28147}/ecb.go | 0 .../gogost/gost28147 => gost28147}/ecb_test.go | 0 {src/cypherpunks.ru/gogost/gost28147 => gost28147}/mac.go | 0 .../gogost/gost28147 => gost28147}/mac_test.go | 0 {src/cypherpunks.ru/gogost/gost28147 => gost28147}/sbox.go | 0 .../cypherpunks.ru/gogost/gost3410 => gost3410}/2001_test.go | 0 .../cypherpunks.ru/gogost/gost3410 => gost3410}/2012_test.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/curve.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/doc.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/edwards.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/params.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/private.go | 0 .../gogost/gost3410 => gost3410}/private_test.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/public.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/ukm.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/utils.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko2001.go | 4 ++-- .../gogost/gost3410 => gost3410}/vko2001_test.go | 0 {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko2012.go | 4 ++-- .../gogost/gost3410 => gost3410}/vko2012_test.go | 0 .../gogost/gost34112012256 => gost34112012256}/esptree.go | 0 .../gost34112012256 => gost34112012256}/esptree_test.go | 0 .../gogost/gost34112012256 => gost34112012256}/hash.go | 2 +- .../gogost/gost34112012256 => gost34112012256}/hkdf_test.go | 0 .../gogost/gost34112012256 => gost34112012256}/kdf.go | 0 .../gogost/gost34112012256 => gost34112012256}/kdf_test.go | 0 .../gogost/gost34112012256 => gost34112012256}/tlstree.go | 0 .../gost34112012256 => gost34112012256}/tlstree_test.go | 0 .../gogost/gost34112012512 => gost34112012512}/hash.go | 2 +- {src/cypherpunks.ru/gogost/gost341194 => gost341194}/hash.go | 2 +- .../gogost/gost341194 => gost341194}/hash_test.go | 2 +- .../gogost/gost341194 => gost341194}/pbkdf2_test.go | 2 +- .../gogost/gost3412128 => gost3412128}/cipher.go | 0 .../gogost/gost3412128 => gost3412128}/cipher_test.go | 0 .../gogost/gost341264 => gost341264}/cipher.go | 2 +- .../gogost/gost341264 => gost341264}/cipher_test.go | 0 {src/cypherpunks.ru/gogost/gost3413 => gost3413}/padding.go | 0 .../gogost/internal => internal}/gost34112012/hash.go | 0 .../gogost/internal => internal}/gost34112012/hash_test.go | 0 .../gogost/internal => internal}/gost34112012/hmac_test.go | 0 {src/cypherpunks.ru/gogost/mgm => mgm}/mode.go | 0 {src/cypherpunks.ru/gogost/mgm => mgm}/mode_test.go | 4 ++-- {src/cypherpunks.ru/gogost/mgm => mgm}/mul.go | 0 {src/cypherpunks.ru/gogost/mgm => mgm}/mul_test.go | 4 ++-- {src/cypherpunks.ru/gogost/mgm => mgm}/slice.go | 0 src/cypherpunks.ru/gogost/go.mod | 5 ----- 59 files changed, 25 insertions(+), 25 deletions(-) rename {src/cypherpunks.ru/gogost/cmd => cmd}/streebog256/main.go (93%) rename {src/cypherpunks.ru/gogost/cmd => cmd}/streebog512/main.go (93%) create mode 100644 go.mod rename src/cypherpunks.ru/gogost/go.sum => go.sum (76%) rename src/cypherpunks.ru/gogost/gogost.go => gogost.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/cbc_test.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/cfb.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/cfb_test.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/cipher.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/cipher_test.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/ctr.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/ctr_test.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/ecb.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/ecb_test.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/mac.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/mac_test.go (100%) rename {src/cypherpunks.ru/gogost/gost28147 => gost28147}/sbox.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/2001_test.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/2012_test.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/curve.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/doc.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/edwards.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/params.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/private.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/private_test.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/public.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/ukm.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/utils.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko2001.go (93%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko2001_test.go (100%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko2012.go (93%) rename {src/cypherpunks.ru/gogost/gost3410 => gost3410}/vko2012_test.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/esptree.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/esptree_test.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/hash.go (95%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/hkdf_test.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/kdf.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/kdf_test.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/tlstree.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012256 => gost34112012256}/tlstree_test.go (100%) rename {src/cypherpunks.ru/gogost/gost34112012512 => gost34112012512}/hash.go (95%) rename {src/cypherpunks.ru/gogost/gost341194 => gost341194}/hash.go (99%) rename {src/cypherpunks.ru/gogost/gost341194 => gost341194}/hash_test.go (99%) rename {src/cypherpunks.ru/gogost/gost341194 => gost341194}/pbkdf2_test.go (98%) rename {src/cypherpunks.ru/gogost/gost3412128 => gost3412128}/cipher.go (100%) rename {src/cypherpunks.ru/gogost/gost3412128 => gost3412128}/cipher_test.go (100%) rename {src/cypherpunks.ru/gogost/gost341264 => gost341264}/cipher.go (98%) rename {src/cypherpunks.ru/gogost/gost341264 => gost341264}/cipher_test.go (100%) rename {src/cypherpunks.ru/gogost/gost3413 => gost3413}/padding.go (100%) rename {src/cypherpunks.ru/gogost/internal => internal}/gost34112012/hash.go (100%) rename {src/cypherpunks.ru/gogost/internal => internal}/gost34112012/hash_test.go (100%) rename {src/cypherpunks.ru/gogost/internal => internal}/gost34112012/hmac_test.go (100%) rename {src/cypherpunks.ru/gogost/mgm => mgm}/mode.go (100%) rename {src/cypherpunks.ru/gogost/mgm => mgm}/mode_test.go (98%) rename {src/cypherpunks.ru/gogost/mgm => mgm}/mul.go (100%) rename {src/cypherpunks.ru/gogost/mgm => mgm}/mul_test.go (94%) rename {src/cypherpunks.ru/gogost/mgm => mgm}/slice.go (100%) delete mode 100644 src/cypherpunks.ru/gogost/go.mod diff --git a/src/cypherpunks.ru/gogost/cmd/streebog256/main.go b/cmd/streebog256/main.go similarity index 93% rename from src/cypherpunks.ru/gogost/cmd/streebog256/main.go rename to cmd/streebog256/main.go index 55d1914..9722168 100644 --- a/src/cypherpunks.ru/gogost/cmd/streebog256/main.go +++ b/cmd/streebog256/main.go @@ -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 ( diff --git a/src/cypherpunks.ru/gogost/cmd/streebog512/main.go b/cmd/streebog512/main.go similarity index 93% rename from src/cypherpunks.ru/gogost/cmd/streebog512/main.go rename to cmd/streebog512/main.go index 24afe90..41d0c6a 100644 --- a/src/cypherpunks.ru/gogost/cmd/streebog512/main.go +++ b/cmd/streebog512/main.go @@ -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 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 diff --git a/src/cypherpunks.ru/gogost/go.sum b/go.sum similarity index 76% rename from src/cypherpunks.ru/gogost/go.sum rename to go.sum index b75b87f..a95cc32 100644 --- a/src/cypherpunks.ru/gogost/go.sum +++ 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= diff --git a/src/cypherpunks.ru/gogost/gogost.go b/gogost.go similarity index 100% rename from src/cypherpunks.ru/gogost/gogost.go rename to gogost.go diff --git a/src/cypherpunks.ru/gogost/gost28147/cbc_test.go b/gost28147/cbc_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/cbc_test.go rename to gost28147/cbc_test.go diff --git a/src/cypherpunks.ru/gogost/gost28147/cfb.go b/gost28147/cfb.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/cfb.go rename to gost28147/cfb.go diff --git a/src/cypherpunks.ru/gogost/gost28147/cfb_test.go b/gost28147/cfb_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/cfb_test.go rename to gost28147/cfb_test.go diff --git a/src/cypherpunks.ru/gogost/gost28147/cipher.go b/gost28147/cipher.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/cipher.go rename to gost28147/cipher.go diff --git a/src/cypherpunks.ru/gogost/gost28147/cipher_test.go b/gost28147/cipher_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/cipher_test.go rename to gost28147/cipher_test.go diff --git a/src/cypherpunks.ru/gogost/gost28147/ctr.go b/gost28147/ctr.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/ctr.go rename to gost28147/ctr.go diff --git a/src/cypherpunks.ru/gogost/gost28147/ctr_test.go b/gost28147/ctr_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/ctr_test.go rename to gost28147/ctr_test.go diff --git a/src/cypherpunks.ru/gogost/gost28147/ecb.go b/gost28147/ecb.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/ecb.go rename to gost28147/ecb.go diff --git a/src/cypherpunks.ru/gogost/gost28147/ecb_test.go b/gost28147/ecb_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/ecb_test.go rename to gost28147/ecb_test.go diff --git a/src/cypherpunks.ru/gogost/gost28147/mac.go b/gost28147/mac.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/mac.go rename to gost28147/mac.go diff --git a/src/cypherpunks.ru/gogost/gost28147/mac_test.go b/gost28147/mac_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/mac_test.go rename to gost28147/mac_test.go diff --git a/src/cypherpunks.ru/gogost/gost28147/sbox.go b/gost28147/sbox.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost28147/sbox.go rename to gost28147/sbox.go diff --git a/src/cypherpunks.ru/gogost/gost3410/2001_test.go b/gost3410/2001_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/2001_test.go rename to gost3410/2001_test.go diff --git a/src/cypherpunks.ru/gogost/gost3410/2012_test.go b/gost3410/2012_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/2012_test.go rename to gost3410/2012_test.go diff --git a/src/cypherpunks.ru/gogost/gost3410/curve.go b/gost3410/curve.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/curve.go rename to gost3410/curve.go diff --git a/src/cypherpunks.ru/gogost/gost3410/doc.go b/gost3410/doc.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/doc.go rename to gost3410/doc.go diff --git a/src/cypherpunks.ru/gogost/gost3410/edwards.go b/gost3410/edwards.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/edwards.go rename to gost3410/edwards.go diff --git a/src/cypherpunks.ru/gogost/gost3410/params.go b/gost3410/params.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/params.go rename to gost3410/params.go diff --git a/src/cypherpunks.ru/gogost/gost3410/private.go b/gost3410/private.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/private.go rename to gost3410/private.go diff --git a/src/cypherpunks.ru/gogost/gost3410/private_test.go b/gost3410/private_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/private_test.go rename to gost3410/private_test.go diff --git a/src/cypherpunks.ru/gogost/gost3410/public.go b/gost3410/public.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/public.go rename to gost3410/public.go diff --git a/src/cypherpunks.ru/gogost/gost3410/ukm.go b/gost3410/ukm.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/ukm.go rename to gost3410/ukm.go diff --git a/src/cypherpunks.ru/gogost/gost3410/utils.go b/gost3410/utils.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/utils.go rename to gost3410/utils.go diff --git a/src/cypherpunks.ru/gogost/gost3410/vko.go b/gost3410/vko.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/vko.go rename to gost3410/vko.go diff --git a/src/cypherpunks.ru/gogost/gost3410/vko2001.go b/gost3410/vko2001.go similarity index 93% rename from src/cypherpunks.ru/gogost/gost3410/vko2001.go rename to gost3410/vko2001.go index 18fff3e..ed49d8f 100644 --- a/src/cypherpunks.ru/gogost/gost3410/vko2001.go +++ b/gost3410/vko2001.go @@ -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. diff --git a/src/cypherpunks.ru/gogost/gost3410/vko2001_test.go b/gost3410/vko2001_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/vko2001_test.go rename to gost3410/vko2001_test.go diff --git a/src/cypherpunks.ru/gogost/gost3410/vko2012.go b/gost3410/vko2012.go similarity index 93% rename from src/cypherpunks.ru/gogost/gost3410/vko2012.go rename to gost3410/vko2012.go index 836d3a4..7a30b4e 100644 --- a/src/cypherpunks.ru/gogost/gost3410/vko2012.go +++ b/gost3410/vko2012.go @@ -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. diff --git a/src/cypherpunks.ru/gogost/gost3410/vko2012_test.go b/gost3410/vko2012_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3410/vko2012_test.go rename to gost3410/vko2012_test.go diff --git a/src/cypherpunks.ru/gogost/gost34112012256/esptree.go b/gost34112012256/esptree.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost34112012256/esptree.go rename to gost34112012256/esptree.go diff --git a/src/cypherpunks.ru/gogost/gost34112012256/esptree_test.go b/gost34112012256/esptree_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost34112012256/esptree_test.go rename to gost34112012256/esptree_test.go diff --git a/src/cypherpunks.ru/gogost/gost34112012256/hash.go b/gost34112012256/hash.go similarity index 95% rename from src/cypherpunks.ru/gogost/gost34112012256/hash.go rename to gost34112012256/hash.go index 30e308b..f1f7e9b 100644 --- a/src/cypherpunks.ru/gogost/gost34112012256/hash.go +++ b/gost34112012256/hash.go @@ -20,7 +20,7 @@ package gost34112012256 import ( "hash" - "cypherpunks.ru/gogost/internal/gost34112012" + "go.cypherpunks.ru/gogost/v4/internal/gost34112012" ) const ( diff --git a/src/cypherpunks.ru/gogost/gost34112012256/hkdf_test.go b/gost34112012256/hkdf_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost34112012256/hkdf_test.go rename to gost34112012256/hkdf_test.go diff --git a/src/cypherpunks.ru/gogost/gost34112012256/kdf.go b/gost34112012256/kdf.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost34112012256/kdf.go rename to gost34112012256/kdf.go diff --git a/src/cypherpunks.ru/gogost/gost34112012256/kdf_test.go b/gost34112012256/kdf_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost34112012256/kdf_test.go rename to gost34112012256/kdf_test.go diff --git a/src/cypherpunks.ru/gogost/gost34112012256/tlstree.go b/gost34112012256/tlstree.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost34112012256/tlstree.go rename to gost34112012256/tlstree.go diff --git a/src/cypherpunks.ru/gogost/gost34112012256/tlstree_test.go b/gost34112012256/tlstree_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost34112012256/tlstree_test.go rename to gost34112012256/tlstree_test.go diff --git a/src/cypherpunks.ru/gogost/gost34112012512/hash.go b/gost34112012512/hash.go similarity index 95% rename from src/cypherpunks.ru/gogost/gost34112012512/hash.go rename to gost34112012512/hash.go index bdfd538..06e1a86 100644 --- a/src/cypherpunks.ru/gogost/gost34112012512/hash.go +++ b/gost34112012512/hash.go @@ -20,7 +20,7 @@ package gost34112012512 import ( "hash" - "cypherpunks.ru/gogost/internal/gost34112012" + "go.cypherpunks.ru/gogost/v4/internal/gost34112012" ) const ( diff --git a/src/cypherpunks.ru/gogost/gost341194/hash.go b/gost341194/hash.go similarity index 99% rename from src/cypherpunks.ru/gogost/gost341194/hash.go rename to gost341194/hash.go index 61d506c..e386ddd 100644 --- a/src/cypherpunks.ru/gogost/gost341194/hash.go +++ b/gost341194/hash.go @@ -21,7 +21,7 @@ import ( "encoding/binary" "math/big" - "cypherpunks.ru/gogost/gost28147" + "go.cypherpunks.ru/gogost/v4/gost28147" ) const ( diff --git a/src/cypherpunks.ru/gogost/gost341194/hash_test.go b/gost341194/hash_test.go similarity index 99% rename from src/cypherpunks.ru/gogost/gost341194/hash_test.go rename to gost341194/hash_test.go index bcd86c5..de5d988 100644 --- a/src/cypherpunks.ru/gogost/gost341194/hash_test.go +++ b/gost341194/hash_test.go @@ -22,7 +22,7 @@ import ( "testing" "testing/quick" - "cypherpunks.ru/gogost/gost28147" + "go.cypherpunks.ru/gogost/v4/gost28147" ) func TestHashInterface(t *testing.T) { diff --git a/src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go b/gost341194/pbkdf2_test.go similarity index 98% rename from src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go rename to gost341194/pbkdf2_test.go index 86ecea8..20c5c13 100644 --- a/src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go +++ b/gost341194/pbkdf2_test.go @@ -20,7 +20,7 @@ import ( "hash" "testing" - "cypherpunks.ru/gogost/gost28147" + "go.cypherpunks.ru/gogost/v4/gost28147" "golang.org/x/crypto/pbkdf2" ) diff --git a/src/cypherpunks.ru/gogost/gost3412128/cipher.go b/gost3412128/cipher.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3412128/cipher.go rename to gost3412128/cipher.go diff --git a/src/cypherpunks.ru/gogost/gost3412128/cipher_test.go b/gost3412128/cipher_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3412128/cipher_test.go rename to gost3412128/cipher_test.go diff --git a/src/cypherpunks.ru/gogost/gost341264/cipher.go b/gost341264/cipher.go similarity index 98% rename from src/cypherpunks.ru/gogost/gost341264/cipher.go rename to gost341264/cipher.go index 53a2792..f308080 100644 --- a/src/cypherpunks.ru/gogost/gost341264/cipher.go +++ b/gost341264/cipher.go @@ -17,7 +17,7 @@ package gost341264 import ( - "cypherpunks.ru/gogost/gost28147" + "go.cypherpunks.ru/gogost/v4/gost28147" ) const ( diff --git a/src/cypherpunks.ru/gogost/gost341264/cipher_test.go b/gost341264/cipher_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost341264/cipher_test.go rename to gost341264/cipher_test.go diff --git a/src/cypherpunks.ru/gogost/gost3413/padding.go b/gost3413/padding.go similarity index 100% rename from src/cypherpunks.ru/gogost/gost3413/padding.go rename to gost3413/padding.go diff --git a/src/cypherpunks.ru/gogost/internal/gost34112012/hash.go b/internal/gost34112012/hash.go similarity index 100% rename from src/cypherpunks.ru/gogost/internal/gost34112012/hash.go rename to internal/gost34112012/hash.go diff --git a/src/cypherpunks.ru/gogost/internal/gost34112012/hash_test.go b/internal/gost34112012/hash_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/internal/gost34112012/hash_test.go rename to internal/gost34112012/hash_test.go diff --git a/src/cypherpunks.ru/gogost/internal/gost34112012/hmac_test.go b/internal/gost34112012/hmac_test.go similarity index 100% rename from src/cypherpunks.ru/gogost/internal/gost34112012/hmac_test.go rename to internal/gost34112012/hmac_test.go diff --git a/src/cypherpunks.ru/gogost/mgm/mode.go b/mgm/mode.go similarity index 100% rename from src/cypherpunks.ru/gogost/mgm/mode.go rename to mgm/mode.go diff --git a/src/cypherpunks.ru/gogost/mgm/mode_test.go b/mgm/mode_test.go similarity index 98% rename from src/cypherpunks.ru/gogost/mgm/mode_test.go rename to mgm/mode_test.go index aedd59b..38d6ee9 100644 --- a/src/cypherpunks.ru/gogost/mgm/mode_test.go +++ b/mgm/mode_test.go @@ -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) { diff --git a/src/cypherpunks.ru/gogost/mgm/mul.go b/mgm/mul.go similarity index 100% rename from src/cypherpunks.ru/gogost/mgm/mul.go rename to mgm/mul.go diff --git a/src/cypherpunks.ru/gogost/mgm/mul_test.go b/mgm/mul_test.go similarity index 94% rename from src/cypherpunks.ru/gogost/mgm/mul_test.go rename to mgm/mul_test.go index 7420859..9a08946 100644 --- a/src/cypherpunks.ru/gogost/mgm/mul_test.go +++ b/mgm/mul_test.go @@ -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/mgm/slice.go b/mgm/slice.go similarity index 100% rename from src/cypherpunks.ru/gogost/mgm/slice.go rename to mgm/slice.go diff --git a/src/cypherpunks.ru/gogost/go.mod b/src/cypherpunks.ru/gogost/go.mod deleted file mode 100644 index 2876534..0000000 --- a/src/cypherpunks.ru/gogost/go.mod +++ /dev/null @@ -1,5 +0,0 @@ -module cypherpunks.ru/gogost - -go 1.12 - -require golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 -- 2.44.0