Mayo-1-R2
Oil-and-vinegar multivariate signatures with much smaller public keys than classic UOV
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 Mayo-1-R2
Mayo-1-R2 is one of 4 MAYO variants in the NextSSL registry, a digital signature scheme. It uses a 1,420-byte public key, a 24-byte secret key and a 1–454-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
MAYO is a multivariate signature scheme derived from Unbalanced Oil and Vinegar that keeps public keys far smaller than classic UOV. Its round 2 record gives four parameter sets that trade public key size against signature size.
MAYO is a multivariate signature scheme derived from the Unbalanced Oil and Vinegar (UOV) construction. A signer solves a random system of quadratic equations whose solution depends on the message and a salt, using a secret set of oil variables. The design changes the UOV structure so that the public key is much smaller than classic UOV keys, which are often tens of kilobytes.
NextSSL's record lists four round 2 sets. MAYO-1 has a 1420-byte public key and signatures of up to 454 bytes. MAYO-2 has a 4912-byte public key and signatures of up to 186 bytes. MAYO-3 has a 2986-byte public key and signatures of up to 681 bytes, and MAYO-5 has a 5554-byte public key and signatures of up to 964 bytes. Private keys are 24 to 40 bytes. The MAYO-2 set shows the trade most clearly: the smallest signatures, but a much larger public key than MAYO-1.
MAYO is an additional-signatures candidate that reached round 2. Multivariate candidates have a history of parameter-level breaks, and Rainbow, a related UOV-based scheme, was broken during the NIST process. The round 2 parameters should therefore be treated as subject to change. The round 2 status means the parameter sets may still change, so the figures here should be checked against the latest submission before use.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisation69 complete round-1 submissions published
NIST Post-Quantum Cryptography standardisation26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationMAYO published by Ward Beullens
Kyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens
NIST Post-Quantum Cryptography standardisationNIST calls for additional post-quantum signature schemes
NIST additional signatures on-ramp40 round-1 candidates published
NIST additional signatures on-rampFIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published
NIST Post-Quantum Cryptography standardisation14 candidates advance to round 2
NIST additional signatures on-rampHQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- KeyGen derives a public system of quadratic equations from a secret oil-and-vinegar structure, with the secret stored compactly.
- Sign hashes the message with a salt to a target vector, then solves the linear system for the oil variables using the secret.
- The solution forms the signature, and the randomised salt stops the same message from producing the same signature.
- Verify evaluates the public quadratic system on the signature and checks that it equals the hashed target.
Security notes
Multivariate schemes have a mixed record in the NIST process and the round 2 parameters may change. The record is unverified, and implementations need care with constant-time linear algebra.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,420 | Public key |
| sk | 24 | Secret key |
| sig | 1 – 454 | 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", "mayo-1-r2", None, outs=2)
sig = root.call("sign_detached", "mayo-1-r2", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "mayo-1-r2", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("mayo-1-r2", NULL, pk, sk);
nextssl_root_sign_detached("mayo-1-r2", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("mayo-1-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, "mayo-1-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 MAYO variants
3More digital signatures
All 503Frequently asked questions
What is Mayo-1-R2?
Mayo-1-R2 is a signature in the MAYO family. MAYO is a multivariate signature scheme derived from Unbalanced Oil and Vinegar that keeps public keys far smaller than classic UOV.
What are the Mayo-1-R2 sizes?
In NextSSL, Mayo-1-R2 uses: public key 1,420 bytes, signature 1 to 454 bytes.
Is Mayo-1-R2 post-quantum?
Yes. Mayo-1-R2 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Mayo-1-R2 and when?
Mayo-1-R2 belongs to the MAYO family, first published in 2021 by Ward Beullens. Its origin: NIST PQC additional signatures, round 2.
Is Mayo-1-R2 safe to use?
Mayo-1-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 MAYO variants are there?
NextSSL also registers mayo-2-r2, mayo-3-r2, mayo-5-r2 in the MAYO family.
Related families
Round 1 multivariate signature whose identifiers give its maximum signature size in bytes
HAWK (round 1)Lattice signature based on the lattice isomorphism problem, with three dimensions of compact keys
LUOVLifted Unbalanced Oil and Vinegar, a multivariate signature with a 32-byte private key
MQDSSFiat-Shamir signatures from the multivariate quadratic problem, with large signatures and tiny keys
MQOMMQ-based signatures using MPC-in-the-head, offered over GF(2) and GF(256) in several categories