Digital signatures

Mayo-2-R2

Oil-and-vinegar multivariate signatures with much smaller public keys than classic UOV

unverified Root API only Post-quantum
Unverified tier.

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-2-R2

Mayo-2-R2 is one of 4 MAYO variants in the NextSSL registry, a digital signature scheme. It uses a 4,912-byte public key, a 24-byte secret key and a 1–186-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–2025
  1. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  2. 69 complete round-1 submissions published

    NIST Post-Quantum Cryptography standardisation
  3. 26 candidates advance to round 2

    NIST Post-Quantum Cryptography standardisation
  4. Round 3 finalists and alternates announced

    NIST Post-Quantum Cryptography standardisation
  5. MAYO published by Ward Beullens

  6. Kyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens

    NIST Post-Quantum Cryptography standardisation
  7. NIST calls for additional post-quantum signature schemes

    NIST additional signatures on-ramp
  8. 40 round-1 candidates published

    NIST additional signatures on-ramp
  9. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published

    NIST Post-Quantum Cryptography standardisation
  10. 14 candidates advance to round 2

    NIST additional signatures on-ramp
  11. HQC selected as a second KEM

    NIST Post-Quantum Cryptography standardisation

How it works

  1. KeyGen derives a public system of quadratic equations from a secret oil-and-vinegar structure, with the secret stored compactly.
  2. Sign hashes the message with a salt to a target vector, then solves the linear system for the oil variables using the secret.
  3. The solution forms the signature, and the randomised salt stops the same message from producing the same signature.
  4. 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

Signatures where small signatures matter more than the size of the public keyResearch on compressed UOV-style public keys

Sizes

FieldBytesMeaning
pk4,912Public key
sk24Secret key
sig1 – 186Signature
seed0Seed
ctx0Context 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-2-r2", None, outs=2)
sig = root.call("sign_detached", "mayo-2-r2", None, sk, b"message", b"")[0]
ok  = root.check("verify_detached", "mayo-2-r2", None, pk, b"message", b"", sig)

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other MAYO variants

3

Frequently asked questions

What is Mayo-2-R2?

Mayo-2-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-2-R2 sizes?

In NextSSL, Mayo-2-R2 uses: public key 4,912 bytes, signature 1 to 186 bytes.

Is Mayo-2-R2 post-quantum?

Yes. Mayo-2-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-2-R2 and when?

Mayo-2-R2 belongs to the MAYO family, first published in 2021 by Ward Beullens. Its origin: NIST PQC additional signatures, round 2.

Is Mayo-2-R2 safe to use?

Mayo-2-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-1-r2, mayo-3-r2, mayo-5-r2 in the MAYO family.