BSD Ports

security/monocypher 4.0.3 FreeBSD

Compact cryptographic library in C

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
992294e296
License
BSD2CLAUSE
Categories
security
Package size
109.7 KiB, 257.4 KiB installed

Description

Monocypher is an easy to use crypto library. It is:

  • Small. Sloccount counts about 1700 lines of code, small enough to allow audits. The binaries are under 65KB.

  • Easy to deploy. Just add monocypher.c and monocypher.h to your project. They compile as C99 or C++, have no dependency, and are dedicated to the public domain.

  • Easy to use. The API is small, consistent, and cannot fail on correct input.

  • Fast. The primitives are fast to begin with, and performance wasn't needlessly sacrificed. Monocypher holds up pretty well against Libsodium, despite being closer in size to TweetNaCl.

In the other systems

SystemPortVersion
FreeBSDsecurity/monocypher4.0.3
NetBSDsecurity/monocypher3.1.1nb1
DragonFlysecurity/monocypher4.0.2
HardenedBSDsecurity/monocypher4.0.2
GhostBSDsecurity/monocypher4.0.2

Install

Binary package:

pkg install monocypher

From the ports tree:

cd /usr/ports/security/monocypher/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	monocypher>0:security/monocypher
LIB_DEPENDS=	libmonocypher.so:security/monocypher

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.0.34.0.3-4.0.24.0.3
FreeBSD:14:quarterly4.0.24.0.2n/a4.0.24.0.2
FreeBSD:15:latest4.0.34.0.3n/a4.0.24.0.2
FreeBSD:15:quarterly4.0.24.0.2n/an/an/a
FreeBSD:16:latest4.0.24.0.3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Files

Manual pages 60
  • crypto_aead_init_djb(3)
  • crypto_aead_init_ietf(3)
  • crypto_aead_init_x(3)
  • crypto_aead_lock(3)
  • crypto_aead_read(3)
  • crypto_aead_unlock(3)
  • crypto_aead_write(3)
  • crypto_argon2(3)
  • crypto_blake2b(3)
  • crypto_blake2b_final(3)
  • crypto_blake2b_init(3)
  • crypto_blake2b_keyed(3)
  • crypto_blake2b_keyed_init(3)
  • crypto_blake2b_update(3)
  • crypto_chacha20_djb(3)
  • crypto_chacha20_h(3)
  • crypto_chacha20_ietf(3)
  • crypto_chacha20_x(3)
  • crypto_ed25519_check(3)
  • crypto_ed25519_key_pair(3)
  • crypto_ed25519_ph_check(3)
  • crypto_ed25519_ph_sign(3)
  • crypto_ed25519_sign(3)
  • crypto_eddsa_check(3)
  • crypto_eddsa_check_equation(3)
  • crypto_eddsa_key_pair(3)
  • crypto_eddsa_mul_add(3)
  • crypto_eddsa_reduce(3)
  • crypto_eddsa_scalarbase(3)
  • crypto_eddsa_sign(3)
  • crypto_eddsa_to_x25519(3)
  • crypto_eddsa_trim_scalar(3)
  • crypto_elligator_key_pair(3)
  • crypto_elligator_map(3)
  • crypto_elligator_rev(3)
  • crypto_poly1305(3)
  • crypto_poly1305_final(3)
  • crypto_poly1305_init(3)
  • crypto_poly1305_update(3)
  • crypto_sha512(3)
  • crypto_sha512_final(3)
  • crypto_sha512_hkdf(3)
  • crypto_sha512_hkdf_expand(3)
  • crypto_sha512_hmac(3)
  • crypto_sha512_hmac_final(3)
  • crypto_sha512_hmac_init(3)
  • crypto_sha512_hmac_update(3)
  • crypto_sha512_init(3)
  • crypto_sha512_update(3)
  • crypto_verify16(3)
  • crypto_verify32(3)
  • crypto_verify64(3)
  • crypto_wipe(3)
  • crypto_x25519(3)
  • crypto_x25519_dirty_fast(3)
  • crypto_x25519_dirty_small(3)
  • crypto_x25519_inverse(3)
  • crypto_x25519_public_key(3)
  • crypto_x25519_to_eddsa(3)
  • intro(3)
