diff options
Diffstat (limited to 'gnu/packages/crates-crypto.scm')
-rw-r--r-- | gnu/packages/crates-crypto.scm | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 83d648163e..f515ab3455 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3634,6 +3634,67 @@ Digital Signature Algorithm} (ECDSA).") ("rust-sha2" ,rust-sha2-0.9) ("rust-sha3" ,rust-sha3-0.9)))))) +(define-public rust-salsa20-0.10 + (package + (name "rust-salsa20") + (version "0.10.2") + (source (origin + (method url-fetch) + (uri (crate-uri "salsa20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "04w211x17xzny53f83p8f7cj7k2hi8zck282q5aajwqzydd2z8lp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.4) + ("rust-hex-literal" ,rust-hex-literal-0.3)))) + (home-page "https://github.com/RustCrypto/stream-ciphers") + (synopsis "Salsa20 Stream Cipher") + (description "Salsa20 is a collection of stream cipher algorithms written +in pure Rust.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-salsa20-0.9 + (package + (inherit rust-salsa20-0.10) + (name "rust-salsa20") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "salsa20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "11i646kpgimimqiq8hyi0b7ngp588f7nl9xsc317d9kdcxgvn3qc")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-cipher" ,rust-cipher-0.3) + ("rust-zeroize" ,rust-zeroize-1)))))) + +(define-public rust-salsa20-0.7 + (package + (inherit rust-salsa20-0.10) + (name "rust-salsa20") + (version "0.7.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "salsa20" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "09c16m566g45f41xx3673zyzwca3mykz630fmv2mbjbvmwcc4fw0")))) + (arguments + `(#:cargo-inputs + (("rust-cipher" ,rust-cipher-0.2) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.2)))))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") |