Repository navigation
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.
TLS / PKI
- TLS 1.0–1.2.
latestTlsVersion()stays 1.2. - TLS 1.3 (
version(TLS_13),fullconfig): RFC 8446 record/handshake, hello extensions, RFC 8448 vectors. OfferTLS_V13and use a policy that accepts 1.3 — the default policy still rejects it.version(TLS)does not implyTLS_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 wiresrequestHTTPwithmaxRedirects = 0. - RFC 3779 AS/IP address blocks, name constraints, PKCS #12.
Algorithms
- Signatures / KEM: Ed25519, Ed448/X448 (64-bit
wordonly), 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 exitedSTATUS_ILLEGAL_INSTRUCTION/ SIGILL at startup. - CI: DUB registry
memutils ~>1.0.12plusadd-localof etcimon/memutilsv1.0.13. Combined build, then one FocusTests family per process. - Win32 DMD TLS 1.3 record encrypt no longer AVs (
Unique!AEADModealias-this into templatestart()). - 32-bit DER INTEGER/SEQUENCE length checks use
remaining - hdrso a wrappedhdr + ncannot reachBigInt.binaryDecode. - Ed448/X448 disabled when
BOTAN_MP_WORD_BITS != 64. - ChaCha AVX2 x8 kernel is LDC-only.
Notes
- Four TLS I/O delegates are frozen (vibe.0 contract).
- SCAN/factory + inheritance is how missing algorithms are added; nothing is retired.
- Wiki: https://github.com/etcimon/botan/wiki