From e38f7b828c16660814ac5b55b53644b3822e067b Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 4 Sep 2020 22:35:40 +0300 Subject: [PATCH] Update namespace major version --- README | 4 ++-- cmd/streebog256/main.go | 4 ++-- cmd/streebog512/main.go | 4 ++-- go.mod | 2 +- gost3410/vko2001.go | 4 ++-- gost3410/vko2012.go | 4 ++-- gost34112012256/hash.go | 2 +- gost34112012512/hash.go | 2 +- gost341194/hash.go | 2 +- gost341194/hash_test.go | 2 +- gost341194/pbkdf2_test.go | 2 +- gost341264/cipher.go | 2 +- install.texi | 6 +++--- mgm/mode_test.go | 4 ++-- mgm/mul_test.go | 4 ++-- prfplus/gost.go | 4 ++-- www.texi | 4 ++-- 17 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README b/README index 3767c50..0f5fa1c 100644 --- a/README +++ b/README @@ -37,8 +37,8 @@ Example 34.10-2012-256 keypair generation, signing and verifying: import ( "crypto/rand" "io" - "go.cypherpunks.ru/gogost/v4/gost3410" - "go.cypherpunks.ru/gogost/v4/gost34112012256" + "go.cypherpunks.ru/gogost/v5/gost3410" + "go.cypherpunks.ru/gogost/v5/gost34112012256" ) func main() { data := []byte("data to be signed") diff --git a/cmd/streebog256/main.go b/cmd/streebog256/main.go index 9db7c47..b45678a 100644 --- a/cmd/streebog256/main.go +++ b/cmd/streebog256/main.go @@ -23,8 +23,8 @@ import ( "io" "os" - "go.cypherpunks.ru/gogost/v4" - "go.cypherpunks.ru/gogost/v4/gost34112012256" + "go.cypherpunks.ru/gogost/v5" + "go.cypherpunks.ru/gogost/v5/gost34112012256" ) var ( diff --git a/cmd/streebog512/main.go b/cmd/streebog512/main.go index 052592f..5c51e6e 100644 --- a/cmd/streebog512/main.go +++ b/cmd/streebog512/main.go @@ -23,8 +23,8 @@ import ( "io" "os" - "go.cypherpunks.ru/gogost/v4" - "go.cypherpunks.ru/gogost/v4/gost34112012512" + "go.cypherpunks.ru/gogost/v5" + "go.cypherpunks.ru/gogost/v5/gost34112012512" ) var ( diff --git a/go.mod b/go.mod index 793c358..44aa4be 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.cypherpunks.ru/gogost/v4 +module go.cypherpunks.ru/gogost/v5 go 1.12 diff --git a/gost3410/vko2001.go b/gost3410/vko2001.go index 8559ed2..7ba7ba4 100644 --- a/gost3410/vko2001.go +++ b/gost3410/vko2001.go @@ -19,8 +19,8 @@ import ( "errors" "math/big" - "go.cypherpunks.ru/gogost/v4/gost28147" - "go.cypherpunks.ru/gogost/v4/gost341194" + "go.cypherpunks.ru/gogost/v5/gost28147" + "go.cypherpunks.ru/gogost/v5/gost341194" ) // RFC 4357 VKO GOST R 34.10-2001 key agreement function. diff --git a/gost3410/vko2012.go b/gost3410/vko2012.go index 78b9af5..76fa0a4 100644 --- a/gost3410/vko2012.go +++ b/gost3410/vko2012.go @@ -18,8 +18,8 @@ package gost3410 import ( "math/big" - "go.cypherpunks.ru/gogost/v4/gost34112012256" - "go.cypherpunks.ru/gogost/v4/gost34112012512" + "go.cypherpunks.ru/gogost/v5/gost34112012256" + "go.cypherpunks.ru/gogost/v5/gost34112012512" ) // RFC 7836 VKO GOST R 34.10-2012 256-bit key agreement function. diff --git a/gost34112012256/hash.go b/gost34112012256/hash.go index 7f68188..d98b867 100644 --- a/gost34112012256/hash.go +++ b/gost34112012256/hash.go @@ -20,7 +20,7 @@ package gost34112012256 import ( "hash" - "go.cypherpunks.ru/gogost/v4/internal/gost34112012" + "go.cypherpunks.ru/gogost/v5/internal/gost34112012" ) const ( diff --git a/gost34112012512/hash.go b/gost34112012512/hash.go index ec094a9..036f371 100644 --- a/gost34112012512/hash.go +++ b/gost34112012512/hash.go @@ -20,7 +20,7 @@ package gost34112012512 import ( "hash" - "go.cypherpunks.ru/gogost/v4/internal/gost34112012" + "go.cypherpunks.ru/gogost/v5/internal/gost34112012" ) const ( diff --git a/gost341194/hash.go b/gost341194/hash.go index 2848493..e14a68d 100644 --- a/gost341194/hash.go +++ b/gost341194/hash.go @@ -21,7 +21,7 @@ import ( "encoding/binary" "math/big" - "go.cypherpunks.ru/gogost/v4/gost28147" + "go.cypherpunks.ru/gogost/v5/gost28147" ) const ( diff --git a/gost341194/hash_test.go b/gost341194/hash_test.go index be70a79..f100793 100644 --- a/gost341194/hash_test.go +++ b/gost341194/hash_test.go @@ -22,7 +22,7 @@ import ( "testing" "testing/quick" - "go.cypherpunks.ru/gogost/v4/gost28147" + "go.cypherpunks.ru/gogost/v5/gost28147" ) func TestHashInterface(t *testing.T) { diff --git a/gost341194/pbkdf2_test.go b/gost341194/pbkdf2_test.go index 2f02d66..2e2d578 100644 --- a/gost341194/pbkdf2_test.go +++ b/gost341194/pbkdf2_test.go @@ -20,7 +20,7 @@ import ( "hash" "testing" - "go.cypherpunks.ru/gogost/v4/gost28147" + "go.cypherpunks.ru/gogost/v5/gost28147" "golang.org/x/crypto/pbkdf2" ) diff --git a/gost341264/cipher.go b/gost341264/cipher.go index d9ab457..bdcc8d2 100644 --- a/gost341264/cipher.go +++ b/gost341264/cipher.go @@ -17,7 +17,7 @@ package gost341264 import ( - "go.cypherpunks.ru/gogost/v4/gost28147" + "go.cypherpunks.ru/gogost/v5/gost28147" ) const ( diff --git a/install.texi b/install.texi index 729510d..e756897 100644 --- a/install.texi +++ b/install.texi @@ -40,7 +40,7 @@ import ( "encoding/hex" "fmt" - "go.cypherpunks.ru/gogost/v4/gost34112012256" + "go.cypherpunks.ru/gogost/v5/gost34112012256" ) func main() @{ @@ -99,8 +99,8 @@ variable. Also you can use @code{replace} feature inside your @file{go.mod}, like: @example -require go.cypherpunks.ru/gogost/v4 v@value{VERSION} -replace go.cypherpunks.ru/gogost/v4 => /home/stargrave/gogost-@value{VERSION}/src/go.cypherpunks.ru/gogost/v4 +require go.cypherpunks.ru/gogost/v5 v@value{VERSION} +replace go.cypherpunks.ru/gogost/v5 => /home/stargrave/gogost-@value{VERSION}/src/go.cypherpunks.ru/gogost/v5 @end example You can obtain development source code with diff --git a/mgm/mode_test.go b/mgm/mode_test.go index 6eaf9d8..d29120a 100644 --- a/mgm/mode_test.go +++ b/mgm/mode_test.go @@ -22,8 +22,8 @@ import ( "testing" "testing/quick" - "go.cypherpunks.ru/gogost/v4/gost3412128" - "go.cypherpunks.ru/gogost/v4/gost341264" + "go.cypherpunks.ru/gogost/v5/gost3412128" + "go.cypherpunks.ru/gogost/v5/gost341264" ) func TestVector(t *testing.T) { diff --git a/mgm/mul_test.go b/mgm/mul_test.go index 1819cd7..af6e396 100644 --- a/mgm/mul_test.go +++ b/mgm/mul_test.go @@ -20,8 +20,8 @@ import ( "math/big" "testing" - "go.cypherpunks.ru/gogost/v4/gost3412128" - "go.cypherpunks.ru/gogost/v4/gost341264" + "go.cypherpunks.ru/gogost/v5/gost3412128" + "go.cypherpunks.ru/gogost/v5/gost341264" ) func BenchmarkMul64(b *testing.B) { diff --git a/prfplus/gost.go b/prfplus/gost.go index 4b1aed6..f688e38 100644 --- a/prfplus/gost.go +++ b/prfplus/gost.go @@ -20,8 +20,8 @@ import ( "crypto/hmac" "hash" - "go.cypherpunks.ru/gogost/v4/gost34112012256" - "go.cypherpunks.ru/gogost/v4/gost34112012512" + "go.cypherpunks.ru/gogost/v5/gost34112012256" + "go.cypherpunks.ru/gogost/v5/gost34112012512" ) type PRFIPsecPRFPlusGOSTR34112012 struct{ h hash.Hash } diff --git a/www.texi b/www.texi index 83de587..046d6dc 100644 --- a/www.texi +++ b/www.texi @@ -65,8 +65,8 @@ Example 34.10-2012-256 keypair generation, signing and verifying: import ( "crypto/rand" "io" - "go.cypherpunks.ru/gogost/v4/gost3410" - "go.cypherpunks.ru/gogost/v4/gost34112012256" + "go.cypherpunks.ru/gogost/v5/gost3410" + "go.cypherpunks.ru/gogost/v5/gost34112012256" ) func main() { data := []byte("data to be signed") -- 2.44.0