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 ++-- diff --git a/README b/README index 8d9f50e9ed7caef96e557e42f9587cc8866ae2231c651ba946d40544cc47dedd..91a5cec6bd392f2cea273247f966354da0f5e5925a8a073addaa9bec577f2155 100644 --- a/README +++ b/README @@ -38,8 +38,8 @@ 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 c07ee202dfaa3cbad6a844018c98f02bef3cf9c539be742e36ebfbf8befe04b7..2d165c9eb24a38ea5078a1e9d09e5511e2b4d98c42624cf15a06ef6f094d7ec5 100644 --- a/cmd/cer-selfsigned-example/main.go +++ b/cmd/cer-selfsigned-example/main.go @@ -28,8 +28,8 @@ "math/big" "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 45c47e2e7f7dad408b09ec80d53078df63c487dfa30a828fe5a1b2840179ba7c..408919e691d577120871be7e226d1a0c4aee5c35e5a979d015bae4c2b17391b8 100644 --- a/cmd/streebog256/main.go +++ b/cmd/streebog256/main.go @@ -23,8 +23,8 @@ "fmt" "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 d575946b41005c862d8b2c10271d4a987a6f2d4745520f96b69ba9ef1485c361..47baf0a5114ed08bdd6e528d2101be992db46e9576080192133a515cfeda83de 100644 --- a/cmd/streebog512/main.go +++ b/cmd/streebog512/main.go @@ -23,8 +23,8 @@ "fmt" "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 f892ca64f132883bbf1c2c4534f3a3835907956e831eb3400ff99e59c909b811..e2442d502b0586956a8cc9eca1d058061e00ad7138f3ee4effc954060cd41d05 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 446385616243507367f9a169bf6864dbc4b745256bcae6635dbfa26a63a18c2e..dc42d4c50d1bfe4cfde03a365d731922d9d382029d750ed9d905b6575056a120 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 6b56e69e0810bc51780ac16697cef6ad4f339722a4dd661c7192ace028df4d33..08a999fd8d082f57bef0ac04252573680a5e9997f83633b677be7fe7d8110b4f 100644 --- a/gost3410/vko2001.go +++ b/gost3410/vko2001.go @@ -20,8 +20,8 @@ "errors" "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 f4cc51e35b9f53a13881d606ea09cc04f2dc641b2575ed99a8eae9bbe9ba7681..47f4916e8f6098716dbbab447c76bab9b163f6fa3b2d38335065d5f5d5ce320d 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 9778b9dbe0abaa986e0bfb40662277a38e7e8d100a0b6aa34ad349b592d96a8c..7607a52ef7816fb1f61079998a84c1fd7204a35550a255ae6824f7a6c5e30b5c 100644 --- a/gost34112012256/hash.go +++ b/gost34112012256/hash.go @@ -20,7 +20,7 @@ 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 69a5ec99e10f116c7738fd7b0ad71f70d743b06d765df2cd929aae26b1b851e4..deb5e64e718d15989659b8813e51148f7a685eab7c86e44358c649a0f7fb5cad 100644 --- a/gost34112012512/hash.go +++ b/gost34112012512/hash.go @@ -20,7 +20,7 @@ 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 cd82b0f15ca52e0cf16bbc53cf425a6abcce4e6b107a77f33c9bb4c301d8f37f..200f73d83bcd7d879698c6605b8cb16bef0f550e2dcc12cab7a4fed00fee915b 100644 --- a/gost341194/hash.go +++ b/gost341194/hash.go @@ -22,7 +22,7 @@ "crypto/subtle" "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 1fb32a596b4ab0acf4041077516074306fa9029e4c98bbc15d062fde6f25b9cd..29e2b011df7dc892fb71698e048825875368f4045f725b506ddea0b9ae858e98 100644 --- a/gost341194/hash_test.go +++ b/gost341194/hash_test.go @@ -22,7 +22,7 @@ "hash" "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 6e0c78c75e760ffb66f2760de589a4a3ec449fe831c67873293675df234d57ae..295ee273d8f5f42e1b27e5876b53bb4b31634f004e50baf271a39f3d0ff5febe 100644 --- a/gost341194/pbkdf2_test.go +++ b/gost341194/pbkdf2_test.go @@ -20,7 +20,7 @@ "bytes" "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 a23d141b05f3620cf0410fc021af48bfdf6a643d9c0f9911767b9ff46e8016a6..7a226936ccb7891196ec0c95c806fe40cdee615526d65d62b959eb308e570513 100644 --- a/gost341264/cipher.go +++ b/gost341264/cipher.go @@ -17,7 +17,7 @@ // GOST 34.12-2015 64-bit (Магма (Magma)) block cipher. 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 344b90042ea695ae2bb640a980192fc5dea67c50012ca8a2337c1f4c2cd80ae8..9b5f6ea3cc995fe8806f91fc23e38a620199360a7f01e3380d481322934fb50e 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 ecf0b372f0822ed9a803fe480a0df0b945cda825b73785cc4a6af609ef425444..456d731839ec493abaa2bc8c1c766cf98441a6075d5db350e1c8b7df24b83613 100644 --- a/mgm/mode_test.go +++ b/mgm/mode_test.go @@ -23,8 +23,8 @@ "io" "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 1d41ac2784aebed87e04aac88620e638cb9ed272432d804af2387352792f399b..f87f12b02cf935c4bbbb4136e996c3f0c4a8a82716068cb55b3eb28c04fa0192 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 add241768a7a20ffe34426393bb778aa4faa8bb437ddfd86939b127d08be2b80..7cedc744f363ac0ef34b33310a85d58c2ddc6db4fd3b0abd24c8c1ca1f7cd4d5 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 e048a483e246e1b4959d748ad3ad25948cae25a607951a00bc1319324528689d..1afc0563e2ece7ed4a363b3c45faec8063b4beaee733c9431b340a9420933a69 100644 --- a/news.texi +++ b/news.texi @@ -3,6 +3,13 @@ @unnumbered News @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 f27e93867f71335e3c75f07580d2a4ae9e8d9e3bde7de64eb3587f28eaaa0a6b..fb2ab84dc74d9da60aafc4b0bf511f50aedec15b34519485cbafc46c6f552e30 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 39054d9a6592a11577134499e6e40c9ced23f3142893558bf086e5ddfbcb4199..235b45541cf26845a3b5bff26945e34f8d1b2098e86e3631e2acc41e4a8c9d4d 100644 --- a/www.texi +++ b/www.texi @@ -66,8 +66,8 @@ @verbatim 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")