OSSL(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ‘‘ OSSL πŸ‘‘

okay so bestie, real talk β€” this is ossl(4), straight out of the Kernel Interfaces Manual, section 4, and it's genuinely one of those pages that's short but packed. no cap. let's get into it πŸ’…


✨ NAME ✨

ossl β€” the driver that's literally just out here using OpenSSL assembly routines. that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

so if you wanna compile this driver into the kernel, you gotta place these lines in your kernel configuration file, exactly like this:

device crypto
device cryptodev
device ossl

or, alternatively β€” and this is the lowkey easier route β€” if you wanna load the driver as a module at boot time, you put this line in loader.conf(5):

ossl_load="YES"

periodt. that's it. πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the lore: the OpenSSL distribution ships architecture-specific implementations for some of the most commonly used cryptographic algorithms. iconic behaviour, honestly.

and what ossl does is add a wrapper around those routines so that in-kernel cryptography consumers β€” think kernel TLS and IPsec, the main characters β€” can actually use them. it's giving bridge energy. it's giving connector. πŸ”₯

πŸŽ€ architectures it's got implementations for

  • arm64
  • amd64
  • i386

⭐ algorithms it supports

  • AES-CBC
  • AES-GCM (amd64 only β€” yeah, sorry bestie, that's the rule πŸ™ˆ)
  • ChaCha20
  • ChaCha20-Poly1305 (RFC 8439)
  • Poly1305
  • SHA1
  • SHA1-HMAC
  • SHA2-224
  • SHA2-224-HMAC
  • SHA2-256
  • SHA2-256-HMAC
  • SHA2-384
  • SHA2-384-HMAC
  • SHA2-512
  • SHA2-512-HMAC

like, look at that list. fourteen algorithms. it ate and left no crumbs. πŸ‘‘


🌈 SEE ALSO 🌈

go read these next, iykyk:


πŸ’œ HISTORY πŸ’œ

the ossl driver first appeared in FreeBSD 13.0. a whole era. πŸ•°οΈ


πŸ’€ quick reminder bestie: AES-GCM is amd64 only β€” don't come for me if it's not there on your arm64 box, the manpage said it first.

and that's the whole page, bestie β€” no notes! πŸ§šπŸ’–βœ¨

this cutie pie of a page is from the Debian folks, dated May 4, 2023, and it lives at OSSL(4) β€” go forth and encrypt responsibly πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from