From ce4df564815debd53ec84d7629e7c060491021b6 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 23 Jul 2024 15:16:34 +0300 Subject: [PATCH] Change namespace because of domain expiration --- README | 4 ++-- cmd/cer-selfsigned-example/main.go | 4 ++-- cmd/streebog256/main.go | 4 ++-- cmd/streebog512/main.go | 4 ++-- go.mod | 2 +- gogost.go | 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 | 18 +++++++++--------- mgm/mode_test.go | 4 ++-- mgm/mul128_test.go | 2 +- mgm/mul64_test.go | 2 +- news.texi | 7 +++++++ prfplus/gost.go | 4 ++-- www.texi | 4 ++-- 21 files changed, 44 insertions(+), 37 deletions(-) diff --git a/README b/README index 663371e..227f3a4 100644 --- a/README +++ b/README @@ -38,8 +38,8 @@ Example 34.10-2012-256 keypair generation, signing and verifying: import ( "crypto/rand" "io" - "go.cypherpunks.ru/gogost/v5/gost3410" - "go.cypherpunks.ru/gogost/v5/gost34112012256" + "go.cypherpunks.su/gogost/v6/gost3410" + "go.cypherpunks.su/gogost/v6/gost34112012256" ) func main() { data := []byte("data to be signed") diff --git a/cmd/cer-selfsigned-example/main.go b/cmd/cer-selfsigned-example/main.go index 886bbf8..6ff1f52 100644 --- a/cmd/cer-selfsigned-example/main.go +++ b/cmd/cer-selfsigned-example/main.go @@ -28,8 +28,8 @@ import ( "os" "time" - "crypto/go.cypherpunks.ru/gogost/v5/gost3410" - "crypto/go.cypherpunks.ru/gogost/v5/gost34112012256" + "crypto/go.cypherpunks.su/gogost/v6/gost3410" + "crypto/go.cypherpunks.su/gogost/v6/gost34112012256" ) const ( diff --git a/cmd/streebog256/main.go b/cmd/streebog256/main.go index 0489730..e20238f 100644 --- a/cmd/streebog256/main.go +++ b/cmd/streebog256/main.go @@ -23,8 +23,8 @@ import ( "io" "os" - "go.cypherpunks.ru/gogost/v5" - "go.cypherpunks.ru/gogost/v5/gost34112012256" + "go.cypherpunks.su/gogost/v6" + "go.cypherpunks.su/gogost/v6/gost34112012256" ) var ( diff --git a/cmd/streebog512/main.go b/cmd/streebog512/main.go index 5f7c435..fdb81ec 100644 --- a/cmd/streebog512/main.go +++ b/cmd/streebog512/main.go @@ -23,8 +23,8 @@ import ( "io" "os" - "go.cypherpunks.ru/gogost/v5" - "go.cypherpunks.ru/gogost/v5/gost34112012512" + "go.cypherpunks.su/gogost/v6" + "go.cypherpunks.su/gogost/v6/gost34112012512" ) var ( diff --git a/go.mod b/go.mod index 2b80ff5..50f798e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.cypherpunks.ru/gogost/v5 +module go.cypherpunks.su/gogost/v6 go 1.21 diff --git a/gogost.go b/gogost.go index 5362d7a..7f42dc2 100644 --- a/gogost.go +++ b/gogost.go @@ -1,4 +1,4 @@ // Pure Go GOST cryptographic functions library. package gogost -const Version = "5.15.0" +const Version = "6.0.0" diff --git a/gost3410/vko2001.go b/gost3410/vko2001.go index 0bb8e3d..99ee167 100644 --- a/gost3410/vko2001.go +++ b/gost3410/vko2001.go @@ -20,8 +20,8 @@ import ( "fmt" "math/big" - "go.cypherpunks.ru/gogost/v5/gost28147" - "go.cypherpunks.ru/gogost/v5/gost341194" + "go.cypherpunks.su/gogost/v6/gost28147" + "go.cypherpunks.su/gogost/v6/gost341194" ) // RFC 4357 VKO GOST R 34.10-2001 key agreement function. diff --git a/gost3410/vko2012.go b/gost3410/vko2012.go index bb1a9ed..61baee4 100644 --- a/gost3410/vko2012.go +++ b/gost3410/vko2012.go @@ -19,8 +19,8 @@ import ( "fmt" "math/big" - "go.cypherpunks.ru/gogost/v5/gost34112012256" - "go.cypherpunks.ru/gogost/v5/gost34112012512" + "go.cypherpunks.su/gogost/v6/gost34112012256" + "go.cypherpunks.su/gogost/v6/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 caf43ba..51eb750 100644 --- a/gost34112012256/hash.go +++ b/gost34112012256/hash.go @@ -20,7 +20,7 @@ package gost34112012256 import ( "hash" - "go.cypherpunks.ru/gogost/v5/internal/gost34112012" + "go.cypherpunks.su/gogost/v6/internal/gost34112012" ) const ( diff --git a/gost34112012512/hash.go b/gost34112012512/hash.go index 9ee032e..1de2834 100644 --- a/gost34112012512/hash.go +++ b/gost34112012512/hash.go @@ -20,7 +20,7 @@ package gost34112012512 import ( "hash" - "go.cypherpunks.ru/gogost/v5/internal/gost34112012" + "go.cypherpunks.su/gogost/v6/internal/gost34112012" ) const ( diff --git a/gost341194/hash.go b/gost341194/hash.go index d12db62..53eb49c 100644 --- a/gost341194/hash.go +++ b/gost341194/hash.go @@ -22,7 +22,7 @@ import ( "encoding/binary" "math/big" - "go.cypherpunks.ru/gogost/v5/gost28147" + "go.cypherpunks.su/gogost/v6/gost28147" ) const ( diff --git a/gost341194/hash_test.go b/gost341194/hash_test.go index 9a935c8..4ad8f1d 100644 --- a/gost341194/hash_test.go +++ b/gost341194/hash_test.go @@ -22,7 +22,7 @@ import ( "testing" "testing/quick" - "go.cypherpunks.ru/gogost/v5/gost28147" + "go.cypherpunks.su/gogost/v6/gost28147" ) func TestHashInterface(t *testing.T) { diff --git a/gost341194/pbkdf2_test.go b/gost341194/pbkdf2_test.go index 7d481b1..82f7d9d 100644 --- a/gost341194/pbkdf2_test.go +++ b/gost341194/pbkdf2_test.go @@ -20,7 +20,7 @@ import ( "hash" "testing" - "go.cypherpunks.ru/gogost/v5/gost28147" + "go.cypherpunks.su/gogost/v6/gost28147" "golang.org/x/crypto/pbkdf2" ) diff --git a/gost341264/cipher.go b/gost341264/cipher.go index 4d4d7a9..915a942 100644 --- a/gost341264/cipher.go +++ b/gost341264/cipher.go @@ -17,7 +17,7 @@ package gost341264 import ( - "go.cypherpunks.ru/gogost/v5/gost28147" + "go.cypherpunks.su/gogost/v6/gost28147" ) const ( diff --git a/install.texi b/install.texi index 332c805..559fc46 100644 --- a/install.texi +++ b/install.texi @@ -21,8 +21,8 @@ And then you can include its source code in your project for example like this: @example -$ mkdir -p myproj/vendor/go.cypherpunks.ru/gogost -$ mv gogost-@value{VERSION} myproj/vendor/go.cypherpunks.ru/gogost/v5 +$ mkdir -p myproj/vendor/go.cypherpunks.su/gogost +$ mv gogost-@value{VERSION} myproj/vendor/go.cypherpunks.su/gogost/v6 $ cd myproj $ cat >main.go < /path/to/gogost-@value{VERSION} +require go.cypherpunks.su/gogost/v6 v@value{VERSION} +replace go.cypherpunks.su/gogost/v6 => /path/to/gogost-@value{VERSION} @end example @end itemize diff --git a/mgm/mode_test.go b/mgm/mode_test.go index 9df177b..3cef6ec 100644 --- a/mgm/mode_test.go +++ b/mgm/mode_test.go @@ -23,8 +23,8 @@ import ( "testing" "testing/quick" - "go.cypherpunks.ru/gogost/v5/gost3412128" - "go.cypherpunks.ru/gogost/v5/gost341264" + "go.cypherpunks.su/gogost/v6/gost3412128" + "go.cypherpunks.su/gogost/v6/gost341264" ) func TestVector(t *testing.T) { diff --git a/mgm/mul128_test.go b/mgm/mul128_test.go index 395f31a..9b4ee12 100644 --- a/mgm/mul128_test.go +++ b/mgm/mul128_test.go @@ -19,7 +19,7 @@ import ( "crypto/rand" "testing" - "go.cypherpunks.ru/gogost/v5/gost3412128" + "go.cypherpunks.su/gogost/v6/gost3412128" ) func BenchmarkMul128(b *testing.B) { diff --git a/mgm/mul64_test.go b/mgm/mul64_test.go index ce81900..12d62bf 100644 --- a/mgm/mul64_test.go +++ b/mgm/mul64_test.go @@ -19,7 +19,7 @@ import ( "crypto/rand" "testing" - "go.cypherpunks.ru/gogost/v5/gost341264" + "go.cypherpunks.su/gogost/v6/gost341264" ) func BenchmarkMul64(b *testing.B) { diff --git a/news.texi b/news.texi index 018fe7b..d59e367 100644 --- a/news.texi +++ b/news.texi @@ -3,6 +3,13 @@ @table @strong +@anchor{Release 6.0.0} +@item 6.0.0 +Changed namespace because of domain expiration: +@verbatim +go.cypherpunks.ru/gogost/v5 -> go.cypherpunks.su/gogost/v6 +@end verbatim + @anchor{Release 5.15.0} @item 5.15.0 Optimised Streebog implementation with precalculated tables. diff --git a/prfplus/gost.go b/prfplus/gost.go index 5755586..8d2a917 100644 --- a/prfplus/gost.go +++ b/prfplus/gost.go @@ -20,8 +20,8 @@ import ( "crypto/hmac" "hash" - "go.cypherpunks.ru/gogost/v5/gost34112012256" - "go.cypherpunks.ru/gogost/v5/gost34112012512" + "go.cypherpunks.su/gogost/v6/gost34112012256" + "go.cypherpunks.su/gogost/v6/gost34112012512" ) type PRFIPsecPRFPlusGOSTR34112012 struct{ h hash.Hash } diff --git a/www.texi b/www.texi index e004751..c73f4b0 100644 --- a/www.texi +++ b/www.texi @@ -66,8 +66,8 @@ Example 34.10-2012-256 keypair generation, signing and verifying: import ( "crypto/rand" "io" - "go.cypherpunks.ru/gogost/v5/gost3410" - "go.cypherpunks.ru/gogost/v5/gost34112012256" + "go.cypherpunks.su/gogost/v6/gost3410" + "go.cypherpunks.su/gogost/v6/gost34112012256" ) func main() { data := []byte("data to be signed") -- 2.48.1