Digital signatures

SPHINCS-Haraka-128s-R1

Round 1 stateless hash-based signatures using Haraka and SHAKE256 at three levels

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 SPHINCS-Haraka-128s-R1

SPHINCS-Haraka-128s-R1 is one of 12 SPHINCS+ (round 1) variants in the NextSSL registry, a digital signature scheme. It uses a 32-byte public key, a 64-byte secret key and a 1–8,080-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

The round 1 SPHINCS+ submission is a stateless hash-based signature with Haraka and SHAKE256 instantiations at three levels, in fast and small settings. It is the first-round ancestor of the round 2 and FIPS 205 designs.

The round 1 SPHINCS+ submission is a stateless hash-based signature built from a hypertree of Merkle trees, few-time signatures for the message digest, and one-time signatures at the bottom layer. Its security depends only on the hash functions, so it does not rely on lattice or number-theoretic problems. This is the design that later became the basis of the standard hash-based signature in FIPS 205.

NextSSL's record lists sphincs-haraka-128f-r1, sphincs-haraka-128s-r1, sphincs-haraka-192f-r1 and sphincs-haraka-192s-r1, with eight others among the Haraka 256 and SHAKE256 variants. The 128-bit fast set has 32-byte public keys and signatures of up to 16976 bytes, and the 128-bit small set has signatures of up to 8080 bytes. At 192 bits, the fast and small sets give signatures of up to 35664 and 17064 bytes.

The round 1 design was revised for round 2 and then standardised as SLH-DSA in FIPS 205 without Haraka. The round 1 records are unverified and should be used only for research and comparison. The Haraka and SHAKE256 instantiations show that the hash choice changes implementation details, not the basic hypertree structure.

History

2015–2025
  1. Original SPHINCS published at EUROCRYPT

  2. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  3. SPHINCS+ submitted to NIST PQC

  4. 26 candidates advance to round 2

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

    NIST Post-Quantum Cryptography standardisation
  6. SPHINCS+ selected by NIST

  7. Standardised as SLH-DSA in FIPS 205

  8. HQC selected as a second KEM

    NIST Post-Quantum Cryptography standardisation

How it works

  1. KeyGen derives a hypertree whose root is the public key from random seeds.
  2. Sign produces a few-time signature over the message digest and authenticates it through the hypertree layers.
  3. Verify rebuilds the authentication path to the root and compares it with the public key.

Security notes

The construction is conservative, but the round 1 parameters and the Haraka instantiation were later revised. The record is unverified.

Typical uses

Historical comparison with the standardised SLH-DSA parametersResearch on hash-based signature sizes at different levels

Sizes

FieldBytesMeaning
pk32Public key
sk64Secret key
sig1 – 8,080Signature
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", "sphincs-haraka-128s-r1", None, outs=2)
sig = root.call("sign_detached", "sphincs-haraka-128s-r1", None, sk, b"message", b"")[0]
ok  = root.check("verify_detached", "sphincs-haraka-128s-r1", None, pk, b"message", b"", sig)

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

Frequently asked questions

What is SPHINCS-Haraka-128s-R1?

SPHINCS-Haraka-128s-R1 is a signature in the SPHINCS+ (round 1) family. The round 1 SPHINCS+ submission is a stateless hash-based signature with Haraka and SHAKE256 instantiations at three levels, in fast and small settings.

What are the SPHINCS-Haraka-128s-R1 sizes?

In NextSSL, SPHINCS-Haraka-128s-R1 uses: public key 32 bytes, signature 1 to 8,080 bytes.

Is SPHINCS-Haraka-128s-R1 post-quantum?

Yes. SPHINCS-Haraka-128s-R1 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.

Who designed SPHINCS-Haraka-128s-R1 and when?

SPHINCS-Haraka-128s-R1 belongs to the SPHINCS+ (round 1) family, first published in 2017 by Daniel J. Bernstein, Andreas Hulsing, Stefan Kolbl, Ruben Niederhagen, Joost Rijneveld, Peter Schwabe. Its origin: NIST PQC standardisation, round 1 submission.

Is SPHINCS-Haraka-128s-R1 safe to use?

SPHINCS-Haraka-128s-R1 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 SPHINCS+ (round 1) variants are there?

NextSSL also registers sphincs-haraka-128f-r1, sphincs-haraka-192f-r1, sphincs-haraka-192s-r1, sphincs-haraka-256f-r1, sphincs-haraka-256s-r1, sphincs-shake256-128f-r1 and more in the SPHINCS+ (round 1) family.