← Cryptography guide

K007 / Symmetric ciphers (block and stream)

Camellia

Camellia cipher · Survey date 2026-12-05

Camellia is a symmetric 128-bit block cipher jointly developed by NTT and Mitsubishi Electric in 2000.

CRYPTOGRAPHY LAB / K007

Cryptography Lab · Camellia

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Limited implementation

Camellia-128 (18 rounds)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
Camellia is a symmetric 128-bit block cipher jointly developed by NTT and Mitsubishi Electric in 2000. Source document ↗
Classification and reversibility
A symmetric block cipher, decryptable with the correct secret key. It is not encoding or hashing. Source document ↗
Key or secret requirements
Requires a 128/192/256-bit secret key, which must remain confidential. Source document ↗
Operating principle and structure
Splits a 128-bit block into two 64-bit halves and uses a Feistel structure, F function, FL layers and key whitening. Source document ↗
Key size, block size and parameters
128-bit blocks and 128/192/256-bit keys. Source document ↗
Security strength and recommendation
Rated comparable to AES in security and performance, but less widely researched and deployed. Source document ↗
Known attacks and vulnerabilities
No major flaws or weaknesses were found in limited evaluations. Source document ↗
Standards and certification
Specified in ISO/IEC 18033-3, Japan's CRYPTREC, EU NESSIE and IETF RFC 3713. Source document ↗
Typical uses
Used as a block cipher in communication-security protocols such as TLS cipher suites. Source document ↗
Implementations, libraries and tools
Implemented in various languages and libraries including python-camellia. Source document ↗
Decryption or decoding
Recover plaintext using the same secret key, mode and IV through a decryption API. Source document ↗
Advantages
Its block and key interfaces are the same as AES, making substitution and implementation relatively easy. Source document ↗
Limitations and cautions
Deprecated in some libraries, less researched and deployed than AES; encryption alone may not ensure integrity. Source document ↗
Distinguishing encryption, encoding and hashing
Camellia encryption is a reversible transformation requiring a secret key; it cannot be decrypted without that key. Do not confuse it with encoding or hashing. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Process plaintext in 128-bit blocks using a 128/192/256-bit secret key and mode/IV, produce ciphertext, then decrypt with the same key and mode. When storing as text, apply encoding such as Base64 separately from encryption/decryption.

Procedure

1) Confirm Camellia is a symmetric block cipher and select a secure mode, IV/nonce and padding. 2) Generate and store the secret key securely and create ciphertext using the encryption API. 3) Decrypt with the same key, mode and IV. Encoding/decoding does not require a key, whereas encryption/decryption does.

Scenario

Encrypt and decrypt in environments already requiring Camellia, such as Japanese government or legacy systems, TLS cipher suites, VPN and storage compatibility. For new designs without interoperability requirements, first consider recommended AEAD such as AES-GCM.

Pitfalls and alternatives

Avoid ECB, IV reuse, hardcoded keys and omitting authentication. Prefer vetted AEAD such as AES-GCM or ChaCha20-Poly1305 where possible; if Camellia compatibility is needed, use an authenticated mode or CBC+HMAC.

References