ICE-2
Matthew Kwan's DES-like cipher with key-dependent bit permutations
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About ICE-2
ICE-2 is one of 3 ICE variants in the NextSSL registry, a block cipher. It uses a 16-byte (128-bit) key and an 8-byte (64-bit) block. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
ICE (Information Concealment Engine) is a 64-bit block cipher published by Matthew Kwan in 1997. It resembles DES but adds a key-dependent permutation to frustrate differential and linear cryptanalysis.
ICE is a Feistel network whose round function expands the right half, applies a keyed permutation that swaps bits selected by part of the round key, XORs further key material, and passes the result through S-boxes. Standard ICE uses 16 rounds and a 64-bit key; Thin-ICE uses 8 rounds and the same key; ICE-n uses 16n rounds with a 64n-bit key, so ICE-2 has 32 rounds and a 128-bit key.
NextSSL includes ICE, ICE-2 and Thin-ICE entries wired from source and not yet verified. ICE was designed as a hobbyist-accessible improvement on DES rather than through a formal evaluation process, and it saw little use outside a few games and applications. Its keyed permutation idea is the main reason it is still discussed. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.
History
1997–1997ICE published by Matthew Kwan
Security notes
Differential attacks on Thin-ICE are practical, and attacks on reduced-round ICE have been published. ICE has received little analysis and should be regarded as a research cipher only.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| block | 8 | Block |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
block = root.call("blockcipher_encrypt", "ice-2", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("ice-2", NULL, key, block, out); /* exactly one block */
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_blockcipher_in(reg::all(), Policy::Any, "ice-2", &Params::new())?;
let out = alg.encrypt_block(&key, &block)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other ICE variants
2More block ciphers
All 84Frequently asked questions
What is ICE-2?
ICE-2 is a block cipher in the ICE family. ICE (Information Concealment Engine) is a 64-bit block cipher published by Matthew Kwan in 1997.
What are the ICE-2 sizes?
In NextSSL, ICE-2 uses: key 16 bytes, block 8 bytes.
Who designed ICE-2 and when?
ICE-2 belongs to the ICE family, first published in 1997 by Matthew Kwan.
Is ICE-2 safe to use?
ICE-2 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other ICE variants are there?
NextSSL also registers ice, thin-ice in the ICE family.