diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e5569b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/chacha20-e2538746bfea853aaa589feb8ec46bd46ee78f86.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce4d6d8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# golang-github-aead-chacha20 - -The golang-github-aead-chacha20 package \ No newline at end of file diff --git a/golang-github-aead-chacha20.spec b/golang-github-aead-chacha20.spec new file mode 100644 index 0000000..f38708e --- /dev/null +++ b/golang-github-aead-chacha20.spec @@ -0,0 +1,69 @@ +# Run tests in check section +%bcond_without check + +%global goipath github.com/aead/chacha20 +%global commit e2538746bfea853aaa589feb8ec46bd46ee78f86 + +%global common_description %{expand: +This package provides implementations of three ChaCha versions: + + - ChaCha20 with a 64 bit nonce (can en/decrypt up to 2^64 * 64 bytes for one + key-nonce combination) + - ChaCha20 with a 96 bit nonce (can en/decrypt up to 2^32 * 64 bytes ~ 256 GB + for one key-nonce combination) + - XChaCha20 with a 192 bit nonce (can en/decrypt up to 2^64 * 64 bytes + for one key-nonce combination) + +Furthermore the chacha sub package implements ChaCha20/12 and ChaCha20/8. +These versions use 12 or 8 rounds instead of 20. But it's recommended to use +ChaCha20 (with 20 rounds) - it will be fast enough for almost all purposes.} + +%gometa + +Name: %{goname} +Version: 0 +Release: 0.1%{?dist} +Summary: ChaCha20 and XChaCha20 stream ciphers +License: MIT +URL: %{gourl} +Source0: %{gosource} + +%description +%{common_description} + + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +%{common_description} + +This package contains library source intended for +building other packages which use import path with +%{goipath} prefix. + + +%prep +%forgeautosetup + + +%install +%goinstall + + +%if %{with check} +%check +%gochecks +%endif + + +%files devel -f devel.file-list +%license LICENSE +%doc README.md + + +%changelog +* Thu May 17 2018 Robert-André Mauchin - 0.0.1.20180517gite253874 +- First package for Fedora + diff --git a/sources b/sources new file mode 100644 index 0000000..a466222 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (chacha20-e2538746bfea853aaa589feb8ec46bd46ee78f86.tar.gz) = 96cd2b19175f6649265e1aa07af7929fd6fc9593dbfa432e6eb5494bbf33b7f8efeac61e73288625b221166920957ca98b8d18639594498bbe5c250d40781085