Digital signatures

Libecc-Decdsa-Brainpoolp256r1-SHA-256

Deterministic ECDSA over several Brainpool, SEC and GOST curves, classical and not post-quantum

unverified Root API only
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 Libecc-Decdsa-Brainpoolp256r1-SHA-256

Libecc-Decdsa-Brainpoolp256r1-SHA-256 is one of 13 DECDSA (libecc) variants in the NextSSL registry, a digital signature scheme. It uses a 64-byte public key, a 32-byte secret key, a 64-byte signature and a 32-byte seed. Its registry entry cites RFC 6979. 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

DECDSA (libecc) is a classical elliptic-curve signature family with 13 curve and hash variants in NextSSL's record. It is not post-quantum and is included for comparison.

DECDSA (libecc) is a deterministic ECDSA mechanism that derives each per-signature nonce from the secret key and message, as RFC 6979 describes. NextSSL's record groups 13 variants under this family, each pairing the mechanism with a curve and hash, for example brainpoolp256r1-sha256. The curve and hash are the two axes the variant names encode, so the family is best read as a grid of curve and hash choices.

The listed Brainpool variants have public keys of 64 to 128 bytes and signatures from 64 to 128 bytes, with sizes rising with the curve. The other 9 variants in the record cover SEC, GOST and French FRP curves. Standards referenced are RFC 6979. Sizes follow the field length, so the 256-bit curves give the shortest keys and signatures in each family.

This family is classical elliptic-curve cryptography. A large quantum computer running Shor's algorithm would break the discrete logarithm problem it relies on, so these entries are not post-quantum. They are kept for comparison and for interoperability with the named standards, and the record is unverified. Teams that need only one curve should use the matching variant rather than the whole family.

History

2013–2013
  1. Specified in RFC 6979

How it works

  1. KeyGen picks a random secret scalar and publishes the matching elliptic-curve point as the public key.
  2. Sign derives a nonce, computes a curve point and combines it with the hash of the message to form the signature values.
  3. Verify recomputes the curve point from the signature and public key and checks the result against the hashed message.

Security notes

The mechanism is classical and broken by a large quantum computer. The record is unverified, and the curve choice is the main security parameter.

Typical uses

Interoperability with RFC 6979 profilesComparing classical elliptic-curve signature designs

Sizes

FieldBytesMeaning
pk64Public key
sk32Secret key
sig64Signature
seed32Seed
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", "libecc-decdsa-brainpoolp256r1-sha256", None, outs=2)
sig = root.call("sign_detached", "libecc-decdsa-brainpoolp256r1-sha256", None, sk, b"message", b"")[0]
ok  = root.check("verify_detached", "libecc-decdsa-brainpoolp256r1-sha256", 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 Libecc-Decdsa-Brainpoolp256r1-SHA-256?

Libecc-Decdsa-Brainpoolp256r1-SHA-256 is a signature in the DECDSA (libecc) family. DECDSA (libecc) is a classical elliptic-curve signature family with 13 curve and hash variants in NextSSL's record.

What are the Libecc-Decdsa-Brainpoolp256r1-SHA-256 sizes?

In NextSSL, Libecc-Decdsa-Brainpoolp256r1-SHA-256 uses: public key 64 bytes, signature 64 bytes.

Is Libecc-Decdsa-Brainpoolp256r1-SHA-256 post-quantum?

No. Libecc-Decdsa-Brainpoolp256r1-SHA-256 is a classical signature based on elliptic curves or discrete logarithms, which a large quantum computer running Shor's algorithm could break. For post-quantum use, look at ML-DSA or SLH-DSA.

Who designed Libecc-Decdsa-Brainpoolp256r1-SHA-256 and when?

Libecc-Decdsa-Brainpoolp256r1-SHA-256 belongs to the DECDSA (libecc) family, first published in 2013 by Thomas Pornin (RFC 6979). Its origin: Deterministic ECDSA, RFC 6979.

Which standards define Libecc-Decdsa-Brainpoolp256r1-SHA-256?

Libecc-Decdsa-Brainpoolp256r1-SHA-256 is referenced by RFC 6979.

Is Libecc-Decdsa-Brainpoolp256r1-SHA-256 safe to use?

Libecc-Decdsa-Brainpoolp256r1-SHA-256 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 DECDSA (libecc) variants are there?

NextSSL also registers libecc-decdsa-brainpoolp320r1-sha384, libecc-decdsa-brainpoolp384r1-sha384, libecc-decdsa-brainpoolp512r1-sha512, libecc-decdsa-frp256v1-sha256, libecc-decdsa-gost2001-cryptopro-a-streebog256, libecc-decdsa-gost256-streebog256 and more in the DECDSA (libecc) family.