Skip to content

3.13.0

Latest

Choose a tag to compare

@etcimon etcimon released this 17 Aug 20:25

Botan 3.13.0 (D)

D package, git tag, and BOTAN_VERSION_* are 3.13.0 (datestamp 20260817). This is a translation of C++ Botan synced toward the 3.13 line.

The TLS API is still the 1.12-era callback/delegate surface (no C++ 3 Callbacks type). A TLS client/server with ALPN, SNI, HTTP/2, TLS 1.2 and opt-in TLS 1.3 lives in vibe.0.

Docs: README · Wiki

TLS / PKI

  • TLS 1.0–1.2. latestTlsVersion() stays 1.2.
  • TLS 1.3 (version(TLS_13), full config): RFC 8446 record/handshake, hello extensions, RFC 8448 vectors. Offer TLS_V13 and use a policy that accepts 1.3 — the default policy still rejects it. version(TLS) does not imply TLS_13.
  • Optional TLS 1.3 PQC hybrids (version(TLS_13_PQC)): X25519MLKEM768 and related groups. Off by default.
  • System and PEM-bundle certificate stores (CertificateStoreSystem, CertificateStoreFlatfile).
  • OCSP HTTP via app-supplied setHttpExchangeHandler (do not follow redirects). vibe.0 wires requestHTTP with maxRedirects = 0.
  • RFC 3779 AS/IP address blocks, name constraints, PKCS #12.

Algorithms

  • Signatures / KEM: Ed25519, Ed448/X448 (64-bit word only), SM2, ECIES, FIPS 203 ML-KEM, FIPS 204 ML-DSA, FIPS 205 SLH-DSA, FrodoKEM, Classic McEliece, XMSS, HSS/LMS, Hybrid KEM.
  • AEAD / hash: GCM-SIV, Ascon-AEAD128, Ascon-Hash256, SHAKE XOF, truncated hashes.
  • KDF / password: HKDF, HKDF-Expand-Label, SP 800-108/56A/56C, Argon2, scrypt, bcrypt.
  • Other: HMAC_DRBG, ChaCha RNG, HOTP/TOTP, SPAKE2+, Roughtime, ZFEC, NIST key wrap.

Historic 1.12 algorithms stay compiled on full. standard is the popular TLS 1.2 + X.509 subset (no TLS 1.3, no PQC).

How to use

dub add botan@~>3.13.0
dub test --compiler=ldc2 --combined --d-version=FocusTests --d-version=Test_TLS

Wrap every new of a Botan class (and loadKey / subjectPublicKey) in Unique!T. memutils DebugAllocator leak probes fail otherwise.

Compilers / CI

Tested on Windows, macOS, and Linux with DMD 2.099.1+ and LDC 1.31+ (CI uses LDC 1.42+).

  • SIMD / AES-NI / ChaCha AVX2 are LDC x86_64 only (versions-x86_64-ldc). DMD compiled those kernels into module constructors and exited STATUS_ILLEGAL_INSTRUCTION / SIGILL at startup.
  • CI: DUB registry memutils ~>1.0.12 plus add-local of etcimon/memutils v1.0.13. Combined build, then one FocusTests family per process.
  • Win32 DMD TLS 1.3 record encrypt no longer AVs (Unique!AEADMode alias-this into template start()).
  • 32-bit DER INTEGER/SEQUENCE length checks use remaining - hdr so a wrapped hdr + n cannot reach BigInt.binaryDecode.
  • Ed448/X448 disabled when BOTAN_MP_WORD_BITS != 64.
  • ChaCha AVX2 x8 kernel is LDC-only.

Notes