Cham-128
A lightweight ARX block cipher family from ICISC 2017, in 64-bit and 128-bit block forms
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 Cham-128
Cham-128 is one of 2 CHAM variants in the NextSSL registry, a block cipher. It uses a 16–32-byte key and a 16-byte (128-bit) block. Its registry entry cites CHAM-128/128 and CHAM-128/256 (Koo et al., ICISC 2017), Crypto++ implementation. 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
CHAM is a family of lightweight block ciphers built from add-rotate-xor operations, proposed by Koo and colleagues at ICISC 2017. NextSSL carries a 64-bit block variant and a 128-bit block variant, with key sizes from 16 to 32 bytes. Each is marked unverified and comes from a Crypto++ implementation.
CHAM is a lightweight block cipher family proposed by Koo and colleagues at ICISC 2017. It uses only addition modulo a word size, rotation and XOR, the ARX operations that are cheap in both hardware and software and avoid table lookups. This makes CHAM suited to small devices where S-box tables are costly.
NextSSL archives two entries. CHAM-64 uses a 16-byte key and an 8-byte block, following the CHAM-64/128 specification. CHAM-128 uses a 16 to 32-byte key and a 16-byte block, covering the CHAM-128/128 and CHAM-128/256 specifications. Both come from Crypto++.
The unverified tier is the archive's review status. ARX ciphers of this kind are commonly analysed in reduced-round form, and the 64-bit block of CHAM-64 brings the birthday bound into play at around 2 to the power of 32 blocks per key.
History
2017–2017CHAM published by Koo and colleagues, ICISC 2017
How it works
- The key is expanded into round keys that feed the cipher's round function.
- Each round combines the state words with modular addition, XOR and fixed rotations.
- Decryption runs the same rounds in reverse using the inverse operations.
Security notes
Unverified in NextSSL. Reduced-round attacks are common for ARX designs, and the 64-bit block of CHAM-64 limits data per key to about 2 to the power of 32 blocks.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 – 32 | Secret key |
| block | 16 | 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", "cham-128", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("cham-128", 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, "cham-128", &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 CHAM variants
1Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is Cham-128?
Cham-128 is a block cipher in the CHAM family. CHAM is a family of lightweight block ciphers built from add-rotate-xor operations, proposed by Koo and colleagues at ICISC 2017.
What are the Cham-128 sizes?
In NextSSL, Cham-128 uses: key 16 to 32 bytes, block 16 bytes.
Who designed Cham-128 and when?
Cham-128 belongs to the CHAM family, first published in 2017 by Koo and colleagues, ICISC 2017. Its origin: ICISC 2017 (CHAM-128/128, CHAM-128/256 and CHAM-64/128).
Which standards define Cham-128?
Cham-128 is referenced by CHAM-128/128 and CHAM-128/256 (Koo et al., ICISC 2017), Crypto++ implementation.
Is Cham-128 safe to use?
Cham-128 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 CHAM variants are there?
NextSSL also registers cham-64 in the CHAM family.
Related families
Compact CFB-based AEAD modes for small block ciphers; CAESAR round 3
AESThe Advanced Encryption Standard: the world's default 128-bit block cipher
LEAKorea's lightweight 128-bit ARX block cipher, standardised in ISO/IEC 29192-2
SIMECKA lightweight Feistel block cipher combining the SIMON round function with SPECK-style key schedule
SIMONThe NSA's 2013 lightweight Feistel block cipher family, in 64-bit and 128-bit block forms