gnu: Add go-github-com-davidlazar-go-crypto.

* gnu/packages/golang-crypto.scm (go-github-com-davidlazar-go-crypto): New variable.

Change-Id: Ib2a070a460d1d6d02a6455881897d35f833bc4f8
This commit is contained in:
Sharlatan Hellseher 2024-09-07 15:42:07 +01:00
parent 322c161f10
commit 1222fabbd1
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -500,6 +500,56 @@ (define-public go-github-com-cloudflare-circl
Cryptography (ECC).")
(license license:bsd-3)))
(define-public go-github-com-davidlazar-go-crypto
(package
(name "go-github-com-davidlazar-go-crypto")
(version "0.0.0-20200604182044-b73af7476f6c")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/davidlazar/go-crypto")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "10lbh8ask8hswgz2bavi6gq00dqc3y7apvkha1dhnbicwj9jqf38"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/davidlazar/go-crypto"
#:phases
#~(modify-phases %standard-phases
;; XXX: Run all tests, workaround for go-build-system's lack of Go
;; modules support.
(delete 'build)
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-golang-org-x-crypto))
(home-page "https://github.com/davidlazar/go-crypto")
(synopsis "Cryptographic packages for Golang")
(description
"This package produces a collection of cryptographic utilities,
including the following:
@itemize
@item @code{drbg}: a cryptographically secure pseudorandom number generator as
specified in
@url{https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf,NIST SP
800-90A}
@item @code{encoding/base32}: a compact base32 encoder
@item @code{secretkey}: user-friendly secret keys that can be used with
secretbox
@item @code{salsa20}: a streaming interface (cipher.Stream) for the Salsa20
stream cipher
@item @code{poly1305}: a streaming interface (hash.Hash) for the Poly1305
one-time authenticator as specified in
@url{http://cr.yp.to/mac/poly1305-20050329.pdf, poly1305}
@end itemize")
(license license:expat)))
(define-public go-github-com-dvsekhvalnov-jose2go
(package
(name "go-github-com-dvsekhvalnov-jose2go")