Pyjamask
Masking-friendly block ciphers in OCB mode; NIST LWC round 2
Overview
Pyjamask is a lightweight authenticated cipher that pairs masking-friendly block ciphers with OCB mode. It was a second-round candidate in the NIST Lightweight Cryptography process.
The Pyjamask-96 and Pyjamask-128 block ciphers minimise the number of nonlinear AND operations per round, since that count dominates the cost of higher-order masking against side-channel attacks. Linear layers use binary circulant matrices. The AEAD mode is OCB, giving a parallelisable single-pass scheme.
NextSSL includes Pyjamask-128-AEAD and Pyjamask-96-AEAD under the pyjamask family and as version 1 builds. Unmasked, Pyjamask is slower than ciphers optimised for raw speed; its advantage appears only when several masking shares are required.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectPyjamask published
56 round-1 candidates accepted; 32 advance to round 2 in August
NIST Lightweight Cryptography projectTen finalists announced
NIST Lightweight Cryptography projectAscon selected as the lightweight standard
NIST Lightweight Cryptography projectAscon published in NIST SP 800-232
NIST Lightweight Cryptography project
Security notes
Requires unique nonces, as with OCB. The 96-bit instance has a lower birthday bound. Pyjamask's unmasked performance is low; its value lies in masked implementations.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Pyjamask128aeadv1 pyjamask128aeadv1 |
unverified | key 16 · nonce 12 · tag 16 | — | root |
Frequently asked questions
Which Pyjamask variants does NextSSL include?
NextSSL registers 1 Pyjamask variant: pyjamask128aeadv1.
Families with similar names
Other authenticated encryption
All 392Related
Leakage-resilient permutation-based AEAD designed against DPA; NIST LWC finalist
SKINNY-AEADTheta-CB3 (OCB-style) mode on the SKINNY tweakable block cipher; NIST LWC round 2
SpookLeakage-resistant AEAD on Clyde-128 and the Shadow permutation; NIST LWC round 2
SKINNY-HashThe hash functions of the SKINNY-AEAD submission, built from the SKINNY block cipher