pkg-plist 66
  • include/monocypher-ed25519.h
  • include/monocypher.h
  • lib/libmonocypher.a
  • lib/libmonocypher.so
  • lib/libmonocypher.so.4
  • libdata/pkgconfig/monocypher.pc
  • share/man/man3/crypto_aead_init_djb.3monocypher.gz
  • share/man/man3/crypto_aead_init_ietf.3monocypher.gz
  • share/man/man3/crypto_aead_init_x.3monocypher.gz
  • share/man/man3/crypto_aead_lock.3monocypher.gz
  • share/man/man3/crypto_aead_read.3monocypher.gz
  • share/man/man3/crypto_aead_unlock.3monocypher.gz
  • share/man/man3/crypto_aead_write.3monocypher.gz
  • share/man/man3/crypto_argon2.3monocypher.gz
  • share/man/man3/crypto_blake2b_final.3monocypher.gz
  • share/man/man3/crypto_blake2b_init.3monocypher.gz
  • share/man/man3/crypto_blake2b_keyed_init.3monocypher.gz
  • share/man/man3/crypto_blake2b_keyed.3monocypher.gz
  • share/man/man3/crypto_blake2b_update.3monocypher.gz
  • share/man/man3/crypto_blake2b.3monocypher.gz
  • share/man/man3/crypto_chacha20_djb.3monocypher.gz
  • share/man/man3/crypto_chacha20_h.3monocypher.gz
  • share/man/man3/crypto_chacha20_ietf.3monocypher.gz
  • share/man/man3/crypto_chacha20_x.3monocypher.gz
  • share/man/man3/crypto_ed25519_check.3monocypher.gz
  • share/man/man3/crypto_ed25519_key_pair.3monocypher.gz
  • share/man/man3/crypto_ed25519_ph_check.3monocypher.gz
  • share/man/man3/crypto_ed25519_ph_sign.3monocypher.gz
  • share/man/man3/crypto_ed25519_sign.3monocypher.gz
  • share/man/man3/crypto_eddsa_check_equation.3monocypher.gz
  • share/man/man3/crypto_eddsa_check.3monocypher.gz
  • share/man/man3/crypto_eddsa_key_pair.3monocypher.gz
  • share/man/man3/crypto_eddsa_mul_add.3monocypher.gz
  • share/man/man3/crypto_eddsa_reduce.3monocypher.gz
  • share/man/man3/crypto_eddsa_scalarbase.3monocypher.gz
  • share/man/man3/crypto_eddsa_sign.3monocypher.gz
  • share/man/man3/crypto_eddsa_to_x25519.3monocypher.gz
  • share/man/man3/crypto_eddsa_trim_scalar.3monocypher.gz
  • share/man/man3/crypto_elligator_key_pair.3monocypher.gz
  • share/man/man3/crypto_elligator_map.3monocypher.gz
  • share/man/man3/crypto_elligator_rev.3monocypher.gz
  • share/man/man3/crypto_poly1305_final.3monocypher.gz
  • share/man/man3/crypto_poly1305_init.3monocypher.gz
  • share/man/man3/crypto_poly1305_update.3monocypher.gz
  • share/man/man3/crypto_poly1305.3monocypher.gz
  • share/man/man3/crypto_sha512_final.3monocypher.gz
  • share/man/man3/crypto_sha512_hkdf_expand.3monocypher.gz
  • share/man/man3/crypto_sha512_hkdf.3monocypher.gz
  • share/man/man3/crypto_sha512_hmac_final.3monocypher.gz
  • share/man/man3/crypto_sha512_hmac_init.3monocypher.gz
  • share/man/man3/crypto_sha512_hmac_update.3monocypher.gz
  • share/man/man3/crypto_sha512_hmac.3monocypher.gz
  • share/man/man3/crypto_sha512_init.3monocypher.gz
  • share/man/man3/crypto_sha512_update.3monocypher.gz
  • share/man/man3/crypto_sha512.3monocypher.gz
  • share/man/man3/crypto_verify16.3monocypher.gz
  • share/man/man3/crypto_verify32.3monocypher.gz
  • share/man/man3/crypto_verify64.3monocypher.gz
  • share/man/man3/crypto_wipe.3monocypher.gz
  • share/man/man3/crypto_x25519_dirty_fast.3monocypher.gz
  • share/man/man3/crypto_x25519_dirty_small.3monocypher.gz
  • share/man/man3/crypto_x25519_inverse.3monocypher.gz
  • share/man/man3/crypto_x25519_public_key.3monocypher.gz
  • share/man/man3/crypto_x25519_to_eddsa.3monocypher.gz
  • share/man/man3/crypto_x25519.3monocypher.gz
  • share/man/man3/intro.3monocypher.gz
distinfo 1
FileSizeSHA256
monocypher-4.0.3.tar.gz9403908cc9bc341a66249016db9bd70e9142d8d0aef9945973744b1ac05dbc55d8ee66
Master sites 1
  • https://monocypher.org/download/

Commit history 1

DateCommitCreditsLog message
992294e296 Dave Cottlehuber security/monocypher: Update to 4.0.3
2026-06-15 Monocypher 4.0.3 is out. Fixed a timing leak vulnerability with public key signatures, fixed compiler warnings, minor documentation fixes. Reported by: portscout Sponsored by: SkunkWerks, GmbH MFH: 2026Q4