gnu: protobuf: Update to 3.11.3.
[jackhill/guix/guix.git] / gnu / packages / crypto.scm
CommitLineData
80b77646
DT
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 David Thompson <davet@gnu.org>
8543ccf8 3;;; Copyright © 2015, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
cc6731e9 4;;; Copyright © 2016, 2017, 2018, 2019 Leo Famulari <leo@famulari.name>
893d963a 5;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox>
95f2071a 6;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
47956fa0 7;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
c2ab3b84 8;;; Copyright © 2016, 2017, 2019 Eric Bavier <bavier@member.fsf.org>
de98f4ed 9;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
fa58a0a6 10;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
a21eb019 11;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
84be0e9a 12;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
20b49f47 13;;; Copyright © 2018, 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
6a6e5d84
PN
14;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
15;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
bfaa0617 16;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
80b77646
DT
17;;;
18;;; This file is part of GNU Guix.
19;;;
20;;; GNU Guix is free software; you can redistribute it and/or modify it
21;;; under the terms of the GNU General Public License as published by
22;;; the Free Software Foundation; either version 3 of the License, or (at
23;;; your option) any later version.
24;;;
25;;; GNU Guix is distributed in the hope that it will be useful, but
26;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28;;; GNU General Public License for more details.
29;;;
30;;; You should have received a copy of the GNU General Public License
31;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32
33(define-module (gnu packages crypto)
34 #:use-module (gnu packages)
2e3f1851
EB
35 #:use-module (gnu packages admin)
36 #:use-module (gnu packages aidc)
b6f87ec0 37 #:use-module (gnu packages attr)
893d963a 38 #:use-module (gnu packages autotools)
fb8a5d63 39 #:use-module (gnu packages boost)
47de00af 40 #:use-module (gnu packages check)
de98f4ed 41 #:use-module (gnu packages compression)
2e3f1851 42 #:use-module (gnu packages cryptsetup)
fb8a5d63 43 #:use-module (gnu packages gettext)
2e3f1851
EB
44 #:use-module (gnu packages gnupg)
45 #:use-module (gnu packages image)
8a68b71d 46 #:use-module (gnu packages kerberos)
f1876bfc 47 #:use-module (gnu packages libbsd)
0751fddd 48 #:use-module (gnu packages libffi)
fb8a5d63 49 #:use-module (gnu packages linux)
417df5bb 50 #:use-module (gnu packages lsof)
893d963a
LG
51 #:use-module (gnu packages nettle)
52 #:use-module (gnu packages password-utils)
fb8a5d63 53 #:use-module (gnu packages perl)
5ccde207 54 #:use-module (gnu packages perl-check)
b6beda1d
LF
55 #:use-module (gnu packages pkg-config)
56 #:use-module (gnu packages python)
44d10b1f 57 #:use-module (gnu packages python-xyz)
893d963a 58 #:use-module (gnu packages readline)
2e3f1851 59 #:use-module (gnu packages search)
893d963a 60 #:use-module (gnu packages serialization)
19b2ea1b 61 #:use-module (gnu packages shells)
cd0322a3 62 #:use-module (gnu packages sqlite)
b6f87ec0 63 #:use-module (gnu packages tcl)
893d963a 64 #:use-module (gnu packages tls)
b6f87ec0 65 #:use-module (gnu packages xml)
7fb18f57 66 #:use-module ((guix licenses) #:prefix license:)
80b77646
DT
67 #:use-module (guix packages)
68 #:use-module (guix download)
6fabb196 69 #:use-module (guix git-download)
b6f87ec0 70 #:use-module (guix build-system cmake)
09c36743 71 #:use-module (guix build-system gnu)
fa58a0a6
EF
72 #:use-module (guix build-system perl)
73 #:use-module (srfi srfi-1)
74 #:use-module (srfi srfi-26))
80b77646
DT
75
76(define-public libsodium
77 (package
78 (name "libsodium")
3c75c66c 79 (version "1.0.18")
80b77646
DT
80 (source (origin
81 (method url-fetch)
4150ac88 82 (uri (list (string-append
bee98a9f 83 "https://download.libsodium.org/libsodium/"
4150ac88
LF
84 "releases/libsodium-" version ".tar.gz")
85 (string-append
86 "https://download.libsodium.org/libsodium/"
87 "releases/old/libsodium-" version ".tar.gz")))
80b77646
DT
88 (sha256
89 (base32
3c75c66c 90 "1h9ncvj23qbbni958knzsli8dvybcswcjbx0qjjgi922nf848l3g"))))
80b77646
DT
91 (build-system gnu-build-system)
92 (synopsis "Portable NaCl-based crypto library")
93 (description
35b9e423 94 "Sodium is a new easy-to-use high-speed software library for network
80b77646 95communication, encryption, decryption, signatures, etc.")
7fb18f57 96 (license license:isc)
bee98a9f 97 (home-page "https://libsodium.org")))
f1876bfc 98
32977915
CB
99(define-public libmd
100 (package
101 (name "libmd")
3743e117 102 (version "1.0.1")
32977915
CB
103 (source (origin
104 (method url-fetch)
f1d7e14a
MB
105 (uri
106 (list
107 (string-append "https://archive.hadrons.org/software/libmd/libmd-"
108 version ".tar.xz")
109 (string-append "https://libbsd.freedesktop.org/releases/libmd-"
110 version ".tar.xz")))
32977915
CB
111 (sha256
112 (base32
3743e117 113 "0waclg2d5qin3r26gy5jvy4584ik60njc8pqbzwk0lzq3j9ynkp1"))))
32977915
CB
114 (build-system gnu-build-system)
115 (synopsis "Message Digest functions from BSD systems")
116 (description
117 "The currently provided message digest algorithms are:
118@itemize
119@item MD2
120@item MD4
121@item MD5
122@item RIPEMD-160
123@item SHA-1
124@item SHA-2 (SHA-256, SHA-384 and SHA-512)
125@end itemize")
126 (license (list license:bsd-3
127 license:bsd-2
128 license:isc
129 license:public-domain))
130 (home-page "https://www.hadrons.org/software/libmd/")))
131
f1876bfc
LF
132(define-public signify
133 (package
134 (name "signify")
2296e630 135 (version "28")
a5006ede 136 (home-page "https://github.com/aperezdc/signify")
f1876bfc 137 (source (origin
b23579d0
MB
138 (method url-fetch)
139 (uri (string-append "https://github.com/aperezdc/signify/releases"
140 "/download/v" version "/signify-" version ".tar.xz"))
f1876bfc
LF
141 (sha256
142 (base32
2296e630 143 "05v970glhpaxv0m4cnidfxsdnsjp12nf2crzrdq4ml7g5a3g6hdq"))))
f1876bfc
LF
144 (build-system gnu-build-system)
145 ;; TODO Build with libwaive (described in README.md), to implement something
146 ;; like OpenBSD's pledge().
147 (arguments
2296e630 148 `(#:make-flags
f1876bfc
LF
149 (list "CC=gcc"
150 (string-append "PREFIX=" (assoc-ref %outputs "out")))
151 #:phases
152 (modify-phases %standard-phases
153 (delete 'configure))))
154 (native-inputs
155 `(("pkg-config" ,pkg-config)))
156 (inputs
157 `(("libbsd" ,libbsd)))
158 (synopsis "Create and verify cryptographic signatures")
159 (description "The signify utility creates and verifies cryptographic
160signatures using the elliptic curve Ed25519. This is a Linux port of the
161OpenBSD tool of the same name.")
f1876bfc
LF
162 ;; This package includes third-party code that was originally released under
163 ;; various non-copyleft licenses. See the source files for clarification.
7fb18f57
TGR
164 (license (list license:bsd-3 license:bsd-4 license:expat license:isc
165 license:public-domain (license:non-copyleft
166 "file://base64.c"
167 "See base64.c in the distribution for
168 the license from IBM.")))))
893d963a 169
fb8a5d63
TGR
170(define-public encfs
171 (package
172 (name "encfs")
47de00af 173 (version "1.9.5")
fb8a5d63
TGR
174 (source
175 (origin
176 (method url-fetch)
177 (uri
178 (string-append "https://github.com/vgough/encfs/releases/download/v"
179 version "/encfs-" version ".tar.gz"))
180 (sha256
181 (base32
47de00af 182 "0qzxavvv20577bxvly8s7d3y7bqasqclc2mllp0ddfncjm9z02a7"))
b6f87ec0
TGR
183 (modules '((guix build utils)))
184 ;; Remove bundled dependencies in favour of proper inputs.
6cbee49d
MW
185 (snippet '(begin
186 (for-each delete-file-recursively
47de00af
PN
187 '("vendor/github.com/leethomason/tinyxml2"
188 "vendor/github.com/google/googletest"))
6cbee49d 189 #t))))
b6f87ec0 190 (build-system cmake-build-system)
fb8a5d63 191 (native-inputs
79355ae3 192 `(("gettext" ,gettext-minimal)
b6f87ec0
TGR
193
194 ;; Test dependencies.
195 ("expect" ,expect)
47de00af 196 ("googletest-source" ,(package-source googletest))
b6f87ec0 197 ("perl" ,perl)))
fb8a5d63 198 (inputs
b6f87ec0 199 `(("attr" ,attr)
fb8a5d63
TGR
200 ("fuse" ,fuse)
201 ("openssl" ,openssl)
b6f87ec0
TGR
202 ("tinyxml2" ,tinyxml2)))
203 (arguments
47de00af
PN
204 `(#:configure-flags (list "-DUSE_INTERNAL_TINYXML=OFF")
205 #:phases
206 (modify-phases %standard-phases
207 (add-after 'unpack 'unpack-googletest
208 (lambda* (#:key inputs #:allow-other-keys)
209 (mkdir-p "vendor/github.com/google/googletest")
d5640c58
EF
210 (copy-recursively (assoc-ref inputs "googletest-source")
211 "vendor/github.com/google/googletest")
212 #t))
1df92455
MB
213 (add-before 'configure 'patch-CMakeLists.txt
214 (lambda _
215 ;; Prevent CMake from adding libc on the system include path.
216 ;; Otherwise it will interfere with the libc used by GCC and
217 ;; ultimately cause #include_next errors.
218 (substitute* "CMakeLists.txt"
219 (("include_directories \\(SYSTEM \\$\\{Intl_INCLUDE_DIRS\\}\\)")
220 ""))
221 #t))
47de00af
PN
222 (add-before 'check 'make-unittests
223 (lambda _
224 (invoke "make" "unittests"))))))
fb8a5d63
TGR
225 (home-page "https://vgough.github.io/encfs")
226 (synopsis "Encrypted virtual file system")
227 (description
228 "EncFS creates a virtual encrypted file system in user-space. Each file
229created under an EncFS mount point is stored as a separate encrypted file on
230the underlying file system. Like most encrypted file systems, EncFS is meant
231to provide security against off-line attacks, such as a drive falling into
232the wrong hands.")
b6f87ec0
TGR
233 (license (list license:expat ; internal/easylogging++.h
234 license:lgpl3+ ; encfs library
235 license:gpl3+)))) ; command-line tools
279d902b
TGR
236
237(define-public keyutils
238 (package
239 (name "keyutils")
95f2071a 240 (version "1.6.1")
279d902b
TGR
241 (source
242 (origin
243 (method url-fetch)
244 (uri
245 (string-append "https://people.redhat.com/dhowells/keyutils/keyutils-"
246 version ".tar.bz2"))
247 (sha256
95f2071a 248 (base32 "1kk4pmyflgplkgxn2bzpc069ph9c9jdd9ikcsyd5pnaimqi5gcf8"))
279d902b 249 (modules '((guix build utils)))
8a68b71d 250 ;; Create relative symbolic links instead of absolute ones to /lib/*.
6cbee49d
MW
251 (snippet '(begin
252 (substitute* "Makefile" (("\\$\\(LNS\\) \\$\\(LIBDIR\\)/")
253 "$(LNS) "))
254 #t))))
279d902b
TGR
255 (build-system gnu-build-system)
256 (arguments
257 `(#:phases (modify-phases %standard-phases
258 (delete 'configure)) ; no configure script
259 #:make-flags (list "CC=gcc"
260 "RPATH=-Wl,-rpath,$(DESTDIR)$(LIBDIR)"
261 (string-append "DESTDIR="
262 (assoc-ref %outputs "out"))
263 "INCLUDEDIR=/include"
264 "LIBDIR=/lib"
265 "MANDIR=/share/man"
266 "SHAREDIR=/share/keyutils")
267 #:test-target "test"))
8a68b71d
TGR
268 (inputs
269 `(("mit-krb5" ,mit-krb5)))
279d902b 270 (home-page "https://people.redhat.com/dhowells/keyutils/")
5b63a856 271 (synopsis "Linux key management utilities")
279d902b
TGR
272 (description
273 "Keyutils is a set of utilities for managing the key retention facility in
274the Linux kernel, which can be used by file systems, block devices, and more to
275gain and retain the authorization and encryption keys required to perform
276secure operations. ")
277 (license (list license:lgpl2.1+ ; the files keyutils.*
278 license:gpl2+)))) ; the rest
6fabb196 279
280;; There is no release candidate but commits point out a version number,
281;; furthermore no tarball exists.
282(define-public eschalot
283 (let ((commit "0bf31d88a11898c19b1ed25ddd2aff7b35dbac44")
284 (revision "1"))
285 (package
286 (name "eschalot")
287 (version (string-append "1.2.0-" revision "." (string-take commit 7)))
288 (source
289 (origin
290 (method git-fetch)
291 (uri (git-reference
292 (url "https://github.com/schnabear/eschalot")
293 (commit commit)))
294 (file-name (string-append name "-" version))
295 (sha256
296 (base32
297 "0lj38ldh8vzi11wp4ghw4k0fkwp0s04zv8k8d473p1snmbh7mx98"))))
298 (inputs
299 `(("openssl" ,openssl))) ; It needs: openssl/{bn,pem,rsa,sha}.h
300 (build-system gnu-build-system)
301 (arguments
302 `(#:make-flags (list "CC=gcc"
303 (string-append "PREFIX=" (assoc-ref %outputs "out"))
304 (string-append "INSTALL=" "install"))
305 ;; XXX: make test would run a !VERY! long hashing of names with the use
306 ;; of a wordlist, the amount of computing time this would waste on build
307 ;; servers is in no relation to the size or importance of this small
308 ;; application, therefore we run our own tests on eschalot and worgen.
309 #:phases
310 (modify-phases %standard-phases
311 (delete 'configure)
312 (replace 'check
313 (lambda _
8543ccf8
RW
314 (invoke "./worgen" "8-12" "top1000.txt" "3-10" "top400nouns.txt"
315 "3-6" "top150adjectives.txt" "3-6")
316 (invoke "./eschalot" "-r" "^guix|^guixsd")
317 (invoke "./eschalot" "-r" "^gnu|^free")
318 (invoke "./eschalot" "-r" "^cyber|^hack")
319 (invoke "./eschalot" "-r" "^troll")))
6fabb196 320 ;; Make install can not create the bin dir, create it.
321 (add-before 'install 'create-bin-dir
322 (lambda* (#:key outputs #:allow-other-keys)
323 (let* ((out (assoc-ref outputs "out"))
324 (bin (string-append out "/bin")))
325 (mkdir-p bin)
326 #t))))))
327 (home-page "https://github.com/schnabear/eschalot")
328 (synopsis "Tor hidden service name generator")
329 (description
330 "Eschalot is a tor hidden service name generator, it allows one to
331produce customized vanity .onion addresses using a brute-force method. Searches
332for valid names can be run with regular expressions and wordlists. For the
333generation of wordlists the included tool @code{worgen} can be used. There is
334no man page, refer to the home page for usage details.")
335 (license (list license:isc license:expat)))))
2e3f1851
EB
336
337(define-public tomb
338 (package
339 (name "tomb")
4535eb91 340 (version "2.7")
2e3f1851
EB
341 (source (origin
342 (method url-fetch)
343 (uri (string-append "https://files.dyne.org/tomb/"
8ca2cb58 344 "Tomb-" version ".tar.gz"))
2e3f1851
EB
345 (sha256
346 (base32
4535eb91
EB
347 "0x3al02796vx1cvy6y6h685c367qx70dwv471g0hmks2gr10f0cn"))
348 (patches (search-patches "tomb-fix-errors-on-open.patch"))))
2e3f1851 349 (build-system gnu-build-system)
d56c55ff 350 (native-inputs `(("sudo" ,sudo))) ;presence needed for 'check' phase
2e3f1851
EB
351 (inputs
352 `(("zsh" ,zsh)
2e3f1851
EB
353 ("gnupg" ,gnupg)
354 ("cryptsetup" ,cryptsetup)
355 ("e2fsprogs" ,e2fsprogs) ;for mkfs.ext4
7c90d0f4 356 ("gettext" ,gettext-minimal) ;used at runtime
417df5bb 357 ("lsof" ,lsof)
2e3f1851
EB
358 ("mlocate" ,mlocate)
359 ("pinentry" ,pinentry)
360 ("qrencode" ,qrencode)
1a16b925
TGR
361 ("steghide" ,steghide)
362 ("util-linux" ,util-linux)))
2e3f1851
EB
363 (arguments
364 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
257e6304
EB
365 ;; The "sudo" input is needed only to satisfy dependency checks in the
366 ;; 'check' phase. The "sudo" used at runtime should come from the
367 ;; system's setuid-programs, so ensure no reference is kept.
368 #:disallowed-references (,sudo)
2e3f1851
EB
369 ;; TODO: Build and install gtk and qt trays
370 #:phases
371 (modify-phases %standard-phases
1b7395b1 372 (delete 'configure) ;no configuration to be done
2e3f1851
EB
373 (add-after 'install 'i18n
374 (lambda* (#:key make-flags #:allow-other-keys)
635dd0cc
TGR
375 (apply invoke "make" "-C" "extras/translations"
376 "install" make-flags)
377 #t))
2e3f1851
EB
378 (add-after 'install 'wrap
379 (lambda* (#:key inputs outputs #:allow-other-keys)
380 (let ((out (assoc-ref outputs "out")))
381 (wrap-program (string-append out "/bin/tomb")
382 `("PATH" ":" prefix
383 (,(string-append (assoc-ref inputs "mlocate") "/bin")
384 ,@(map (lambda (program)
385 (or (and=> (which program) dirname)
386 (error "program not found:" program)))
257e6304 387 '("seq" "mkfs.ext4" "pinentry"
417df5bb 388 "gpg" "cryptsetup" "gettext" "lsof"
1a16b925 389 "qrencode" "steghide" "findmnt")))))
2e3f1851
EB
390 #t)))
391 (delete 'check)
392 (add-after 'wrap 'check
393 (lambda* (#:key outputs #:allow-other-keys)
394 ;; Running the full tests requires sudo/root access for
395 ;; cryptsetup, which is not available in the build environment.
396 ;; But we can run `tomb dig` without root, so make sure that
397 ;; works. TODO: It Would Be Nice to check the expected "index",
398 ;; "search", "bury", and "exhume" features are available by
399 ;; querying `tomb -h`.
400 (let ((tomb (string-append (assoc-ref outputs "out")
401 "/bin/tomb")))
635dd0cc
TGR
402 (invoke tomb "dig" "-s" "10" "secrets.tomb")
403 #t))))))
9539016e 404 (home-page "https://www.dyne.org/software/tomb")
2e3f1851
EB
405 (synopsis "File encryption for secret data")
406 (description
407 "Tomb is an application to manage the creation and access of encrypted
408storage files: it can be operated from commandline and it can integrate with a
409user's graphical desktop.")
410 (license license:gpl3+)))
9381a02a
LF
411
412(define-public scrypt
413 (package
414 (name "scrypt")
6c067a3f 415 (version "1.2.1")
9381a02a
LF
416 (source
417 (origin
418 (method url-fetch)
419 (uri (string-append "https://www.tarsnap.com/scrypt/scrypt-"
420 version ".tgz"))
421 (sha256
422 (base32
6c067a3f 423 "0xy5yhrwwv13skv9im9vm76rybh9f29j2dh4hlh2x01gvbkza8a6"))))
9381a02a
LF
424 (build-system gnu-build-system)
425 (arguments
426 `(#:phases (modify-phases %standard-phases
427 (add-after 'unpack 'patch-command-invocations
428 (lambda _
429 (substitute* "Makefile.in"
430 (("command -p") ""))
431 #t))
432 (add-after 'install 'install-docs
433 (lambda* (#:key outputs #:allow-other-keys)
434 (let* ((out (assoc-ref %outputs "out"))
435 (misc (string-append out "/share/doc/scrypt")))
436 (install-file "FORMAT" misc)
437 #t))))))
438 (inputs
439 `(("openssl" ,openssl)))
440 (home-page "https://www.tarsnap.com/scrypt.html")
441 (synopsis "Memory-hard encryption tool based on scrypt")
f5304488 442 (description "This package provides a simple password-based encryption
9381a02a
LF
443utility as a demonstration of the @code{scrypt} key derivation function.
444@code{Scrypt} is designed to be far more resistant against hardware brute-force
445attacks than alternative functions such as @code{PBKDF2} or @code{bcrypt}.")
446 (license license:bsd-2)))
09c36743 447
84be0e9a
NG
448(define-public libscrypt
449 (package
450 (name "libscrypt")
451 (version "1.21")
452 (source
453 (origin
454 (method git-fetch)
455 (uri (git-reference
456 (url "https://github.com/technion/libscrypt.git")
457 (commit (string-append "v" version))))
458 (file-name (git-file-name name version))
459 (sha256
460 (base32
461 "1d76ys6cp7fi4ng1w3mz2l0p9dbr7ljbk33dcywyimzjz8bahdng"))))
462 (build-system gnu-build-system)
463 (arguments
464 `(#:make-flags (list (string-append "PREFIX=" %output)
465 "CC=gcc")
466 #:phases
467 (modify-phases %standard-phases
468 (delete 'configure))))
469 (home-page "https://lolware.net/libscrypt.html")
470 (synopsis "Password hashing library")
471 (description "@code{libscrypt} implements @code{scrypt} key derivation
472function. It is designed to be far more secure against hardware brute-force
473attacks than alternative functions such as @code{PBKDF2} or @code{bcrypt}.")
474 (license license:bsd-3)))
475
d96e162a
RW
476(define-public perl-math-random-isaac-xs
477 (package
478 (name "perl-math-random-isaac-xs")
479 (version "1.004")
480 (source
481 (origin
482 (method url-fetch)
483 (uri (string-append "mirror://cpan/authors/id/J/JA/JAWNSY/"
484 "Math-Random-ISAAC-XS-" version ".tar.gz"))
485 (sha256
486 (base32
487 "0yxqqcqvj51fn7b7j5xqhz65v74arzgainn66c6k7inijbmr1xws"))))
488 (build-system perl-build-system)
489 (native-inputs
490 `(("perl-module-build" ,perl-module-build)
491 ("perl-test-nowarnings" ,perl-test-nowarnings)))
9aba9b12 492 (home-page "https://metacpan.org/release/Math-Random-ISAAC-XS")
d96e162a
RW
493 (synopsis "C implementation of the ISAAC PRNG algorithm")
494 (description "ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a
495fast pseudo-random number generator. It is suitable for applications where a
496significant amount of random data needs to be produced quickly, such as
497solving using the Monte Carlo method or for games. The results are uniformly
498distributed, unbiased, and unpredictable unless you know the seed.
499
500This package implements the same interface as @code{Math::Random::ISAAC}.")
501 (license license:public-domain)))
649238cb
RW
502
503(define-public perl-math-random-isaac
504 (package
505 (name "perl-math-random-isaac")
506 (version "1.004")
507 (source
508 (origin
509 (method url-fetch)
510 (uri (string-append "mirror://cpan/authors/id/J/JA/JAWNSY/"
511 "Math-Random-ISAAC-" version ".tar.gz"))
512 (sha256
513 (base32
514 "0z1b3xbb3xz71h25fg6jgsccra7migq7s0vawx2rfzi0pwpz0wr7"))))
515 (build-system perl-build-system)
516 (native-inputs
517 `(("perl-test-nowarnings" ,perl-test-nowarnings)))
518 (propagated-inputs
519 `(("perl-math-random-isaac-xs" ,perl-math-random-isaac-xs)))
9aba9b12 520 (home-page "https://metacpan.org/release/Math-Random-ISAAC")
649238cb
RW
521 (synopsis "Perl interface to the ISAAC PRNG algorithm")
522 (description "ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a
523fast pseudo-random number generator. It is suitable for applications where a
524significant amount of random data needs to be produced quickly, such as
525solving using the Monte Carlo method or for games. The results are uniformly
526distributed, unbiased, and unpredictable unless you know the seed.
527
528This package provides a Perl interface to the ISAAC pseudo random number
529generator.")
530 (license license:public-domain)))
2023b79f
RW
531
532(define-public perl-crypt-random-source
533 (package
534 (name "perl-crypt-random-source")
9a40a621 535 (version "0.14")
2023b79f
RW
536 (source
537 (origin
538 (method url-fetch)
539 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
540 "Crypt-Random-Source-" version ".tar.gz"))
541 (sha256
9a40a621 542 (base32 "1rpdds3sy5l1fhngnkrsgwsmwd54wpicx3i9ds69blcskwkcwkpc"))))
2023b79f
RW
543 (build-system perl-build-system)
544 (native-inputs
545 `(("perl-module-build-tiny" ,perl-module-build-tiny)
9a40a621 546 ("perl-test-fatal" ,perl-test-fatal)))
2023b79f
RW
547 (propagated-inputs
548 `(("perl-capture-tiny" ,perl-capture-tiny)
549 ("perl-module-find" ,perl-module-find)
550 ("perl-module-runtime" ,perl-module-runtime)
551 ("perl-moo" ,perl-moo)
552 ("perl-namespace-clean" ,perl-namespace-clean)
553 ("perl-sub-exporter" ,perl-sub-exporter)
554 ("perl-type-tiny" ,perl-type-tiny)))
9aba9b12 555 (home-page "https://metacpan.org/release/Crypt-Random-Source")
2023b79f
RW
556 (synopsis "Get weak or strong random data from pluggable sources")
557 (description "This module provides implementations for a number of
558byte-oriented sources of random data.")
8cb537ac 559 (license license:perl-license)))
233f4f43
RW
560
561(define-public perl-math-random-secure
562 (package
563 (name "perl-math-random-secure")
564 (version "0.080001")
565 (source
566 (origin
567 (method url-fetch)
568 (uri (string-append "mirror://cpan/authors/id/F/FR/FREW/"
569 "Math-Random-Secure-" version ".tar.gz"))
570 (sha256
571 (base32
572 "0dgbf4ncll4kmgkyb9fsaxn0vf2smc9dmwqzgh3259zc2zla995z"))))
573 (build-system perl-build-system)
574 (native-inputs
575 `(("perl-list-moreutils" ,perl-list-moreutils)
576 ("perl-test-leaktrace" ,perl-test-leaktrace)
577 ("perl-test-sharedfork" ,perl-test-sharedfork)
578 ("perl-test-warn" ,perl-test-warn)))
579 (inputs
580 `(("perl-crypt-random-source" ,perl-crypt-random-source)
581 ("perl-math-random-isaac" ,perl-math-random-isaac)
582 ("perl-math-random-isaac-xs" ,perl-math-random-isaac-xs)
583 ("perl-moo" ,perl-moo)))
9aba9b12 584 (home-page "https://metacpan.org/release/Math-Random-Secure")
233f4f43
RW
585 (synopsis "Cryptographically secure replacement for rand()")
586 (description "This module is intended to provide a
587cryptographically-secure replacement for Perl's built-in @code{rand} function.
588\"Crytographically secure\", in this case, means:
589
590@enumerate
591@item No matter how many numbers you see generated by the random number
592generator, you cannot guess the future numbers, and you cannot guess the seed.
593@item There are so many possible seeds that it would take decades, centuries,
8d0d1447 594or millennia for an attacker to try them all.
233f4f43
RW
595@item The seed comes from a source that generates relatively strong random
596data on your platform, so the seed itself will be as random as possible.
597@end enumerate\n")
598 (license license:artistic2.0)))
f0f6f9f6 599
de98f4ed
PL
600(define-public crypto++
601 (package
602 (name "crypto++")
35ac66ee 603 (version "8.0.0")
de98f4ed
PL
604 (source (origin
605 (method url-fetch/zipbomb)
606 (uri (string-append "https://cryptopp.com/cryptopp"
607 (string-join (string-split version #\.) "")
608 ".zip"))
609 (sha256
610 (base32
35ac66ee 611 "0b5qrsm4jhy4nzxgrm13nixhvbswr242plx1jw6r4sw492rqkzdv"))))
de98f4ed
PL
612 (build-system gnu-build-system)
613 (arguments
614 `(#:make-flags
35ac66ee
PN
615 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
616 ;; Override "/sbin/ldconfig" with simply "echo" since
617 ;; we don't need ldconfig(8).
618 "LDCONF=echo")
de98f4ed
PL
619 #:phases
620 (modify-phases %standard-phases
c300cae6
TGR
621 (add-after 'unpack 'disable-native-optimisation
622 ;; This package installs more than just headers. Ensure that the
623 ;; cryptest.exe binary & static library aren't CPU model specific.
624 (lambda _
625 (substitute* "GNUmakefile"
626 ((" -march=native") ""))
627 #t))
35ac66ee
PN
628 (delete 'configure)
629 (add-after 'build 'build-shared
630 (lambda _
631 ;; By default, only the static library is built.
632 (invoke "make" "shared")))
f92ebd57
TGR
633 (add-after 'install 'install-shared-library-links
634 ;; By default, only .so and .so.x.y.z are installed.
635 ;; Create all the ‘intermediates’ expected by dependent packages.
636 (lambda* (#:key outputs #:allow-other-keys)
637 (let* ((out (assoc-ref outputs "out"))
638 (lib (string-append out "/lib")))
639 (with-directory-excursion lib
640 (symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8.0")
641 (symlink "libcryptopp.so.8.0.0" "libcryptopp.so.8")
642 #t))))
35ac66ee
PN
643 (add-after 'install 'install-pkg-config
644 (lambda* (#:key outputs #:allow-other-keys)
645 (let* ((out (assoc-ref outputs "out"))
646 (pkg-dir (string-append out "/lib/pkgconfig")))
647 (mkdir-p pkg-dir)
648 (with-output-to-file (string-append pkg-dir "/libcrypto++.pc")
649 (lambda _
650 (display
651 (string-append
652 "prefix=" out "\n"
653 "libdir=" out "/lib\n"
654 "includedir=" out "/include\n\n"
655 "Name: libcrypto++-" ,version "\n"
656 "Description: Class library of cryptographic schemes"
657 "Version: " ,version "\n"
658 "Libs: -L${libdir} -lcryptopp\n"
659 "Cflags: -I${includedir}\n"))))))))))
de98f4ed
PL
660 (native-inputs
661 `(("unzip" ,unzip)))
662 (home-page "https://cryptopp.com/")
663 (synopsis "C++ class library of cryptographic schemes")
664 (description "Crypto++ is a C++ class library of cryptographic schemes.")
665 ;; The compilation is distributed under the Boost license; the individual
666 ;; files in the compilation are in the public domain.
667 (license (list license:boost1.0 license:public-domain))))
60e95297 668
c6220b13 669(define-public libb2
e9997e47
MB
670 (package
671 (name "libb2")
f2096f4a 672 (version "0.98.1")
e9997e47
MB
673 (source (origin
674 (method url-fetch)
675 (uri (string-append
676 "https://github.com/BLAKE2/libb2/releases/download/v"
677 version "/libb2-" version ".tar.gz"))
678 (sha256
679 (base32
f2096f4a 680 "0bn7yrzdixdvzm46shbhpkqbr6zyqyxiqn7a7x54ag3mrvfnyqjk"))))
e9997e47
MB
681 (build-system gnu-build-system)
682 (arguments
683 `(#:configure-flags
684 (list
685 ,@(if (any (cute string-prefix? <> (or (%current-system)
686 (%current-target-system)))
687 '("x86_64" "i686"))
688 ;; fat only checks for Intel optimisations
689 '("--enable-fat")
690 '())
691 "--disable-native"))) ;don't optimise at build time
692 (home-page "https://blake2.net/")
693 (synopsis "Library implementing the BLAKE2 family of hash functions")
694 (description
695 "libb2 is a portable implementation of the BLAKE2 family of cryptographic
c6220b13
TGR
696hash functions. It includes optimised implementations for IA-32 and AMD64
697processors, and an interface layer that automatically selects the best
698implementation for the processor it is run on.
699
700@dfn{BLAKE2} (RFC 7693) is a family of high-speed cryptographic hash functions
701that are faster than MD5, SHA-1, SHA-2, and SHA-3, yet are at least as secure
702as the latest standard, SHA-3. It is an improved version of the SHA-3 finalist
703BLAKE.")
e9997e47 704 (license license:public-domain)))
a21eb019
AI
705
706(define-public rhash
707 (package
708 (name "rhash")
2bdf9cb3 709 (version "1.3.8")
a21eb019
AI
710 (source
711 (origin
712 (method url-fetch)
713 (uri (string-append "https://github.com/rhash/RHash/archive/v"
714 version ".tar.gz"))
715 (file-name (string-append name "-" version ".tar.gz"))
716 (sha256
717 (base32
2bdf9cb3 718 "0k60ywyhwqwqxa2q2l85vwgf884hcgy31nxir3dqgz7ymib6llxy"))))
a21eb019
AI
719 (build-system gnu-build-system)
720 (arguments
53bed209
TGR
721 `(#:make-flags
722 ;; The binaries in /bin need some help finding librhash.so.0.
723 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
724 #:test-target "test" ; ‘make check’ just checks the sources
a21eb019
AI
725 #:phases
726 (modify-phases %standard-phases
727 (replace 'configure
53bed209
TGR
728 ;; ./configure is not GNU autotools' and doesn't gracefully handle
729 ;; unrecognized options, so we must call it manually.
a21eb019 730 (lambda* (#:key outputs #:allow-other-keys)
53bed209
TGR
731 (invoke "./configure"
732 (string-append "--prefix=" (assoc-ref outputs "out")))))
733 (add-after 'install 'install-library-extras
952a20d2 734 (lambda* (#:key make-flags #:allow-other-keys)
a21eb019 735 (apply invoke
53bed209 736 "make" "-C" "librhash"
2bdf9cb3 737 "install-lib-headers" "install-so-link"
53bed209 738 make-flags))))))
a21eb019
AI
739 (home-page "https://sourceforge.net/projects/rhash/")
740 (synopsis "Utility for computing hash sums")
741 (description "RHash is a console utility for calculation and verification
742of magnet links and a wide range of hash sums like CRC32, MD4, MD5, SHA1,
743SHA256, SHA512, SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R
74434.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru.")
745 (license (license:non-copyleft "file://COPYING"))))
b6beda1d
LF
746
747(define-public botan
748 (package
749 (name "botan")
64bef450 750 (version "2.12.1")
b6beda1d
LF
751 (source (origin
752 (method url-fetch)
753 (uri (string-append "https://botan.randombit.net/releases/"
64bef450 754 "Botan-" version ".tar.xz"))
b6beda1d
LF
755 (sha256
756 (base32
64bef450 757 "1ada3ga7b0z4m0vjmxlvfi4nsic2l8kjcy85jwss3z2i58a5y0vy"))))
b6beda1d
LF
758 (build-system gnu-build-system)
759 (arguments
760 '(#:phases
761 (modify-phases %standard-phases
b6beda1d
LF
762 (replace 'configure
763 (lambda* (#:key inputs outputs #:allow-other-keys)
764 (let* ((out (assoc-ref %outputs "out"))
765 (lib (string-append out "/lib")))
69ad8d92
TGR
766 ;; Upstream tests and benchmarks with -O3.
767 (setenv "CXXFLAGS" "-O3")
b6beda1d
LF
768 (invoke "python" "./configure.py"
769 (string-append "--prefix=" out)
770 ;; Otherwise, the `botan` executable cannot find
771 ;; libbotan.
772 (string-append "--ldflags=-Wl,-rpath=" lib)
be4f2d94
TGR
773
774 "--with-os-feature=getentropy"
b6beda1d 775 "--with-rst2man"
be4f2d94 776
b6beda1d
LF
777 ;; Recommended by upstream
778 "--with-zlib" "--with-bzip2" "--with-sqlite3"))))
779 (replace 'check
780 (lambda _ (invoke "./botan-test"))))))
781 (native-inputs
61506fe5 782 `(("python" ,python-wrapper)
b6beda1d
LF
783 ("python-docutils" ,python-docutils)))
784 (inputs
785 `(("sqlite" ,sqlite)
786 ("bzip2" ,bzip2)
787 ("zlib" ,zlib)))
788 (synopsis "Cryptographic library in C++11")
789 (description "Botan is a cryptography library, written in C++11, offering
790the tools necessary to implement a range of practical systems, such as TLS/DTLS,
791PKIX certificate handling, PKCS#11 and TPM hardware support, password hashing,
792and post-quantum crypto schemes. In addition to the C++, botan has a C89 API
793specifically designed to be easy to call from other languages. A Python binding
794using ctypes is included, and several other language bindings are available.")
795 (home-page "https://botan.randombit.net")
796 (license license:bsd-2)))
0cfc168b
PN
797
798(define-public ccrypt
799 (package
800 (name "ccrypt")
fc79867d 801 (version "1.11")
0cfc168b
PN
802 (source (origin
803 (method url-fetch)
fc79867d 804 (uri (string-append "mirror://sourceforge/ccrypt/"
0cfc168b
PN
805 version "/ccrypt-" version ".tar.gz"))
806 (sha256
807 (base32
fc79867d 808 "0kx4a5mhmp73ljknl2lcccmw9z3f5y8lqw0ghaymzvln1984g75i"))))
0cfc168b
PN
809 (build-system gnu-build-system)
810 (home-page "http://ccrypt.sourceforge.net")
811 (synopsis "Command-line utility for encrypting and decrypting files and streams")
812 (description "@command{ccrypt} is a utility for encrypting and decrypting
813files and streams. It was designed as a replacement for the standard unix
814@command{crypt} utility, which is notorious for using a very weak encryption
815algorithm. @command{ccrypt} is based on the Rijndael block cipher, a version of
816which is also used in the Advanced Encryption Standard (AES, see
817@url{http://www.nist.gov/aes}). This cipher is believed to provide very strong
818security.")
819 (license license:gpl2)))
de15ff1a
LF
820
821(define-public asignify
822 (let ((commit "f58e7977a599f040797975d649ed318e25cbd2d5")
823 (revision "0"))
824 (package
825 (name "asignify")
826 (version (git-version "1.1" revision commit))
827 (source (origin
828 (method git-fetch)
829 (uri (git-reference
830 (url "https://github.com/vstakhov/asignify.git")
831 (commit commit)))
832 (file-name (git-file-name name version))
833 (sha256
834 (base32
835 "1zl68qq6js6fdahxzyhvhrpyrwlv8c2zhdplycnfxyr1ckkhq8dw"))))
836 (build-system gnu-build-system)
837 (arguments
838 `(#:configure-flags
839 (list "--enable-openssl"
840 (string-append "--with-openssl="
841 (assoc-ref %build-inputs "openssl")))))
842 (native-inputs
843 `(("autoconf" ,autoconf)
844 ("automake" ,automake)
845 ("libtool" ,libtool)))
846 (inputs
e74f153a 847 `(("openssl" ,openssl)))
de15ff1a
LF
848 (home-page "https://github.com/vstakhov/asignify")
849 (synopsis "Cryptographic authentication and encryption tool and library")
850 (description "Asignify offers public cryptographic signatures and
851encryption with a library or a command-line tool. The tool is heavily inspired
852by signify as used in OpenBSD. The main goal of this project is to define a
853high level API for signing files, validating signatures and encrypting using
854public-key cryptography. Asignify is designed to be portable and self-contained
855with zero external dependencies. Asignify can verify OpenBSD signatures, but it
856cannot sign messages in OpenBSD format yet.")
857 (license license:bsd-2))))
b5a927b3 858
859(define-public enchive
860 (package
861 (name "enchive")
bc587eb1 862 (version "3.5")
b5a927b3 863 (source (origin
bc587eb1 864 (method git-fetch)
865 (uri (git-reference
866 (url "https://github.com/skeeto/enchive")
867 (commit version)))
868 (sha256
869 (base32
870 "0fdrfc5l42lj2bvmv9dmkmhmm7qiszwk7cmdvnqad3fs7652g0qa"))
871 (file-name (git-file-name name version))))
b5a927b3 872 (build-system gnu-build-system)
873 (arguments
874 '(#:tests? #f ; no check target '
875 #:make-flags (list "CC=gcc" "PREFIX=$(out)")
876 #:phases (modify-phases %standard-phases
877 (delete 'configure)
878 (add-after 'install 'post-install
879 (lambda _
880 (let* ((out (assoc-ref %outputs "out"))
881 (lisp (string-append out "/share/emacs/site-lisp")))
882 (install-file "enchive-mode.el" lisp)
883 #t))))))
884 (synopsis "Encrypted personal archives")
885 (description
886 "Enchive is a tool to encrypt files to yourself for long-term
887archival. It's a focused, simple alternative to more complex solutions such as
888GnuPG or encrypted filesystems. Enchive has no external dependencies and is
889trivial to build for local use. Portability is emphasized over performance.")
890 (home-page "https://github.com/skeeto/enchive")
891 (license license:unlicense)))
6fe6840d
PN
892
893(define-public libsecp256k1
b9676a4b 894 (let ((commit "d644dda5c9dbdecee52d1aa259235510fdc2d4ee"))
6fe6840d
PN
895 (package
896 (name "libsecp256k1")
b9676a4b 897 (version (git-version "20191213" "1" commit))
6fe6840d
PN
898 (source (origin
899 (method git-fetch)
900 (uri (git-reference
901 (url "https://github.com/bitcoin-core/secp256k1")
902 (commit commit)))
903 (sha256
904 (base32
b9676a4b 905 "0zmx32746khsm2cx0p3pdy3j2vkwmafvf7axiixijhgcg0xjv93i"))
6fe6840d
PN
906 (file-name (git-file-name name version))))
907 (build-system gnu-build-system)
908 (native-inputs
909 `(("autoconf" ,autoconf)
910 ("automake" ,automake)
911 ("libtool" ,libtool)))
912 ;; WARNING: This package might need additional configure flags to run properly.
913 ;; See https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/libsecp256k1.
914 (synopsis "C library for EC operations on curve secp256k1")
915 (description
916 "Optimized C library for EC operations on curve secp256k1.
917
918This library is a work in progress and is being used to research best
919practices. Use at your own risk.
920
921Features:
922
923@itemize
924@item secp256k1 ECDSA signing/verification and key generation.
925@item Adding/multiplying private/public keys.
926@item Serialization/parsing of private keys, public keys, signatures.
927@item Constant time, constant memory access signing and pubkey generation.
928@item Derandomized DSA (via RFC6979 or with a caller provided function.)
929@item Very efficient implementation.
930@end itemize\n")
931 (home-page "https://github.com/bitcoin-core/secp256k1")
932 (license license:unlicense))))
c2ab3b84
EB
933
934(define-public stoken
935 (package
936 (name "stoken")
937 (version "0.92")
938 (source (origin
939 (method url-fetch)
940 (uri (string-append "mirror://sourceforge/stoken/"
941 "stoken-" version ".tar.gz"))
942 (sha256
943 (base32
944 "0npgr6y85gzwksy8jkwa4yzvqwjprwnplx3yiw3ayk4f0ldlhaxa"))))
945 (build-system gnu-build-system)
946 (native-inputs
947 `(("pkg-config" ,pkg-config)))
948 (inputs
949 `(("nettle" ,nettle)
950 ("libxml2" ,libxml2)))
951 (home-page "http://stoken.sf.net")
952 (synopsis "Software Token for cryptographic authentication")
953 (description
954 "@code{stoken} is a token code generator compatible with RSA SecurID
955128-bit (AES) tokens. This package contains a standalone command-line program
956that allows for importing token seeds, generating token codes, and various
957utility/testing functions.")
958 (license license:lgpl2.1+)))
cc6731e9
LF
959
960(define-public hpenc
961 (package
962 (name "hpenc")
963 (version "3.0")
964 (source (origin
965 (method git-fetch)
966 (uri (git-reference
967 (url "https://github.com/vstakhov/hpenc")
968 (commit version)))
f1d4d79f 969 (file-name (git-file-name name version))
cc6731e9
LF
970 (sha256
971 (base32
972 "1fb5yi3d2k8kd4zm7liiqagpz610y168xrr1cvn7cbq314jm2my1"))))
973 (build-system gnu-build-system)
974 (arguments
975 `(#:tests? #f ; No test suite
976 #:make-flags
977 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
978 ;; Build the program and the docs.
979 "SUBDIRS=src doc")
980 #:phases
981 (modify-phases %standard-phases
982 (delete 'configure) ; No ./configure script
983 (add-after 'unpack 'patch-path
984 (lambda _
985 (substitute* '("src/Makefile" "doc/Makefile")
986 (("/usr/bin/install")
987 "install"))))
988 (add-before 'install 'make-output-directories
989 (lambda* (#:key outputs #:allow-other-keys)
990 (let* ((out (assoc-ref outputs "out"))
991 (bin (string-append out "/bin"))
992 (man1 (string-append out "/share/man/man1")))
993 (mkdir-p bin)
994 (mkdir-p man1)
995 #t))))))
996 (inputs
997 `(("libsodium" ,libsodium)
998 ("openssl" ,openssl)))
999 (synopsis "High-performance command-line tool for stream encryption")
1000 (description "Hpenc is a command-line tool for performing authenticated
1001encryption (AES-GCM and ChaCha20-Poly1305) of streaming data. It does not
1002perform an asymmetric key exchange, instead requiring the user to distribute
1003pre-shared keys out of band. It is designed to handle large amounts of data
1004quickly by using all your CPU cores and hardware acceleration.")
1005 (home-page "https://github.com/vstakhov/hpenc")
1006 (license license:bsd-3)))
bfaa0617
TLC
1007
1008(define-public minisign
1009 (package
1010 (name "minisign")
1011 (version "0.8")
1012 (source
1013 (origin
1014 (method url-fetch)
1015 (uri
1016 (string-append "https://github.com/jedisct1/minisign/releases/download/"
1017 version "/minisign-" version ".tar.gz"))
1018 (sha256
1019 (base32
1020 "10hhgwxf9rcdlr00shrkcyxndrc22dh5lj8k5z27xg3nc0jba3hk"))))
1021 (build-system cmake-build-system)
1022 (arguments
1023 ; No test suite
1024 `(#:tests? #f))
1025 (native-inputs
1026 `(("pkg-config" ,pkg-config)))
1027 (inputs
1028 `(("libsodium" ,libsodium)))
1029 (home-page "https://jedisct1.github.io/minisign")
1030 (synopsis "Tool to sign files and verify signatures")
1031 (description
1032 "Minisign is a dead simple tool to sign files and verify signatures. It is
1033portable, lightweight, and uses the highly secure Ed25519 public-key signature
1034system. Signature written by minisign can be verified using OpenBSD's
1035signify tool: public key files and signature files are compatible. However,
1036minisign uses a slightly different format to store secret keys. Minisign
1037signatures include trusted comments in addition to untrusted comments.
1038Trusted comments are signed, thus verified, before being displayed.")
1039 (license license:isc)))
20b49f47 1040
1041(define-public libolm
1042 (package
1043 (name "libolm")
1044 (version "3.1.4")
1045 (source (origin
1046 (method git-fetch)
1047 (uri (git-reference
1048 (url "https://git.matrix.org/git/olm")
1049 (commit version)))
1050 (sha256
1051 (base32
1052 "06s7rw4a9vn35wzz7chxn54mp0sjgbpv2bzz9lq0g4hnzw33cjbi"))
1053 (file-name (git-file-name name version))))
1054 (arguments
1055 `(#:phases
1056 (modify-phases %standard-phases
1057 (replace 'check
1058 (lambda _
1059 (invoke "ctest" "build/tests"))))))
1060 (build-system cmake-build-system)
1061 (synopsis "Implementation of the olm and megolm cryptographic ratchets")
1062 (description "The libolm library implements the Double Ratchet
1063cryptographic ratchet. It is written in C and C++11, and exposed as a C
1064API.")
1065 (home-page "https://matrix.org/docs/projects/other/olm/")
1066 (license license:asl2.0)))