Perk-256-Fast-3-R2
Signatures from the permuted kernel problem, a NIST additional-signatures candidate
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 Perk-256-Fast-3-R2
Perk-256-Fast-3-R2 is one of 6 PERK variants in the NextSSL registry, a digital signature scheme. It uses a 314-byte public key, a 346-byte secret key and a 1–33,339-byte signature. It is designed to resist attacks by large quantum computers. 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
PERK is a post-quantum signature scheme built from a zero-knowledge proof of knowledge for a variant of the permuted kernel problem, made non-interactive with the Fiat-Shamir transform. It is a Round 2 candidate in NIST's additional signatures process.
In the permuted kernel problem (PKP), one is given a matrix and a vector and must find a permutation of the vector's entries that places it in the matrix's kernel. PKP has been studied since the 1980s, when Shamir proposed an identification scheme based on it. PERK uses a relaxed multi-vector variant and proves knowledge of the secret permutation with an MPC-in-the-head style protocol in which permutations are secret-shared across simulated parties.
Public keys are small and signatures are a few kilobytes to around ten kilobytes, depending on the profile. Six variants from the Round 2 specification are present: security levels 128, 192 and 256 in the fast profile, each with two internal protocol options labelled 3 and 5 in the specification. The scheme is still evolving as the NIST evaluation process continues.
History
2022–2024NIST calls for additional post-quantum signature schemes
NIST additional signatures on-rampPERK published
40 round-1 candidates published
NIST additional signatures on-ramp14 candidates advance to round 2
NIST additional signatures on-ramp
How it works
- KeyGen samples a secret permutation and publishes the matrix seed and permuted vectors that lie in its kernel.
- Sign secret-shares the permutation across simulated parties and commits to their computations.
- A Fiat-Shamir challenge selects which views to open.
- Verify checks the opened views against the commitments and public key.
Security notes
PKP is an old problem, but the multi-vector variant and PERK's parameters are newer and still under NIST evaluation. The NextSSL wiring has not been verified against official vectors.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 314 | Public key |
| sk | 346 | Secret key |
| sig | 1 – 33,339 | Signature |
| seed | 0 | Seed |
| ctx | 0 | Context string |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, sk = root.call("sign_keygen", "perk-256-fast-3-r2", None, outs=2)
sig = root.call("sign_detached", "perk-256-fast-3-r2", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "perk-256-fast-3-r2", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("perk-256-fast-3-r2", NULL, pk, sk);
nextssl_root_sign_detached("perk-256-fast-3-r2", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("perk-256-fast-3-r2", NULL, pk, msg, ctx, sig);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_sign_in(reg::all(), Policy::Any, "perk-256-fast-3-r2", &Params::new())?;
let (pk, sk) = alg.keygen(&mut *rng)?;
let sig = alg.sign(&sk, b"message")?;
let ok = alg.verify(&pk, b"message", &sig)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other PERK variants
5Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is Perk-256-Fast-3-R2?
Perk-256-Fast-3-R2 is a signature in the PERK family. PERK is a post-quantum signature scheme built from a zero-knowledge proof of knowledge for a variant of the permuted kernel problem, made non-interactive with the Fiat-Shamir transform.
What are the Perk-256-Fast-3-R2 sizes?
In NextSSL, Perk-256-Fast-3-R2 uses: public key 314 bytes, signature 1 to 33,339 bytes.
Is Perk-256-Fast-3-R2 post-quantum?
Yes. Perk-256-Fast-3-R2 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Perk-256-Fast-3-R2 and when?
Perk-256-Fast-3-R2 belongs to the PERK family, first published in 2023. Its origin: NIST additional signatures Round 2.
Is Perk-256-Fast-3-R2 safe to use?
Perk-256-Fast-3-R2 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 PERK variants are there?
NextSSL also registers perk-128-fast-3-r2, perk-128-fast-5-r2, perk-192-fast-3-r2, perk-192-fast-5-r2, perk-256-fast-5-r2 in the PERK family.