SAFER
James Massey's byte-oriented cipher family, including SAFER+ used in Bluetooth pairing
Overview
SAFER (Secure And Fast Encryption Routine) is a family of byte-oriented block ciphers designed by James Massey starting in 1993. Members include SAFER K-64, SAFER K-128, SAFER SK-64, SAFER SK-128 and the 128-bit-block SAFER+.
SAFER ciphers operate on bytes using exponentiation and logarithm tables modulo 257 as non-linear layers, alternating XOR and addition for key mixing, and a Pseudo-Hadamard Transform network for diffusion. The original K-64 had a 64-bit block and key. After Lars Knudsen found a key-schedule weakness, the SK (strengthened key) variants were introduced. SAFER+ extended the design to a 128-bit block as an AES candidate, and a modified version is used in Bluetooth's legacy authentication functions.
NextSSL includes SAFER K-64, K-128, SK-64, SK-128 and SAFER+ entries wired from source and not yet verified. SAFER+ is no longer used in modern Bluetooth Secure Connections, which rely on AES and elliptic curves instead. The family remains of interest mainly to researchers studying byte-oriented designs. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.
History
1993–1993SAFER published by James Massey
Security notes
The K variants have known key-schedule weaknesses and should not be used. No practical attack on full SAFER+ is known, but the family is dated and little analysed by modern standards.
Typical uses
Variants in NextSSL
5| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Safer-K128 safer-k128 |
unverified | key 16 · block 8 | — | root |
| Safer-K64 safer-k64 |
unverified | key 8 · block 8 | — | root |
| Safer+ safer-plus |
unverified | key 16–32 · block 16 | — | root |
| Safer-SK128 safer-sk128 |
unverified | key 16 · block 8 | — | root |
| Safer-SK64 safer-sk64 |
unverified | key 8 · block 8 | — | root |
Frequently asked questions
Which SAFER variants does NextSSL include?
NextSSL registers 5 SAFER variants: safer-k128, safer-k64, safer-plus, safer-sk128, safer-sk64.