SAFE(4) MidnightBSD Kernel Interfaces Manual SAFE(4)


safe — SafeNet crypto accelerator


device safe



The safe driver supports cards containing SafeNet crypto accelerator chips.

The safe driver registers itself to accelerate DES, Triple-DES, AES, MD5-HMAC, SHA1-HMAC, and NULL operations for ipsec(4) and crypto(4).

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. If the driver detects that the hardware RNG is resonating with any local signal, it will reset the oscillators that generate random data. Three sysctl(8) settings control this procedure: specifies the time, in seconds, between polling operations, specifies the number of 32-bit words to retrieve on each poll, and specifies the threshold for resetting the oscillators.

When the driver is compiled with SAFE_DEBUG defined, two sysctl(8) variables are provided for debugging purposes: can be set to a non-zero value to enable debugging messages to be sent to the console for each cryptographic operation, is a write-only variable that can be used to force driver state to be sent to the console. Set this variable 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.


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.

SafeNet 1741

A faster version of the 1141.


crypt(3), crypto(4), intro(4), ipsec(4), random(4), crypto(9)


Public key support is not implemented.

MidnightBSD 0.3 September 12, 2004 MidnightBSD 0.3