SAFE(4)
π SAFE(4) β the SafeNet crypto accelerator, but make it a group chat π
okay bestie, sit DOWN, because this is safe(4) from the Kernel Interfaces Manual, and she is that girl. crypto but make it hardware. periodt.
β¨ NAME β¨
safe β SafeNet crypto accelerator π
πΈ SYNOPSIS πΈ
so like, you want this driver in your kernel? iconic. drop these lines in your kernel config file:
device crypto
device cryptodev
device safe
orrrr if you're feeling module-at-boot-time energy, put this in loader.conf(5):
safe_load="YES"
and then there's the sysctl besties, the little knobs you can peek at:
sysctl hw.safe.debug
sysctl hw.safe.dump
sysctl hw.safe.rnginterval
sysctl hw.safe.rngbufsize
sysctl hw.safe.rngmaxalarm
π DESCRIPTION π
The safe driver supports cards containing SafeNet crypto accelerator chips. yes literally, it's giving accelerator core.
The safe driver registers itself to accelerate DES, Triple-DES, AES, MD5-HMAC, SHA1-HMAC, and NULL operations for ipsec(4) and crypto(4). she does it ALL, no cap.
On all models, the driver registers itself to provide random data to the random(4) subsystem. Periodically the driver will poll the hardware RNG and retrieve data for use by the system. and if the driver detects that the hardware RNG is resonating with any local signal? she panics a little and resets the oscillators that generate random data. so dramatic, but fair. π¦
Three sysctl(8) settings control this whole procedure:
hw.safe.rngintervalβ specifies the time, in seconds, between polling operationshw.safe.rngbufsizeβ specifies the number of 32-bit words to retrieve on each pollhw.safe.rngmaxalarmβ specifies the threshold for resetting the oscillators
π debugging era π
When the driver is compiled with SAFE_DEBUG defined, two sysctl(8) variables are provided for debugging purposes:
hw.safe.debugβ can be set to a non-zero value to enable debugging messages to be sent to the console for each cryptographic operationhw.safe.dumpβ a write-only variable that can be used to force driver state to be sent to the console
Set hw.safe.dump to βringβ to dump the current state of the descriptor ring, to βdmaβ to dump the hardware DMA registers, or to βintβ to dump the hardware interrupt registers. choose your fighter, bestie. π
π HARDWARE π
The safe driver supports cards containing any of the following chips:
- SafeNet 1141 β The original chipset. Supports DES, Triple-DES, AES, MD5, and SHA-1 symmetric crypto operations, RNG, public key operations, and full IPsec packet processing. the blueprint, the blueprint, the original main character π
- SafeNet 1741 β A faster version of the 1141. glow up confirmed β¨
π«Ά SEE ALSO π«Ά
crypt(3), crypto(4), intro(4), ipsec(4), random(4), crypto(9)
π BUGS π
Public key support is not implemented.
not me reading this and gasping. it's literally right there in the hardware list and yetβ¦ not implemented. we simply do not have it. π
mwah π that's the whole page, and yes she came from the Debian crew β this version is dated April 1, 2006, filed under SAFE(4). stan a 2006 icon. byeeee π§ββοΈ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2003 Sam Leffler, Errno Consulting
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms