Camellia-256
The Mitsubishi–NTT 128-bit Feistel cipher endorsed by NESSIE, CRYPTREC and ISO
About Camellia-256
Camellia-256 is one of 3 Camellia variants in the NextSSL registry, a block cipher. It uses a 32-byte (256-bit) key and a 16-byte (128-bit) block. Its registry entry cites RFC 3713, ISO/IEC 18033-3 and NESSIE. NextSSL lists it in the standard tier and exposes it through the safe API.
Overview
Camellia is a block cipher developed jointly by Mitsubishi Electric and NTT in 2000. It offers security and performance comparable to AES, has been approved by the EU NESSIE project and Japan's CRYPTREC, and is standardised in ISO/IEC 18033-3 and RFC 3713.
Camellia is an 18-round (128-bit key) or 24-round (192- and 256-bit keys) Feistel network with a 128-bit block. Its F-function applies a key XOR, eight 8-bit S-boxes derived from inversion in GF(2^8), and a byte-wise linear P-function. Every six rounds, key-dependent FL and FL⁻¹ layers are inserted to break the regularity of the Feistel structure and complicate attacks.
NextSSL includes Camellia-128, Camellia-192 and Camellia-256. Camellia cipher suites are defined for TLS and it is supported by OpenSSL, GnuPG and many embedded stacks. Its 128-bit block, key sizes and API match AES, so it can be swapped into AES-based modes such as GCM, CCM and CBC without changes. Japanese government guidelines list it among recommended ciphers.
History
2000–2004Camellia published by Mitsubishi Electric and NTT
European NESSIE project opens its call for primitives
NESSIE projectNESSIE portfolio published
NESSIE projectSpecified in RFC 3713
Security notes
No practical attacks on full Camellia are known. Like AES, table-based software implementations can leak through cache timing.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | Secret key |
| block | 16 | Block |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
block = ns.call("blockcipher_encrypt", "camellia-256", None, key, plaintext_block)[0]
nextssl_blockcipher_encrypt("camellia-256", 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::Safe, "camellia-256", &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 Camellia variants
2Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is Camellia-256?
Camellia-256 is a block cipher in the Camellia family. Camellia is a block cipher developed jointly by Mitsubishi Electric and NTT in 2000.
What are the Camellia-256 sizes?
In NextSSL, Camellia-256 uses: key 32 bytes, block 16 bytes.
Who designed Camellia-256 and when?
Camellia-256 belongs to the Camellia family, first published in 2000 by Mitsubishi Electric and NTT. Its origin: NESSIE; CRYPTREC; ISO/IEC 18033-3; RFC 3713.
Which standards define Camellia-256?
Camellia-256 is referenced by RFC 3713, ISO/IEC 18033-3, NESSIE.
Is Camellia-256 safe to use?
Camellia-256 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.
What other Camellia variants are there?
NextSSL also registers camellia-128, camellia-192 in the Camellia family.