From ea10946c77344360f8699f706775870fe514eecc Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 20:11:58 -0300 Subject: [PATCH 1/3] hash: the BearSSL canary and capability table name the pin 32381d6, webcpporg/bearssl's webcpp branch --- doc/backends.adoc | 144 +++++++++++----------- doc/capabilities.json | 34 ++--- doc/generated/backends-argon2.adoc | 6 +- doc/generated/backends-argon2id.adoc | 2 +- doc/generated/backends-bcrypt-pbkdf.adoc | 2 +- doc/generated/backends-bcrypt.adoc | 2 +- doc/generated/backends-blake2-mac.adoc | 2 +- doc/generated/backends-blake2.adoc | 4 +- doc/generated/backends-hkdf.adoc | 8 +- doc/generated/backends-hmac.adoc | 48 ++++---- doc/generated/backends-kbkdf.adoc | 2 +- doc/generated/backends-keccak-256.adoc | 8 +- doc/generated/backends-kmac.adoc | 4 +- doc/generated/backends-md5-sha1-sha2.adoc | 16 +-- doc/generated/backends-pbkdf2.adoc | 2 +- doc/generated/backends-ripemd.adoc | 2 +- doc/generated/backends-scrypt.adoc | 2 +- doc/generated/backends-sha3-shake.adoc | 14 +-- doc/generated/backends-siphash.adoc | 2 +- doc/generated/backends-skein.adoc | 2 +- doc/generated/backends-sm3.adoc | 2 +- doc/generated/backends-sskdf.adoc | 2 +- doc/generated/backends-streebog.adoc | 4 +- doc/generated/backends-whirlpool.adoc | 2 +- doc/generated/backends-x963kdf.adoc | 2 +- doc/generated/choose.adoc | 24 ++-- doc/llms.txt | 132 ++++++++++---------- include/webcpp/hash/detail/canary.h | 2 +- test/link/bearssl.cpp | 2 +- 29 files changed, 239 insertions(+), 239 deletions(-) diff --git a/doc/backends.adoc b/doc/backends.adoc index 1adfd12..4a6e9dc 100644 --- a/doc/backends.adoc +++ b/doc/backends.adoc @@ -45,7 +45,7 @@ states about its constant time. The backends: | every function of its cells | bearssl -| BearSSL at 7bea48e (v0.6-39) +| BearSSL at 32381d6 (webcpporg/bearssl's webcpp branch: upstream 7bea48e (v0.6-39) plus one ECDSA fix that does not touch hashing) | MIT | `/third_party//bearssl` | native, wasip2, wasip3, emscripten @@ -63,7 +63,7 @@ states about its constant time. The backends: | BSD-2-Clause | `/third_party//botan` | native, emscripten -| every function of its cells, with exceptions only +| every function of its cells | webcrypto | the JavaScript runtime's Web Cryptography API (crypto.subtle): the browser's, or node's @@ -146,7 +146,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::md5 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -170,7 +170,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha1 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -200,7 +200,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_224 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -230,7 +230,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_256 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -260,7 +260,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_384 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -296,7 +296,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_512 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -332,7 +332,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_512_256 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -404,7 +404,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_224 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -434,7 +434,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_256 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -458,7 +458,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_384 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -488,7 +488,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_512 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -524,7 +524,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::shake_128 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -560,7 +560,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::shake_256 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -608,7 +608,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_224 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -626,7 +626,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_256 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -644,7 +644,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_384 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -662,7 +662,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_512 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -746,7 +746,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::blake2b -| botan (with exceptions only) (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) +| botan (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) | - | not stated | native, emscripten @@ -764,7 +764,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::blake2s_256 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -806,7 +806,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::ripemd_160 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -818,31 +818,31 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sm3 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten | digests::streebog_256 -| botan (with exceptions only) +| botan | - | no | native, emscripten | digests::streebog_512 -| botan (with exceptions only) +| botan | - | no | native, emscripten | digests::whirlpool -| botan (with exceptions only) +| botan | - | no | native, emscripten | digests::skein_512 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -885,7 +885,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::siphash_2_4 -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -915,7 +915,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::kmac_128 -| botan (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| botan (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | - | not stated | native, emscripten @@ -933,7 +933,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::kmac_256 -| botan (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| botan (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | - | not stated | native, emscripten @@ -951,7 +951,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::blake2b_mac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1089,7 +1089,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1113,7 +1113,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1143,7 +1143,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1173,7 +1173,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1203,7 +1203,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1239,7 +1239,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1275,7 +1275,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1293,7 +1293,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1311,7 +1311,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1329,7 +1329,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1347,7 +1347,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1365,7 +1365,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1383,7 +1383,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1401,7 +1401,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1413,7 +1413,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1425,7 +1425,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1437,7 +1437,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1449,7 +1449,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1461,31 +1461,31 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten | macs::hmac -| botan (with exceptions only) +| botan | - | no | native, emscripten | macs::hmac -| botan (with exceptions only) +| botan | - | no | native, emscripten | macs::hmac -| botan (with exceptions only) +| botan | - | no | native, emscripten | macs::hmac -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1571,7 +1571,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | hkdf_extract -| botan (with exceptions only) +| botan | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1595,7 +1595,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | hkdf_expand -| botan (with exceptions only) +| botan | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1625,7 +1625,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | hkdf -| botan (with exceptions only) +| botan | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1649,7 +1649,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | pbkdf2 -| botan (with exceptions only) (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) +| botan (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1673,7 +1673,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kbkdf -| botan (with exceptions only) (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) +| botan (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1685,7 +1685,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | sskdf -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1697,7 +1697,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | x963kdf -| botan (with exceptions only) (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) +| botan (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) | - | not stated | native, emscripten @@ -1722,7 +1722,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | argon2id -| botan (with exceptions only) +| botan | - | not stated | native, emscripten @@ -1734,7 +1734,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kdfs::argon2d -| botan (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| botan (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | - | no | native, emscripten @@ -1752,7 +1752,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kdfs::argon2i -| botan (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| botan (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | - | not stated | native, emscripten @@ -1770,7 +1770,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kdfs::argon2id -| botan (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| botan (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | - | not stated | native, emscripten @@ -1788,19 +1788,19 @@ states about its constant time. The backends: | native, wasip2, wasip3 | scrypt -| botan (with exceptions only) (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) +| botan (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) | - | no | native, emscripten | bcrypt -| botan (with exceptions only) (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) +| botan (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) | - | no | native, emscripten | bcrypt_pbkdf -| botan (with exceptions only) +| botan | - | no | native, emscripten @@ -2061,10 +2061,10 @@ What each backend's upstream states, and where: * blake3: not stated. BLAKE3 1.8.7: README.md and c/README.md state no constant-time property. * sodium: not stated. libsodium 1.0.22: its headers state constant time for comparisons (sodium/utils.h) alone, not for its hashing, MAC, key derivation and password hashing functions (crypto_hash_*, crypto_xof_*, crypto_generichash_*, crypto_shorthash_*, crypto_auth_*, crypto_kdf_*, crypto_pwhash_*). * bearssl: not stated. -** BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*. -** BearSSL at 7bea48e (v0.6-39): bearssl_kdf.h states no constant-time property for br_shake_*. -** BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out. -** BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) calls br_hmac_out. +** BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*. +** BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_kdf.h states no constant-time property for br_shake_*. +** BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out. +** BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) calls br_hmac_out. * openssl: not stated. ** OpenSSL 3.5.9: doc/man7/EVP_MD-*.pod, doc/man3/EVP_DigestInit.pod and providers/implementations/digests/ state no constant-time property. ** OpenSSL 3.5.9: doc/man3/EVP_MAC.pod, doc/man7/EVP_MAC-HMAC.pod, EVP_MAC-KMAC.pod, EVP_MAC-BLAKE2.pod, EVP_MAC-Siphash.pod and providers/implementations/macs/ state no constant-time property. diff --git a/doc/capabilities.json b/doc/capabilities.json index d75be4d..e9705b6 100644 --- a/doc/capabilities.json +++ b/doc/capabilities.json @@ -77,7 +77,7 @@ "name": "bearssl", "tag": "backends::bearssl", "macro": "BEARSSL", - "library": "BearSSL at 7bea48e (v0.6-39)", + "library": "BearSSL at 32381d6 (webcpporg/bearssl's webcpp branch: upstream 7bea48e (v0.6-39) plus one ECDSA fix that does not touch hashing)", "licence": "MIT", "jamfile": "/third_party//bearssl", "targets": [ @@ -390,7 +390,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." } }, "openssl": { @@ -430,7 +430,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." } }, "openssl": { @@ -478,7 +478,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." } }, "openssl": { @@ -526,7 +526,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." } }, "openssl": { @@ -574,7 +574,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." } }, "openssl": { @@ -630,7 +630,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." } }, "openssl": { @@ -726,7 +726,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*." } }, "openssl": { @@ -1055,7 +1055,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_kdf.h states no constant-time property for br_shake_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_kdf.h states no constant-time property for br_shake_*." } }, "openssl": { @@ -1111,7 +1111,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_kdf.h states no constant-time property for br_shake_*." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_kdf.h states no constant-time property for br_shake_*." } }, "openssl": { @@ -2392,7 +2392,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." } }, "openssl": { @@ -2433,7 +2433,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." } }, "openssl": { @@ -2482,7 +2482,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." } }, "openssl": { @@ -2531,7 +2531,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." } }, "openssl": { @@ -2580,7 +2580,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." } }, "openssl": { @@ -2637,7 +2637,7 @@ "hmacs": null, "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out." } }, "openssl": { @@ -3533,7 +3533,7 @@ ], "constant_time": { "value": "not stated", - "source": "BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) calls br_hmac_out." + "source": "BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) calls br_hmac_out." } }, "openssl": { diff --git a/doc/generated/backends-argon2.adoc b/doc/generated/backends-argon2.adoc index 8c50162..90dd1cf 100644 --- a/doc/generated/backends-argon2.adoc +++ b/doc/generated/backends-argon2.adoc @@ -21,7 +21,7 @@ | not stated | `kdfs::argon2d` -| `botan` (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| `botan` (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | `/third_party//botan` | native, emscripten | - @@ -42,7 +42,7 @@ | not stated | `kdfs::argon2i` -| `botan` (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| `botan` (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | `/third_party//botan` | native, emscripten | - @@ -63,7 +63,7 @@ | not stated | `kdfs::argon2id` -| `botan` (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| `botan` (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-argon2id.adoc b/doc/generated/backends-argon2id.adoc index 3aecf36..77e6559 100644 --- a/doc/generated/backends-argon2id.adoc +++ b/doc/generated/backends-argon2id.adoc @@ -28,7 +28,7 @@ | not stated | `argon2id` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-bcrypt-pbkdf.adoc b/doc/generated/backends-bcrypt-pbkdf.adoc index fb680ab..87087de 100644 --- a/doc/generated/backends-bcrypt-pbkdf.adoc +++ b/doc/generated/backends-bcrypt-pbkdf.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `bcrypt_pbkdf` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-bcrypt.adoc b/doc/generated/backends-bcrypt.adoc index 789e347..8cd2549 100644 --- a/doc/generated/backends-bcrypt.adoc +++ b/doc/generated/backends-bcrypt.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `bcrypt` -| `botan` (with exceptions only) (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) +| `botan` (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-blake2-mac.adoc b/doc/generated/backends-blake2-mac.adoc index 5403726..7abd591 100644 --- a/doc/generated/backends-blake2-mac.adoc +++ b/doc/generated/backends-blake2-mac.adoc @@ -28,7 +28,7 @@ | not stated | `macs::blake2b_mac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-blake2.adoc b/doc/generated/backends-blake2.adoc index 02af715..c2adfaf 100644 --- a/doc/generated/backends-blake2.adoc +++ b/doc/generated/backends-blake2.adoc @@ -49,7 +49,7 @@ | not stated | `digests::blake2b` -| `botan` (with exceptions only) (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) +| `botan` (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) | `/third_party//botan` | native, emscripten | - @@ -70,7 +70,7 @@ | not stated | `digests::blake2s_256` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-hkdf.adoc b/doc/generated/backends-hkdf.adoc index 3c1ceff..6b84957 100644 --- a/doc/generated/backends-hkdf.adoc +++ b/doc/generated/backends-hkdf.adoc @@ -35,7 +35,7 @@ | not stated | `hkdf_extract` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` @@ -63,7 +63,7 @@ | not stated | `hkdf_expand` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` @@ -98,7 +98,7 @@ | not stated | `hkdf` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` @@ -114,7 +114,7 @@ What each backend states on constant time, as the capability table read it: -* `bearssl`: BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) calls br_hmac_out. +* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) calls br_hmac_out. * `botan`: Botan 3.14.1: doc/api_ref/kdf.rst states no constant-time property of its KDFs, and their source (src/lib/kdf/) none. * `hash2`: Boost.Hash2 1.92: its headers (boost/hash2/) state no constant-time property. * `openssl`: OpenSSL 3.5.9: doc/man7/EVP_KDF-HKDF.pod and EVP_KDF-PBKDF2.pod state no constant-time property. diff --git a/doc/generated/backends-hmac.adoc b/doc/generated/backends-hmac.adoc index b622a7f..322f2b0 100644 --- a/doc/generated/backends-hmac.adoc +++ b/doc/generated/backends-hmac.adoc @@ -154,7 +154,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -182,7 +182,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -217,7 +217,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -252,7 +252,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -287,7 +287,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -329,7 +329,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -371,7 +371,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -392,7 +392,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -413,7 +413,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -434,7 +434,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -455,7 +455,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -476,7 +476,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -497,7 +497,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -518,7 +518,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -532,7 +532,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -546,7 +546,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -560,7 +560,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -574,7 +574,7 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -588,35 +588,35 @@ | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - | not stated | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - | no | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - | no | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - | no | `macs::hmac` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -625,7 +625,7 @@ What each backend states on constant time, as the capability table read it: -* `bearssl`: BearSSL at 7bea48e (v0.6-39): bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out. +* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out. * `botan`: ** Botan 3.14.1: doc/api_ref/hash.rst warns that Streebog's baseline implementation uses table lookups indexed by the data and is likely vulnerable to cache-based side channels; its constant-time code needs AVX-512 and GFNI, an instruction-set module that /third_party//botan's minimized build does not load. ** Botan 3.14.1: doc/api_ref/hash.rst warns that Whirlpool's baseline implementation uses table lookups indexed by the data and is likely vulnerable to cache-based side channels; its constant-time code needs AVX2 or AVX-512, instruction-set modules that /third_party//botan's minimized build does not load. diff --git a/doc/generated/backends-kbkdf.adoc b/doc/generated/backends-kbkdf.adoc index 58d5c42..1f185cc 100644 --- a/doc/generated/backends-kbkdf.adoc +++ b/doc/generated/backends-kbkdf.adoc @@ -21,7 +21,7 @@ | not stated | `kbkdf` -| `botan` (with exceptions only) (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) +| `botan` (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` diff --git a/doc/generated/backends-keccak-256.adoc b/doc/generated/backends-keccak-256.adoc index 33510b1..3be4d90 100644 --- a/doc/generated/backends-keccak-256.adoc +++ b/doc/generated/backends-keccak-256.adoc @@ -35,7 +35,7 @@ | not stated | `digests::keccak_224` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -56,7 +56,7 @@ | not stated | `digests::keccak_256` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -77,7 +77,7 @@ | not stated | `digests::keccak_384` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -98,7 +98,7 @@ | not stated | `digests::keccak_512` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-kmac.adoc b/doc/generated/backends-kmac.adoc index c8c3ad1..87e0c9b 100644 --- a/doc/generated/backends-kmac.adoc +++ b/doc/generated/backends-kmac.adoc @@ -28,7 +28,7 @@ | not stated | `macs::kmac_128` -| `botan` (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| `botan` (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | `/third_party//botan` | native, emscripten | - @@ -49,7 +49,7 @@ | not stated | `macs::kmac_256` -| `botan` (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| `botan` (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-md5-sha1-sha2.adoc b/doc/generated/backends-md5-sha1-sha2.adoc index 8d8b4af..ac86afa 100644 --- a/doc/generated/backends-md5-sha1-sha2.adoc +++ b/doc/generated/backends-md5-sha1-sha2.adoc @@ -91,7 +91,7 @@ | not stated | `digests::md5` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -119,7 +119,7 @@ | not stated | `digests::sha1` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -154,7 +154,7 @@ | not stated | `digests::sha2_224` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -189,7 +189,7 @@ | not stated | `digests::sha2_256` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -224,7 +224,7 @@ | not stated | `digests::sha2_384` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -266,7 +266,7 @@ | not stated | `digests::sha2_512` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -308,7 +308,7 @@ | not stated | `digests::sha2_512_256` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -331,7 +331,7 @@ What each backend states on constant time, as the capability table read it: -* `bearssl`: BearSSL at 7bea48e (v0.6-39): bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*. +* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_hash.h states constant time for its GHASH implementations alone, not for br_md5_*, br_sha1_*, br_sha224_* to br_sha512_* or br_md5sha1_*. * `botan`: Botan 3.14.1: doc/api_ref/hash.rst states no constant-time property of this hash, and its source (src/lib/hash/) none. * `hash2`: Boost.Hash2 1.92: its headers (boost/hash2/) state no constant-time property. * `openssl`: OpenSSL 3.5.9: doc/man7/EVP_MD-*.pod, doc/man3/EVP_DigestInit.pod and providers/implementations/digests/ state no constant-time property. diff --git a/doc/generated/backends-pbkdf2.adoc b/doc/generated/backends-pbkdf2.adoc index 5a767d8..43ec235 100644 --- a/doc/generated/backends-pbkdf2.adoc +++ b/doc/generated/backends-pbkdf2.adoc @@ -28,7 +28,7 @@ | not stated | `pbkdf2` -| `botan` (with exceptions only) (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) +| `botan` (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` diff --git a/doc/generated/backends-ripemd.adoc b/doc/generated/backends-ripemd.adoc index e5bce37..7cf4fc2 100644 --- a/doc/generated/backends-ripemd.adoc +++ b/doc/generated/backends-ripemd.adoc @@ -42,7 +42,7 @@ | not stated | `digests::ripemd_160` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-scrypt.adoc b/doc/generated/backends-scrypt.adoc index f86eb57..77a0652 100644 --- a/doc/generated/backends-scrypt.adoc +++ b/doc/generated/backends-scrypt.adoc @@ -28,7 +28,7 @@ | not stated | `scrypt` -| `botan` (with exceptions only) (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) +| `botan` (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-sha3-shake.adoc b/doc/generated/backends-sha3-shake.adoc index a0c8c11..88aae06 100644 --- a/doc/generated/backends-sha3-shake.adoc +++ b/doc/generated/backends-sha3-shake.adoc @@ -77,7 +77,7 @@ | not stated | `digests::sha3_224` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -112,7 +112,7 @@ | not stated | `digests::sha3_256` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -140,7 +140,7 @@ | not stated | `digests::sha3_384` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -175,7 +175,7 @@ | not stated | `digests::sha3_512` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -217,7 +217,7 @@ | not stated | `digests::shake_128` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -259,7 +259,7 @@ | not stated | `digests::shake_256` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - @@ -268,7 +268,7 @@ What each backend states on constant time, as the capability table read it: -* `bearssl`: BearSSL at 7bea48e (v0.6-39): bearssl_kdf.h states no constant-time property for br_shake_*. +* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged in webcpp's pin 32381d6: bearssl_kdf.h states no constant-time property for br_shake_*. * `botan`: ** Botan 3.14.1: doc/api_ref/hash.rst states no constant-time property of SHAKE or of its XOF interface, and its source (src/lib/xof/shake_xof/) none. ** Botan 3.14.1: doc/api_ref/hash.rst states no constant-time property of this hash, and its source (src/lib/hash/) none. diff --git a/doc/generated/backends-siphash.adoc b/doc/generated/backends-siphash.adoc index 92520df..9ab28b2 100644 --- a/doc/generated/backends-siphash.adoc +++ b/doc/generated/backends-siphash.adoc @@ -49,7 +49,7 @@ | not stated | `macs::siphash_2_4` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-skein.adoc b/doc/generated/backends-skein.adoc index 6067007..eb75b30 100644 --- a/doc/generated/backends-skein.adoc +++ b/doc/generated/backends-skein.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `digests::skein_512` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-sm3.adoc b/doc/generated/backends-sm3.adoc index a2dd1eb..a38a297 100644 --- a/doc/generated/backends-sm3.adoc +++ b/doc/generated/backends-sm3.adoc @@ -21,7 +21,7 @@ | not stated | `digests::sm3` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-sskdf.adoc b/doc/generated/backends-sskdf.adoc index e1e6ad9..742c6dc 100644 --- a/doc/generated/backends-sskdf.adoc +++ b/doc/generated/backends-sskdf.adoc @@ -21,7 +21,7 @@ | not stated | `sskdf` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-streebog.adoc b/doc/generated/backends-streebog.adoc index 8e87ba9..19fe848 100644 --- a/doc/generated/backends-streebog.adoc +++ b/doc/generated/backends-streebog.adoc @@ -14,14 +14,14 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `digests::streebog_256` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - | no | `digests::streebog_512` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-whirlpool.adoc b/doc/generated/backends-whirlpool.adoc index c60a72b..136381a 100644 --- a/doc/generated/backends-whirlpool.adoc +++ b/doc/generated/backends-whirlpool.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `digests::whirlpool` -| `botan` (with exceptions only) +| `botan` | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-x963kdf.adoc b/doc/generated/backends-x963kdf.adoc index 1874f9a..7dc0c63 100644 --- a/doc/generated/backends-x963kdf.adoc +++ b/doc/generated/backends-x963kdf.adoc @@ -21,7 +21,7 @@ | not stated | `x963kdf` -| `botan` (with exceptions only) (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) +| `botan` (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/choose.adoc b/doc/generated/choose.adoc index 936824e..b4efe91 100644 --- a/doc/generated/choose.adoc +++ b/doc/generated/choose.adoc @@ -32,49 +32,49 @@ | store users' passwords for a login | <> -| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` +| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` | link /third_party//sodium | `example/password_storage.cpp` | turn a password into an encryption key (a password manager, an encrypted backup) | <> -| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` +| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` | link /third_party//sodium | `example/argon2id.cpp` | check or make the bcrypt strings a system already stores, or read and write OpenSSH's encrypted private keys | <> -| `botan` (with exceptions only): `/third_party//botan` +| `botan`: `/third_party//botan` | name backends::botan and link /third_party//botan, with exceptions | `example/bcrypt.cpp` | turn a shared secret (an ECDH result) into keys | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default; name a backend only to match another program's | `example/hkdf.cpp` | derive the key JOSE's ECDH-ES (a JWE) or another NIST SP 800-56C protocol derives from a shared secret | <> -| `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` +| `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` | name backends::openssl (or backends::botan) and link its library, /webcpp/hash//openssl (or /third_party//botan) | `example/sskdf.cpp` | derive the keys of ECIES or of a smart card's key agreement (ANSI X9.63) | <> -| `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` +| `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` | name backends::openssl (or backends::botan) and link its library, /webcpp/hash//openssl (or /third_party//botan) | `example/x963kdf.cpp` | derive keys from a key as NIST SP 800-108 or Kerberos does (a label and a context) | <> -| `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` +| `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` | name backends::openssl (or backends::botan) and link its library, /webcpp/hash//openssl (or /third_party//botan) | `example/kbkdf.cpp` | derive many keys from one master key, one per purpose | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` | the default | `example/subkeys.cpp` @@ -92,7 +92,7 @@ | compute a Bitcoin wallet's BIP39 seed from its words | <> -| `hash2`: `/webcpp/hash//hash`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default | `example/bip39_seed.cpp` @@ -116,7 +116,7 @@ | derive NIP-44's conversation key | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` | the default | `example/nip44_conversation_key.cpp` @@ -128,13 +128,13 @@ | build the smallest WebAssembly program | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default | `example/hkdf_backends.cpp` | run the same code, with the same results, on every target | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default | `example/hkdf_backends.cpp` |=== diff --git a/doc/llms.txt b/doc/llms.txt index 62dd4f9..86f5865 100644 --- a/doc/llms.txt +++ b/doc/llms.txt @@ -19,14 +19,14 @@ Cryptographic hash functions: a fixed-size fingerprint of any data, for integrit - webcpp::hash::sha2_512 (, FIPS 180-4): SHA-512, a 512-bit digest, faster than SHA-256 on 64-bit machines without SHA hardware. Status: recommended. Choose it: When a standard asks for it, or for a 512-bit digest. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha2) - webcpp::hash::sha2_512_224 (, FIPS 180-4): SHA-512/224, SHA-512 with other initial values cut to 224 bits. Status: recommended. Choose it: When a standard asks for it. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha2) - webcpp::hash::sha2_512_256 (, FIPS 180-4): SHA-512/256, SHA-512 with other initial values cut to 256 bits, immune to length extension. Status: recommended. Choose it: A 256-bit SHA-2 digest that resists length extension, fast on 64-bit machines. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha2) -- webcpp::hash::digests::md5 (, RFC 1321): MD5, a 128-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; md5_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha1 (, RFC 3174, FIPS 180-4): SHA-1, a 160-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha1_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_224 (, FIPS 180-4): SHA-224, SHA-256 cut to 224 bits, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_256 (, FIPS 180-4): SHA-256, the most widely used 256-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_384 (, FIPS 180-4): SHA-384, SHA-512 cut to 384 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_512 (, FIPS 180-4): SHA-512, a 512-bit digest, faster than SHA-256 on 64-bit machines without SHA hardware, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::md5 (, RFC 1321): MD5, a 128-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; md5_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha1 (, RFC 3174, FIPS 180-4): SHA-1, a 160-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha1_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_224 (, FIPS 180-4): SHA-224, SHA-256 cut to 224 bits, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_256 (, FIPS 180-4): SHA-256, the most widely used 256-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_384 (, FIPS 180-4): SHA-384, SHA-512 cut to 384 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_512 (, FIPS 180-4): SHA-512, a 512-bit digest, faster than SHA-256 on 64-bit machines without SHA hardware, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::digests::sha2_512_224 (, FIPS 180-4): SHA-512/224, SHA-512 with other initial values cut to 224 bits, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_512_256 (, FIPS 180-4): SHA-512/256, SHA-512 with other initial values cut to 256 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_512_256 (, FIPS 180-4): SHA-512/256, SHA-512 with other initial values cut to 256 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::digests::md5_sha1 (, RFC 2246): MD5-SHA1, TLS 1.0's 36-byte digest: MD5 of the data followed by SHA-1 of it, as the tag of digest_of and hasher, on backends::bearssl or backends::openssl named in the call (it has no default). Status: legacy. Choose it: Only to read or check TLS 1.0 and 1.1 data, naming backends::bearssl or backends::openssl; never for anything new: SHA-256 instead. Backends: bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-md5-sha1) - webcpp::hash::sha3_224 (, FIPS 202): SHA3-224, the SHA-3 standard's 224-bit digest. Status: recommended. Choose it: When a standard asks for it. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) - webcpp::hash::sha3_256 (, FIPS 202): SHA3-256, the SHA-3 standard's 256-bit digest, a design unrelated to SHA-2. Status: recommended. Choose it: A standard 256-bit digest that is not SHA-2, immune to length extension. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) @@ -34,19 +34,19 @@ Cryptographic hash functions: a fixed-size fingerprint of any data, for integrit - webcpp::hash::sha3_512 (, FIPS 202): SHA3-512, the SHA-3 standard's 512-bit digest. Status: recommended. Choose it: When a standard asks for it. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) - webcpp::hash::shake_128 (, FIPS 202): SHAKE128, an extendable-output function: as many bytes as the caller takes, 128-bit security at most. Status: recommended. Choose it: To draw a long stream of bytes from one input, at 128-bit security. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) - webcpp::hash::shake_256 (, FIPS 202): SHAKE256, an extendable-output function: as many bytes as the caller takes, 256-bit security at most. Status: recommended. Choose it: To draw a long stream of bytes from one input, at 256-bit security. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) -- webcpp::hash::digests::sha3_224 (, FIPS 202): SHA3-224, the SHA-3 standard's 224-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha3_256 (, FIPS 202): SHA3-256, the SHA-3 standard's 256-bit digest, a design unrelated to SHA-2, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha3_384 (, FIPS 202): SHA3-384, the SHA-3 standard's 384-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha3_512 (, FIPS 202): SHA3-512, the SHA-3 standard's 512-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::shake_128 (, FIPS 202): SHAKE128, an extendable-output function: as many bytes as the caller takes, 128-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::shake_256 (, FIPS 202): SHAKE256, an extendable-output function: as many bytes as the caller takes, 256-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_224 (, FIPS 202): SHA3-224, the SHA-3 standard's 224-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_256 (, FIPS 202): SHA3-256, the SHA-3 standard's 256-bit digest, a design unrelated to SHA-2, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_384 (, FIPS 202): SHA3-384, the SHA-3 standard's 384-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_512 (, FIPS 202): SHA3-512, the SHA-3 standard's 512-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::shake_128 (, FIPS 202): SHAKE128, an extendable-output function: as many bytes as the caller takes, 128-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::shake_256 (, FIPS 202): SHAKE256, an extendable-output function: as many bytes as the caller takes, 256-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::digests::turboshake_128 (, RFC 9861): TurboSHAKE128 (RFC 9861), an extendable-output function: SHAKE128's sponge with 12 rounds of the Keccak-p permutation instead of 24, about twice as fast, and a domain byte that makes each use its own function, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For an extendable output faster than SHAKE128 with the same security claim, or for several functions from one primitive told apart by the domain byte; shake_128 where a standard names SHAKE. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-turboshake) - webcpp::hash::digests::turboshake_256 (, RFC 9861): TurboSHAKE256 (RFC 9861), an extendable-output function: SHAKE256's sponge with 12 rounds of the Keccak-p permutation instead of 24, about twice as fast, and a domain byte that makes each use its own function, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For an extendable output faster than SHAKE256 with the same security claim, or for several functions from one primitive told apart by the domain byte; shake_256 where a standard names SHAKE. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-turboshake) - webcpp::hash::keccak_256 (, Keccak (the SHA-3 submission's padding), as Ethereum uses it): Keccak-256 with the original padding, Ethereum's hash; not SHA3-256. Status: recommended. Choose it: For Ethereum and every format that names Keccak-256; never in place of SHA3-256. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) -- webcpp::hash::digests::keccak_224 (, Keccak (the SHA-3 submission's padding)): Keccak-224 with the original padding, the SHA-3 submission's 224-bit hash; not SHA3-224, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-224, the padding before FIPS 202; SHA3-224 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) -- webcpp::hash::digests::keccak_256 (, Keccak (the SHA-3 submission's padding), as Ethereum uses it): Keccak-256 with the original padding, Ethereum's hash; not SHA3-256, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; keccak_256 itself for hash_append and Boost.Hash2's other functions. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::keccak_384 (, Keccak (the SHA-3 submission's padding)): Keccak-384 with the original padding, the SHA-3 submission's 384-bit hash; not SHA3-384, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-384, the padding before FIPS 202; SHA3-384 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) -- webcpp::hash::digests::keccak_512 (, Keccak (the SHA-3 submission's padding)): Keccak-512 with the original padding, the SHA-3 submission's 512-bit hash; not SHA3-512, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-512, the padding before FIPS 202; SHA3-512 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) +- webcpp::hash::digests::keccak_224 (, Keccak (the SHA-3 submission's padding)): Keccak-224 with the original padding, the SHA-3 submission's 224-bit hash; not SHA3-224, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-224, the padding before FIPS 202; SHA3-224 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) +- webcpp::hash::digests::keccak_256 (, Keccak (the SHA-3 submission's padding), as Ethereum uses it): Keccak-256 with the original padding, Ethereum's hash; not SHA3-256, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; keccak_256 itself for hash_append and Boost.Hash2's other functions. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::keccak_384 (, Keccak (the SHA-3 submission's padding)): Keccak-384 with the original padding, the SHA-3 submission's 384-bit hash; not SHA3-384, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-384, the padding before FIPS 202; SHA3-384 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) +- webcpp::hash::digests::keccak_512 (, Keccak (the SHA-3 submission's padding)): Keccak-512 with the original padding, the SHA-3 submission's 512-bit hash; not SHA3-512, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-512, the padding before FIPS 202; SHA3-512 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) - webcpp::hash::digests::cshake_128 (, NIST SP 800-185, section 3): cSHAKE128, SHAKE128 with a function name and a customisation string that separate its uses, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: When two uses of one hash must never give the same output for the same input: each takes its own customisation string. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sp800-185) - webcpp::hash::digests::cshake_256 (, NIST SP 800-185, section 3): cSHAKE256, SHAKE256 with a function name and a customisation string that separate its uses, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: As cSHAKE128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sp800-185) - webcpp::hash::digests::tuplehash_128 (, NIST SP 800-185, section 5): TupleHash128, the hash of a tuple of byte strings in which the bounds between the strings count, as the tag of digest_of (a tuple of one string) and hasher (one update per string). Status: recommended. Choose it: To hash several fields together without an encoding of your own: ("ab", "c") and ("a", "bc") never collide, as a plain concatenation does. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sp800-185) @@ -57,18 +57,18 @@ Cryptographic hash functions: a fixed-size fingerprint of any data, for integrit - webcpp::hash::digests::kt256 (, RFC 9861): KT256 (KangarooTwelve), an extendable-output tree hash over TurboSHAKE256 that cuts long inputs in chunks of 8,192 bytes, with a customisation string, as the tag of digest_of and hasher. Status: recommended. Choose it: As KT128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kangarootwelve) - webcpp::hash::blake2b_512 (, RFC 7693): BLAKE2b, a 512-bit digest faster than SHA-2 in software, with a key of up to 64 bytes. Status: recommended. Choose it: A fast software digest or keyed hash where SHA-2 has no hardware support. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2) - webcpp::hash::blake2s_256 (, RFC 7693): BLAKE2s, a 256-bit digest for 32-bit and small machines, with a key of up to 32 bytes. Status: recommended. Choose it: For WireGuard-style protocols and 32-bit targets. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2) -- webcpp::hash::digests::blake2b (, RFC 7693): BLAKE2b (RFC 7693), a digest of 1 to 64 bytes faster than SHA-2 in software, with an optional key, salt and personalisation, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For BLAKE2b of a length other than 64 bytes, keyed, salted or personalised (a format that names BLAKE2b-256 or a personalisation string), or to hash in pieces with one result; blake2b_512 itself for hash_append. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-options) -- webcpp::hash::digests::blake2s_256 (, RFC 7693): BLAKE2s, a 256-bit digest for 32-bit and small machines, with a key of up to 32 bytes, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; blake2s_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::blake2b (, RFC 7693): BLAKE2b (RFC 7693), a digest of 1 to 64 bytes faster than SHA-2 in software, with an optional key, salt and personalisation, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For BLAKE2b of a length other than 64 bytes, keyed, salted or personalised (a format that names BLAKE2b-256 or a personalisation string), or to hash in pieces with one result; blake2b_512 itself for hash_append. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-options) +- webcpp::hash::digests::blake2s_256 (, RFC 7693): BLAKE2s, a 256-bit digest for 32-bit and small machines, with a key of up to 32 bytes, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; blake2s_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::blake3 (, the BLAKE3 specification (hash, keyed hash, derive_key, extendable output)): BLAKE3, a very fast 256-bit digest with keyed hashing, key derivation and extendable output in one design. Status: recommended. Choose it: Large data verified in parts, content addressing, and key derivation from a context string. Backends: blake3 (/third_party//blake3; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake3) - webcpp::hash::digests::blake3 (, the BLAKE3 specification (hash, keyed hash, derive_key, extendable output)): BLAKE3, a very fast 256-bit digest with keyed hashing, key derivation and extendable output in one design, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; blake3 itself for hash_append and Boost.Hash2's other functions. Backends: blake3 (/third_party//blake3; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::ripemd_128 (, RIPEMD-128 (Dobbertin, Bosselaers, Preneel)): RIPEMD-128, a 128-bit legacy digest. Status: legacy. Choose it: Only to read existing data. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-legacy) - webcpp::hash::ripemd_160 (, RIPEMD-160 (Dobbertin, Bosselaers, Preneel)): RIPEMD-160, a 160-bit legacy digest, kept for Bitcoin's hash160. Status: legacy. Choose it: For Bitcoin's hash160; never in a new design. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-legacy) -- webcpp::hash::digests::ripemd_160 (, RIPEMD-160 (Dobbertin, Bosselaers, Preneel)): RIPEMD-160, a 160-bit legacy digest, kept for Bitcoin's hash160, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; ripemd_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sm3 (, GB/T 32905-2016 (ISO/IEC 10118-3:2018)): SM3, China's national 256-bit digest (GB/T 32905-2016, also ISO/IEC 10118-3), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires it (SM2 signatures, the ShangMi suites of TLS 1.3), naming backends::openssl or backends::botan; SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sm3) -- webcpp::hash::digests::streebog_256 (, GOST R 34.11-2012 (RFC 6986)): Streebog-256, Russia's national 256-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-256 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) -- webcpp::hash::digests::streebog_512 (, GOST R 34.11-2012 (RFC 6986)): Streebog-512, Russia's national 512-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) -- webcpp::hash::digests::whirlpool (, ISO/IEC 10118-3 (Whirlpool, Barreto and Rijmen)): Whirlpool, a 512-bit digest of ISO/IEC 10118-3 and NESSIE, as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA-512 or SHA3-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-whirlpool) -- webcpp::hash::digests::skein_512 (, The Skein Hash Function Family, version 1.3): Skein-512 with a 512-bit digest (Skein 1.3, a finalist of the SHA-3 competition), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA3-512 or BLAKE2b everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-skein) +- webcpp::hash::digests::ripemd_160 (, RIPEMD-160 (Dobbertin, Bosselaers, Preneel)): RIPEMD-160, a 160-bit legacy digest, kept for Bitcoin's hash160, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; ripemd_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sm3 (, GB/T 32905-2016 (ISO/IEC 10118-3:2018)): SM3, China's national 256-bit digest (GB/T 32905-2016, also ISO/IEC 10118-3), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires it (SM2 signatures, the ShangMi suites of TLS 1.3), naming backends::openssl or backends::botan; SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sm3) +- webcpp::hash::digests::streebog_256 (, GOST R 34.11-2012 (RFC 6986)): Streebog-256, Russia's national 256-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-256 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) +- webcpp::hash::digests::streebog_512 (, GOST R 34.11-2012 (RFC 6986)): Streebog-512, Russia's national 512-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) +- webcpp::hash::digests::whirlpool (, ISO/IEC 10118-3 (Whirlpool, Barreto and Rijmen)): Whirlpool, a 512-bit digest of ISO/IEC 10118-3 and NESSIE, as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA-512 or SHA3-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-whirlpool) +- webcpp::hash::digests::skein_512 (, The Skein Hash Function Family, version 1.3): Skein-512 with a 512-bit digest (Skein 1.3, a finalist of the SHA-3 competition), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA3-512 or BLAKE2b everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-skein) ## Message authentication @@ -76,11 +76,11 @@ Keyed hashes: a tag that only the holder of a secret key can compute, so that a - webcpp::hash::siphash_32 (, HalfSipHash-2-4 (Aumasson)): HalfSipHash-2-4, a keyed 32-bit hash for hash tables, with an 8-byte key. Status: recommended. Choose it: Hash tables on 32-bit targets whose keys an adversary chooses. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-siphash) - webcpp::hash::siphash_64 (, SipHash-2-4 (Aumasson, Bernstein)): SipHash-2-4, a keyed 64-bit hash for hash tables keyed by untrusted input, with a 16-byte key. Status: recommended. Choose it: Every hash table, set or Bloom filter whose keys come from the network or another user. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-siphash) -- webcpp::hash::macs::siphash_2_4 (, SipHash-2-4 (Aumasson, Bernstein)): SipHash-2-4, a keyed 64-bit hash with a 16-byte key, as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: To compute it in one call, on a backend named in the call; siphash_64 itself for hash_append and a hash table's hasher. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::siphash_2_4 (, SipHash-2-4 (Aumasson, Bernstein)): SipHash-2-4, a keyed 64-bit hash with a 16-byte key, as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: To compute it in one call, on a backend named in the call; siphash_64 itself for hash_append and a hash table's hasher. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) - webcpp::hash::macs::siphash_2_4x (, SipHash-2-4 with a 128-bit output (Aumasson, Bernstein; libsodium's siphashx24)): SipHash-2-4 with a 16-byte output and a 16-byte key, libsodium's crypto_shorthash_siphashx24, as the tag of mac: the tag of a message under a key in one call. Status: recommended. Choose it: For a 128-bit SipHash, as a libsodium program computes it: a large table, a filter or an identifier keyed against flooding; siphash_2_4 for 64 bits. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-siphash-sodium) -- webcpp::hash::macs::kmac_128 (, NIST SP 800-185, section 4): KMAC128, the MAC built on cSHAKE128 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: Where a standard or a format names KMAC; HMAC-SHA-256 elsewhere, which every platform has. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) -- webcpp::hash::macs::kmac_256 (, NIST SP 800-185, section 4): KMAC256, the MAC built on cSHAKE256 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: As KMAC128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) -- webcpp::hash::macs::blake2b_mac (, RFC 7693, keyed (section 2.5)): BLAKE2b keyed with a key of 1 to 64 bytes (RFC 7693), as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: A fast keyed tag on 64-bit machines, of any size from 1 to 64 bytes; HMAC-SHA-256 where a format or WebCrypto must agree. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-mac-sodium) +- webcpp::hash::macs::kmac_128 (, NIST SP 800-185, section 4): KMAC128, the MAC built on cSHAKE128 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: Where a standard or a format names KMAC; HMAC-SHA-256 elsewhere, which every platform has. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) +- webcpp::hash::macs::kmac_256 (, NIST SP 800-185, section 4): KMAC256, the MAC built on cSHAKE256 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: As KMAC128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) +- webcpp::hash::macs::blake2b_mac (, RFC 7693, keyed (section 2.5)): BLAKE2b keyed with a key of 1 to 64 bytes (RFC 7693), as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: A fast keyed tag on 64-bit machines, of any size from 1 to 64 bytes; HMAC-SHA-256 where a format or WebCrypto must agree. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-mac-sodium) - webcpp::hash::macs::blake2s_mac (, RFC 7693, keyed (section 2.5)): BLAKE2s keyed with a key of 1 to 32 bytes (RFC 7693), as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: A fast keyed tag on 32-bit and small machines, without HMAC's two passes. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) - webcpp::hash::hmac (, RFC 2104): hmac, HMAC over any Boost.Hash2 hash. Status: recommended. Choose it: HMAC over a hash that has no alias of its own. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) - webcpp::hash::hmac_md5_128 (, RFC 2104): HMAC over MD5, legacy. Status: legacy. Choose it: Only for an existing protocol. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) @@ -99,55 +99,55 @@ Keyed hashes: a tag that only the holder of a secret key can compute, so that a - webcpp::hash::hmac_ripemd_160 (, RFC 2104): HMAC over RIPEMD-160, legacy. Status: legacy. Choose it: Only for an existing protocol. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) - webcpp::hash::hmac_blake2b_512 (, RFC 2104): HMAC over BLAKE2b; a keyed BLAKE2b does the same job faster. Status: recommended. Choose it: When a protocol names HMAC-BLAKE2b; otherwise a keyed blake2b_512. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) - webcpp::hash::hmac_blake2s_256 (, RFC 2104): HMAC over BLAKE2s. Status: recommended. Choose it: For WireGuard-style protocols. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over MD5, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_md5_128 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-1, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha1_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-256, the default MAC, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over MD5, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_md5_128 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-1, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha1_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-256, the default MAC, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) - webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512/224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512/256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over RIPEMD-160, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_ripemd_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2b; a keyed BLAKE2b does the same job faster, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2b_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2s, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2s_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-224 with the original padding, not SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-224; HMAC over SHA3-224 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-256 with the original padding, not SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-256; HMAC over SHA3-256 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-384 with the original padding, not SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-384; HMAC over SHA3-384 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-512 with the original padding, not SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-512; HMAC over SHA3-512 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SM3, China's national 256-bit digest, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires SM3, naming backends::openssl or backends::botan; HMAC-SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-256 (HMAC_GOSTR3411_2012_256, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-256 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-512 (HMAC_GOSTR3411_2012_512, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Whirlpool, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Whirlpool, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Skein-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Skein-512, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512/256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over RIPEMD-160, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_ripemd_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2b; a keyed BLAKE2b does the same job faster, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2b_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2s, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2s_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-224 with the original padding, not SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-224; HMAC over SHA3-224 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-256 with the original padding, not SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-256; HMAC over SHA3-256 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-384 with the original padding, not SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-384; HMAC over SHA3-384 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-512 with the original padding, not SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-512; HMAC over SHA3-512 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SM3, China's national 256-bit digest, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires SM3, naming backends::openssl or backends::botan; HMAC-SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-256 (HMAC_GOSTR3411_2012_256, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-256 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-512 (HMAC_GOSTR3411_2012_512, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Whirlpool, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Whirlpool, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Skein-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Skein-512, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) ## Key derivation HKDF, PBKDF2 and BLAKE2b subkeys: keys from a shared secret or a master key (HKDF, libsodium's crypto_kdf), or from a password where a standard demands PBKDF2. [Key derivation](https://webcpporg.github.io/libs/hash/#hash-kdfs) -- webcpp::hash::hkdf_extract (, RFC 5869): HKDF-Extract: a uniform pseudorandom key from a secret that is not uniform, such as a Diffie-Hellman result. Status: recommended. Choose it: When a protocol names the extract step alone. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) -- webcpp::hash::hkdf_expand (, RFC 5869): HKDF-Expand: many keys, each for one purpose, from one pseudorandom key. Status: recommended. Choose it: Keys from a key that is already uniform (a master key), one per info label. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) -- webcpp::hash::hkdf (, RFC 5869): HKDF, extract then expand: keys from a shared secret, each separated by its info label. Status: recommended. Choose it: The default way to turn one secret into several keys. Never for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) -- webcpp::hash::pbkdf2 (, RFC 8018): PBKDF2: a key from a password by many iterations of an hmac; not memory-hard. Status: where a standard names it. Choose it: When a standard or FIPS 140 demands it; otherwise Argon2id for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-pbkdf2) +- webcpp::hash::hkdf_extract (, RFC 5869): HKDF-Extract: a uniform pseudorandom key from a secret that is not uniform, such as a Diffie-Hellman result. Status: recommended. Choose it: When a protocol names the extract step alone. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) +- webcpp::hash::hkdf_expand (, RFC 5869): HKDF-Expand: many keys, each for one purpose, from one pseudorandom key. Status: recommended. Choose it: Keys from a key that is already uniform (a master key), one per info label. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) +- webcpp::hash::hkdf (, RFC 5869): HKDF, extract then expand: keys from a shared secret, each separated by its info label. Status: recommended. Choose it: The default way to turn one secret into several keys. Never for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) +- webcpp::hash::pbkdf2 (, RFC 8018): PBKDF2: a key from a password by many iterations of an hmac; not memory-hard. Status: where a standard names it. Choose it: When a standard or FIPS 140 demands it; otherwise Argon2id for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-pbkdf2) - webcpp::hash::blake2b_subkey (, libsodium's crypto_kdf: keyed BLAKE2b (RFC 7693) with the subkey's id as the salt and the context as the personalisation): BLAKE2b subkeys, libsodium's crypto_kdf: many keys of 16 to 64 bytes from one 32-byte master key, each named by a 64-bit id and an 8-byte context. Status: recommended. Choose it: To derive the keys a libsodium program derives from the same master key, or keys numbered by id from one random master key; hkdf for a secret that is not uniformly random. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-subkey) -- webcpp::hash::kbkdf (, NIST SP 800-108r1, counter mode over HMAC): KBKDF, NIST SP 800-108's key derivation in counter mode over HMAC: keys from a key-derivation key, a label and a context. Status: recommended. Choose it: When a standard, a protocol or a smart card names SP 800-108's counter mode; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kbkdf) -- webcpp::hash::sskdf (, NIST SP 800-56C Rev. 2, one-step KDF over a hash function (SHA-1, SHA-2, SHA-3)): The one-step KDF of NIST SP 800-56C over a hash (the Concat KDF): keys from a key-agreement's shared secret and its fixed info. Status: recommended. Choose it: To derive the key JOSE's ECDH-ES, PKINIT or another SP 800-56C protocol derives; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sskdf) -- webcpp::hash::x963kdf (, ANSI X9.63-2011 and SEC 1 v2, over SHA-1, SHA-224, SHA-256, SHA-384 or SHA-512 (SEC 1 v2, section 3.5)): The KDF of ANSI X9.63 (SEC 1): keys from an elliptic-curve shared secret and shared info, the counter after the secret. Status: recommended. Choose it: To derive the keys ECIES or a smart card's key agreement derives by ANSI X9.63; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-x963kdf) +- webcpp::hash::kbkdf (, NIST SP 800-108r1, counter mode over HMAC): KBKDF, NIST SP 800-108's key derivation in counter mode over HMAC: keys from a key-derivation key, a label and a context. Status: recommended. Choose it: When a standard, a protocol or a smart card names SP 800-108's counter mode; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kbkdf) +- webcpp::hash::sskdf (, NIST SP 800-56C Rev. 2, one-step KDF over a hash function (SHA-1, SHA-2, SHA-3)): The one-step KDF of NIST SP 800-56C over a hash (the Concat KDF): keys from a key-agreement's shared secret and its fixed info. Status: recommended. Choose it: To derive the key JOSE's ECDH-ES, PKINIT or another SP 800-56C protocol derives; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sskdf) +- webcpp::hash::x963kdf (, ANSI X9.63-2011 and SEC 1 v2, over SHA-1, SHA-224, SHA-256, SHA-384 or SHA-512 (SEC 1 v2, section 3.5)): The KDF of ANSI X9.63 (SEC 1): keys from an elliptic-curve shared secret and shared info, the counter after the secret. Status: recommended. Choose it: To derive the keys ECIES or a smart card's key agreement derives by ANSI X9.63; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-x963kdf) ## Password hashing Argon2id and scrypt: slow, memory-hard functions that make every guess of a stolen password database expensive. [Password hashing](https://webcpporg.github.io/libs/hash/#hash-password-hashing) -- webcpp::hash::argon2id (, RFC 9106, one lane): Argon2id: the recommended password hash, memory-hard, winner of the Password Hashing Competition. Status: recommended. Choose it: Storing passwords and deriving keys from them. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2id) -- webcpp::hash::kdfs::argon2d (, RFC 9106, every parameter): Argon2d with every parameter of RFC 9106, the tag of argon2: memory accesses that depend on the password, on a backend the call names (it has no default). Status: where no attacker shares the machine. Choose it: Never for passwords; only where a format names Argon2d and no attacker shares the machine. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) -- webcpp::hash::kdfs::argon2i (, RFC 9106, every parameter): Argon2i (RFC 9106), Argon2's variant whose memory access does not depend on the password, as the tag of argon2: the passes, the memory, the lanes, a secret and associated data, on any backend that has them. Status: legacy. Choose it: Only to check tags a system already stored with Argon2i; Argon2id for anything new. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) -- webcpp::hash::kdfs::argon2id (, RFC 9106, every parameter): Argon2id (RFC 9106) as the tag of argon2: the passes, the memory in KiB, the lanes, a secret (a pepper) and associated data, on any backend that has them; on libsodium the same tag as the function argon2id. Status: recommended. Choose it: Storing passwords and deriving keys from them where a parameter beyond the function argon2id's is needed (lanes, a pepper, associated data); argon2id otherwise. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) -- webcpp::hash::scrypt (, RFC 7914): scrypt: a memory-hard password hash, older than Argon2id. Status: recommended. Choose it: When a format demands scrypt; otherwise Argon2id. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-scrypt) -- webcpp::hash::bcrypt (, Provos and Mazieres, A Future-Adaptable Password Scheme (USENIX 1999), as OpenBSD's bcrypt(3) writes it): bcrypt: OpenBSD's password hash, the modular crypt string "$2b$" that systems store, on a backend the call names (it has no default). Status: legacy. Choose it: To check or make the bcrypt strings a system already stores; Argon2id for a new design. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) -- webcpp::hash::bcrypt_pbkdf (, OpenBSD's bcrypt_pbkdf(3), as OpenSSH's private keys use it): bcrypt_pbkdf: OpenBSD's key derivation over bcrypt's hash, which OpenSSH's private key files use, on a backend the call names (it has no default). Status: legacy. Choose it: To read or write OpenSSH's encrypted private keys; Argon2id for a new design. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) +- webcpp::hash::argon2id (, RFC 9106, one lane): Argon2id: the recommended password hash, memory-hard, winner of the Password Hashing Competition. Status: recommended. Choose it: Storing passwords and deriving keys from them. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2id) +- webcpp::hash::kdfs::argon2d (, RFC 9106, every parameter): Argon2d with every parameter of RFC 9106, the tag of argon2: memory accesses that depend on the password, on a backend the call names (it has no default). Status: where no attacker shares the machine. Choose it: Never for passwords; only where a format names Argon2d and no attacker shares the machine. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) +- webcpp::hash::kdfs::argon2i (, RFC 9106, every parameter): Argon2i (RFC 9106), Argon2's variant whose memory access does not depend on the password, as the tag of argon2: the passes, the memory, the lanes, a secret and associated data, on any backend that has them. Status: legacy. Choose it: Only to check tags a system already stored with Argon2i; Argon2id for anything new. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) +- webcpp::hash::kdfs::argon2id (, RFC 9106, every parameter): Argon2id (RFC 9106) as the tag of argon2: the passes, the memory in KiB, the lanes, a secret (a pepper) and associated data, on any backend that has them; on libsodium the same tag as the function argon2id. Status: recommended. Choose it: Storing passwords and deriving keys from them where a parameter beyond the function argon2id's is needed (lanes, a pepper, associated data); argon2id otherwise. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) +- webcpp::hash::scrypt (, RFC 7914): scrypt: a memory-hard password hash, older than Argon2id. Status: recommended. Choose it: When a format demands scrypt; otherwise Argon2id. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-scrypt) +- webcpp::hash::bcrypt (, Provos and Mazieres, A Future-Adaptable Password Scheme (USENIX 1999), as OpenBSD's bcrypt(3) writes it): bcrypt: OpenBSD's password hash, the modular crypt string "$2b$" that systems store, on a backend the call names (it has no default). Status: legacy. Choose it: To check or make the bcrypt strings a system already stores; Argon2id for a new design. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) +- webcpp::hash::bcrypt_pbkdf (, OpenBSD's bcrypt_pbkdf(3), as OpenSSH's private keys use it): bcrypt_pbkdf: OpenBSD's key derivation over bcrypt's hash, which OpenSSH's private key files use, on a backend the call names (it has no default). Status: legacy. Choose it: To read or write OpenSSH's encrypted private keys; Argon2id for a new design. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) ## Hashes that are not cryptographic diff --git a/include/webcpp/hash/detail/canary.h b/include/webcpp/hash/detail/canary.h index 0eb2d5b..67dbf85 100644 --- a/include/webcpp/hash/detail/canary.h +++ b/include/webcpp/hash/detail/canary.h @@ -41,7 +41,7 @@ #ifdef WEBCPP_HASH_BEARSSL_CANARY_COMMIT #define WEBCPP_HASH_BEARSSL_COMMIT WEBCPP_HASH_BEARSSL_CANARY_COMMIT #else -#define WEBCPP_HASH_BEARSSL_COMMIT 7bea48e +#define WEBCPP_HASH_BEARSSL_COMMIT 32381d6 #endif #ifdef WEBCPP_HASH_BOTAN_CANARY_COMMIT diff --git a/test/link/bearssl.cpp b/test/link/bearssl.cpp index eea7d63..e96c9b8 100644 --- a/test/link/bearssl.cpp +++ b/test/link/bearssl.cpp @@ -8,7 +8,7 @@ // its link, or with another commit's canary (WEBCPP_HASH_BEARSSL_CANARY_COMMIT), it does not link: // the canary its header reads, // -// webcpp_hash_bearssl_7bea48e___add_third_party_bearssl_to_your_link, +// webcpp_hash_bearssl_32381d6___add_third_party_bearssl_to_your_link, // // whose configuration is noseeder on Windows and getentropy elsewhere, is undefined (spec // section 5.4). It names nothing of the test support, which a link-fail program is built without. From 89f8a555badd59f12c7ec074eed8b7b91a31fe38 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 21 Nov 2026 20:35:48 -0300 Subject: [PATCH 2/3] hash: AGENTS.md names the BearSSL fix that chapter 5 rule 1 allows --- AGENTS.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 16228d8..1f77c6e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,8 +18,9 @@ specific to hash. ## Cautions -- Every C library is unchanged upstream code. A moved pin is a change of its own - (CODING-GUIDELINES.md chapter 5, rule 12). +- Every C library is upstream code, unchanged except where CODING-GUIDELINES.md chapter 5 rule 1 + allows a security fix on the mirror's `webcpp` branch (BearSSL: 32381d6, ECDSA's nonce + decoding); a moved pin carries that commit. A moved pin is a change of its own (rule 12). - A test is declared through `hash-run` in `test/Jamfile`, which runs it with exceptions and without. - `include/webcpp/hash/detail/canary.h` is a C header: it is in neither the headers-alone list nor From 235dfb36f0ed5e8ff8d676afb2f185fce33e79c6 Mon Sep 17 00:00:00 2001 From: R Date: Sun, 22 Nov 2026 06:41:37 -0300 Subject: [PATCH 3/3] hash: the generated pages rendered by botan-6's doc_tables.py, so that they differ from main only in the BearSSL pin --- doc/backends.adoc | 134 +++++++++++----------- doc/generated/backends-argon2.adoc | 6 +- doc/generated/backends-argon2id.adoc | 2 +- doc/generated/backends-bcrypt-pbkdf.adoc | 2 +- doc/generated/backends-bcrypt.adoc | 2 +- doc/generated/backends-blake2-mac.adoc | 2 +- doc/generated/backends-blake2.adoc | 4 +- doc/generated/backends-hkdf.adoc | 6 +- doc/generated/backends-hmac.adoc | 46 ++++---- doc/generated/backends-kbkdf.adoc | 2 +- doc/generated/backends-keccak-256.adoc | 8 +- doc/generated/backends-kmac.adoc | 4 +- doc/generated/backends-md5-sha1-sha2.adoc | 14 +-- doc/generated/backends-pbkdf2.adoc | 2 +- doc/generated/backends-ripemd.adoc | 2 +- doc/generated/backends-scrypt.adoc | 2 +- doc/generated/backends-sha3-shake.adoc | 12 +- doc/generated/backends-siphash.adoc | 2 +- doc/generated/backends-skein.adoc | 2 +- doc/generated/backends-sm3.adoc | 2 +- doc/generated/backends-sskdf.adoc | 2 +- doc/generated/backends-streebog.adoc | 4 +- doc/generated/backends-whirlpool.adoc | 2 +- doc/generated/backends-x963kdf.adoc | 2 +- doc/generated/choose.adoc | 24 ++-- doc/llms.txt | 132 ++++++++++----------- 26 files changed, 211 insertions(+), 211 deletions(-) diff --git a/doc/backends.adoc b/doc/backends.adoc index 4a6e9dc..b2d2d40 100644 --- a/doc/backends.adoc +++ b/doc/backends.adoc @@ -63,7 +63,7 @@ states about its constant time. The backends: | BSD-2-Clause | `/third_party//botan` | native, emscripten -| every function of its cells +| every function of its cells, with exceptions only | webcrypto | the JavaScript runtime's Web Cryptography API (crypto.subtle): the browser's, or node's @@ -146,7 +146,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::md5 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -170,7 +170,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha1 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -200,7 +200,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_224 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -230,7 +230,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_256 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -260,7 +260,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_384 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -296,7 +296,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_512 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -332,7 +332,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha2_512_256 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -404,7 +404,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_224 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -434,7 +434,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_256 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -458,7 +458,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_384 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -488,7 +488,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sha3_512 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -524,7 +524,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::shake_128 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -560,7 +560,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::shake_256 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -608,7 +608,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_224 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -626,7 +626,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_256 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -644,7 +644,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_384 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -662,7 +662,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::keccak_512 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -746,7 +746,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::blake2b -| botan (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) +| botan (with exceptions only) (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) | - | not stated | native, emscripten @@ -764,7 +764,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::blake2s_256 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -806,7 +806,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::ripemd_160 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -818,31 +818,31 @@ states about its constant time. The backends: | native, wasip2, wasip3 | digests::sm3 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten | digests::streebog_256 -| botan +| botan (with exceptions only) | - | no | native, emscripten | digests::streebog_512 -| botan +| botan (with exceptions only) | - | no | native, emscripten | digests::whirlpool -| botan +| botan (with exceptions only) | - | no | native, emscripten | digests::skein_512 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -885,7 +885,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::siphash_2_4 -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -915,7 +915,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::kmac_128 -| botan (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| botan (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | - | not stated | native, emscripten @@ -933,7 +933,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::kmac_256 -| botan (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| botan (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | - | not stated | native, emscripten @@ -951,7 +951,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::blake2b_mac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1089,7 +1089,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1113,7 +1113,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1143,7 +1143,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1173,7 +1173,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1203,7 +1203,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1239,7 +1239,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1275,7 +1275,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1293,7 +1293,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1311,7 +1311,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1329,7 +1329,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1347,7 +1347,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1365,7 +1365,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1383,7 +1383,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1401,7 +1401,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1413,7 +1413,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1425,7 +1425,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1437,7 +1437,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1449,7 +1449,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1461,31 +1461,31 @@ states about its constant time. The backends: | native, wasip2, wasip3 | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten | macs::hmac -| botan +| botan (with exceptions only) | - | no | native, emscripten | macs::hmac -| botan +| botan (with exceptions only) | - | no | native, emscripten | macs::hmac -| botan +| botan (with exceptions only) | - | no | native, emscripten | macs::hmac -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1571,7 +1571,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | hkdf_extract -| botan +| botan (with exceptions only) | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1595,7 +1595,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | hkdf_expand -| botan +| botan (with exceptions only) | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1625,7 +1625,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | hkdf -| botan +| botan (with exceptions only) | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1649,7 +1649,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | pbkdf2 -| botan (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) +| botan (with exceptions only) (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1673,7 +1673,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kbkdf -| botan (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) +| botan (with exceptions only) (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) | hmac_md5_128, hmac_sha1_160, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512, hmac_sha2_512_256, hmac_sha3_224, hmac_sha3_256, hmac_sha3_384, hmac_sha3_512, hmac_ripemd_160, hmac_blake2b_512, hmac_blake2s_256 | not stated | native, emscripten @@ -1685,7 +1685,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | sskdf -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1697,7 +1697,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | x963kdf -| botan (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) +| botan (with exceptions only) (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) | - | not stated | native, emscripten @@ -1722,7 +1722,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | argon2id -| botan +| botan (with exceptions only) | - | not stated | native, emscripten @@ -1734,7 +1734,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kdfs::argon2d -| botan (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| botan (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | - | no | native, emscripten @@ -1752,7 +1752,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kdfs::argon2i -| botan (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| botan (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | - | not stated | native, emscripten @@ -1770,7 +1770,7 @@ states about its constant time. The backends: | native, wasip2, wasip3 | kdfs::argon2id -| botan (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| botan (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | - | not stated | native, emscripten @@ -1788,19 +1788,19 @@ states about its constant time. The backends: | native, wasip2, wasip3 | scrypt -| botan (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) +| botan (with exceptions only) (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) | - | no | native, emscripten | bcrypt -| botan (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) +| botan (with exceptions only) (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) | - | no | native, emscripten | bcrypt_pbkdf -| botan +| botan (with exceptions only) | - | no | native, emscripten diff --git a/doc/generated/backends-argon2.adoc b/doc/generated/backends-argon2.adoc index 90dd1cf..8c50162 100644 --- a/doc/generated/backends-argon2.adoc +++ b/doc/generated/backends-argon2.adoc @@ -21,7 +21,7 @@ | not stated | `kdfs::argon2d` -| `botan` (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| `botan` (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | `/third_party//botan` | native, emscripten | - @@ -42,7 +42,7 @@ | not stated | `kdfs::argon2i` -| `botan` (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| `botan` (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | `/third_party//botan` | native, emscripten | - @@ -63,7 +63,7 @@ | not stated | `kdfs::argon2id` -| `botan` (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) +| `botan` (with exceptions only) (partial: more than 128 lanes, or m above 8 GiB (2 GiB on wasm32): Botan's Argon2 limits (argon2pwhash.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-argon2id.adoc b/doc/generated/backends-argon2id.adoc index 77e6559..3aecf36 100644 --- a/doc/generated/backends-argon2id.adoc +++ b/doc/generated/backends-argon2id.adoc @@ -28,7 +28,7 @@ | not stated | `argon2id` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-bcrypt-pbkdf.adoc b/doc/generated/backends-bcrypt-pbkdf.adoc index 87087de..fb680ab 100644 --- a/doc/generated/backends-bcrypt-pbkdf.adoc +++ b/doc/generated/backends-bcrypt-pbkdf.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `bcrypt_pbkdf` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-bcrypt.adoc b/doc/generated/backends-bcrypt.adoc index 8cd2549..789e347 100644 --- a/doc/generated/backends-bcrypt.adoc +++ b/doc/generated/backends-bcrypt.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `bcrypt` -| `botan` (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) +| `botan` (with exceptions only) (partial: a cost above 18: Botan's limit (bcrypt.cpp), where bcrypt's format allows 31) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-blake2-mac.adoc b/doc/generated/backends-blake2-mac.adoc index 7abd591..5403726 100644 --- a/doc/generated/backends-blake2-mac.adoc +++ b/doc/generated/backends-blake2-mac.adoc @@ -28,7 +28,7 @@ | not stated | `macs::blake2b_mac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-blake2.adoc b/doc/generated/backends-blake2.adoc index c2adfaf..02af715 100644 --- a/doc/generated/backends-blake2.adoc +++ b/doc/generated/backends-blake2.adoc @@ -49,7 +49,7 @@ | not stated | `digests::blake2b` -| `botan` (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) +| `botan` (with exceptions only) (partial: a salt or a personalisation: Botan's BLAKE2b takes neither (blake2b.h)) | `/third_party//botan` | native, emscripten | - @@ -70,7 +70,7 @@ | not stated | `digests::blake2s_256` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-hkdf.adoc b/doc/generated/backends-hkdf.adoc index 6b84957..71649b3 100644 --- a/doc/generated/backends-hkdf.adoc +++ b/doc/generated/backends-hkdf.adoc @@ -35,7 +35,7 @@ | not stated | `hkdf_extract` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` @@ -63,7 +63,7 @@ | not stated | `hkdf_expand` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` @@ -98,7 +98,7 @@ | not stated | `hkdf` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` diff --git a/doc/generated/backends-hmac.adoc b/doc/generated/backends-hmac.adoc index 322f2b0..016ff85 100644 --- a/doc/generated/backends-hmac.adoc +++ b/doc/generated/backends-hmac.adoc @@ -154,7 +154,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -182,7 +182,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -217,7 +217,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -252,7 +252,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -287,7 +287,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -329,7 +329,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -371,7 +371,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -392,7 +392,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -413,7 +413,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -434,7 +434,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -455,7 +455,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -476,7 +476,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -497,7 +497,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -518,7 +518,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -532,7 +532,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -546,7 +546,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -560,7 +560,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -574,7 +574,7 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -588,35 +588,35 @@ | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - | not stated | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - | no | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - | no | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - | no | `macs::hmac` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-kbkdf.adoc b/doc/generated/backends-kbkdf.adoc index 1f185cc..58d5c42 100644 --- a/doc/generated/backends-kbkdf.adoc +++ b/doc/generated/backends-kbkdf.adoc @@ -21,7 +21,7 @@ | not stated | `kbkdf` -| `botan` (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) +| `botan` (with exceptions only) (partial: the separator or L turned off: Botan's SP800-108-Counter always writes both (sp800_108.cpp)) | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` diff --git a/doc/generated/backends-keccak-256.adoc b/doc/generated/backends-keccak-256.adoc index 3be4d90..33510b1 100644 --- a/doc/generated/backends-keccak-256.adoc +++ b/doc/generated/backends-keccak-256.adoc @@ -35,7 +35,7 @@ | not stated | `digests::keccak_224` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -56,7 +56,7 @@ | not stated | `digests::keccak_256` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -77,7 +77,7 @@ | not stated | `digests::keccak_384` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -98,7 +98,7 @@ | not stated | `digests::keccak_512` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-kmac.adoc b/doc/generated/backends-kmac.adoc index 87e0c9b..c8c3ad1 100644 --- a/doc/generated/backends-kmac.adoc +++ b/doc/generated/backends-kmac.adoc @@ -28,7 +28,7 @@ | not stated | `macs::kmac_128` -| `botan` (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| `botan` (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | `/third_party//botan` | native, emscripten | - @@ -49,7 +49,7 @@ | not stated | `macs::kmac_256` -| `botan` (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) +| `botan` (with exceptions only) (partial: a key over 192 bytes, or the XOF form (xof): Botan's KMAC limits its key to 192 bytes and has no KMACXOF (kmac.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-md5-sha1-sha2.adoc b/doc/generated/backends-md5-sha1-sha2.adoc index ac86afa..3e764b4 100644 --- a/doc/generated/backends-md5-sha1-sha2.adoc +++ b/doc/generated/backends-md5-sha1-sha2.adoc @@ -91,7 +91,7 @@ | not stated | `digests::md5` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -119,7 +119,7 @@ | not stated | `digests::sha1` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -154,7 +154,7 @@ | not stated | `digests::sha2_224` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -189,7 +189,7 @@ | not stated | `digests::sha2_256` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -224,7 +224,7 @@ | not stated | `digests::sha2_384` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -266,7 +266,7 @@ | not stated | `digests::sha2_512` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -308,7 +308,7 @@ | not stated | `digests::sha2_512_256` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-pbkdf2.adoc b/doc/generated/backends-pbkdf2.adoc index 43ec235..5a767d8 100644 --- a/doc/generated/backends-pbkdf2.adoc +++ b/doc/generated/backends-pbkdf2.adoc @@ -28,7 +28,7 @@ | not stated | `pbkdf2` -| `botan` (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) +| `botan` (with exceptions only) (partial: an iteration count above 2^32 - 1 on wasm32 (invalid_iterations): Botan counts iterations in a size_t; an output of more than 2^32 - 2 digests (invalid_output_size), where RFC 8018 allows 2^32 - 1: Botan's PBKDF2 derives at most 2^32 - 2 blocks (pbkdf2.cpp)) | `/third_party//botan` | native, emscripten | `hmac_md5_128`, `hmac_sha1_160`, `hmac_sha2_224`, `hmac_sha2_256`, `hmac_sha2_384`, `hmac_sha2_512`, `hmac_sha2_512_256`, `hmac_sha3_224`, `hmac_sha3_256`, `hmac_sha3_384`, `hmac_sha3_512`, `hmac_ripemd_160`, `hmac_blake2b_512`, `hmac_blake2s_256` diff --git a/doc/generated/backends-ripemd.adoc b/doc/generated/backends-ripemd.adoc index 7cf4fc2..e5bce37 100644 --- a/doc/generated/backends-ripemd.adoc +++ b/doc/generated/backends-ripemd.adoc @@ -42,7 +42,7 @@ | not stated | `digests::ripemd_160` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-scrypt.adoc b/doc/generated/backends-scrypt.adoc index 77a0652..f86eb57 100644 --- a/doc/generated/backends-scrypt.adoc +++ b/doc/generated/backends-scrypt.adoc @@ -28,7 +28,7 @@ | not stated | `scrypt` -| `botan` (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) +| `botan` (with exceptions only) (partial: N above 2^22, r above 256, p above 1,024, or more than 8 GiB and 2 MiB of memory (2 GiB and 2 MiB on wasm32): Botan's scrypt limits (scrypt.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-sha3-shake.adoc b/doc/generated/backends-sha3-shake.adoc index 88aae06..d2b3704 100644 --- a/doc/generated/backends-sha3-shake.adoc +++ b/doc/generated/backends-sha3-shake.adoc @@ -77,7 +77,7 @@ | not stated | `digests::sha3_224` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -112,7 +112,7 @@ | not stated | `digests::sha3_256` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -140,7 +140,7 @@ | not stated | `digests::sha3_384` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -175,7 +175,7 @@ | not stated | `digests::sha3_512` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -217,7 +217,7 @@ | not stated | `digests::shake_128` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - @@ -259,7 +259,7 @@ | not stated | `digests::shake_256` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-siphash.adoc b/doc/generated/backends-siphash.adoc index 9ab28b2..92520df 100644 --- a/doc/generated/backends-siphash.adoc +++ b/doc/generated/backends-siphash.adoc @@ -49,7 +49,7 @@ | not stated | `macs::siphash_2_4` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-skein.adoc b/doc/generated/backends-skein.adoc index eb75b30..6067007 100644 --- a/doc/generated/backends-skein.adoc +++ b/doc/generated/backends-skein.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `digests::skein_512` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-sm3.adoc b/doc/generated/backends-sm3.adoc index a38a297..a2dd1eb 100644 --- a/doc/generated/backends-sm3.adoc +++ b/doc/generated/backends-sm3.adoc @@ -21,7 +21,7 @@ | not stated | `digests::sm3` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-sskdf.adoc b/doc/generated/backends-sskdf.adoc index 742c6dc..e1e6ad9 100644 --- a/doc/generated/backends-sskdf.adoc +++ b/doc/generated/backends-sskdf.adoc @@ -21,7 +21,7 @@ | not stated | `sskdf` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-streebog.adoc b/doc/generated/backends-streebog.adoc index 19fe848..8e87ba9 100644 --- a/doc/generated/backends-streebog.adoc +++ b/doc/generated/backends-streebog.adoc @@ -14,14 +14,14 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `digests::streebog_256` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - | no | `digests::streebog_512` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-whirlpool.adoc b/doc/generated/backends-whirlpool.adoc index 136381a..c60a72b 100644 --- a/doc/generated/backends-whirlpool.adoc +++ b/doc/generated/backends-whirlpool.adoc @@ -14,7 +14,7 @@ | Function | Backend | The program's Jamfile names | Targets | Hmacs | Constant time | `digests::whirlpool` -| `botan` +| `botan` (with exceptions only) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/backends-x963kdf.adoc b/doc/generated/backends-x963kdf.adoc index 7dc0c63..1874f9a 100644 --- a/doc/generated/backends-x963kdf.adoc +++ b/doc/generated/backends-x963kdf.adoc @@ -21,7 +21,7 @@ | not stated | `x963kdf` -| `botan` (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) +| `botan` (with exceptions only) (partial: an output of more than 2^32 - 2 digests, where ANSI X9.63 allows 2^32 - 1: Botan's KDF2 derives at most 2^32 - 2 blocks (kdf2.cpp)) | `/third_party//botan` | native, emscripten | - diff --git a/doc/generated/choose.adoc b/doc/generated/choose.adoc index b4efe91..936824e 100644 --- a/doc/generated/choose.adoc +++ b/doc/generated/choose.adoc @@ -32,49 +32,49 @@ | store users' passwords for a login | <> -| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` +| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` | link /third_party//sodium | `example/password_storage.cpp` | turn a password into an encryption key (a password manager, an encrypted backup) | <> -| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` +| `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` | link /third_party//sodium | `example/argon2id.cpp` | check or make the bcrypt strings a system already stores, or read and write OpenSSH's encrypted private keys | <> -| `botan`: `/third_party//botan` +| `botan` (with exceptions only): `/third_party//botan` | name backends::botan and link /third_party//botan, with exceptions | `example/bcrypt.cpp` | turn a shared secret (an ECDH result) into keys | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default; name a backend only to match another program's | `example/hkdf.cpp` | derive the key JOSE's ECDH-ES (a JWE) or another NIST SP 800-56C protocol derives from a shared secret | <> -| `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` +| `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` | name backends::openssl (or backends::botan) and link its library, /webcpp/hash//openssl (or /third_party//botan) | `example/sskdf.cpp` | derive the keys of ECIES or of a smart card's key agreement (ANSI X9.63) | <> -| `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` +| `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` | name backends::openssl (or backends::botan) and link its library, /webcpp/hash//openssl (or /third_party//botan) | `example/x963kdf.cpp` | derive keys from a key as NIST SP 800-108 or Kerberos does (a label and a context) | <> -| `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` +| `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` | name backends::openssl (or backends::botan) and link its library, /webcpp/hash//openssl (or /third_party//botan) | `example/kbkdf.cpp` | derive many keys from one master key, one per purpose | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` | the default | `example/subkeys.cpp` @@ -92,7 +92,7 @@ | compute a Bitcoin wallet's BIP39 seed from its words | <> -| `hash2`: `/webcpp/hash//hash`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default | `example/bip39_seed.cpp` @@ -116,7 +116,7 @@ | derive NIP-44's conversation key | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan` | the default | `example/nip44_conversation_key.cpp` @@ -128,13 +128,13 @@ | build the smallest WebAssembly program | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default | `example/hkdf_backends.cpp` | run the same code, with the same results, on every target | <> -| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan`: `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` +| `hash2`: `/webcpp/hash//hash`, `sodium`: `/third_party//sodium`, `bearssl`: `/third_party//bearssl`, `openssl`: `/webcpp/hash//openssl`, `botan` (with exceptions only): `/third_party//botan`, `webcrypto` (asynchronous family only): `/webcpp/asio//asio` | the default | `example/hkdf_backends.cpp` |=== diff --git a/doc/llms.txt b/doc/llms.txt index 86f5865..62dd4f9 100644 --- a/doc/llms.txt +++ b/doc/llms.txt @@ -19,14 +19,14 @@ Cryptographic hash functions: a fixed-size fingerprint of any data, for integrit - webcpp::hash::sha2_512 (, FIPS 180-4): SHA-512, a 512-bit digest, faster than SHA-256 on 64-bit machines without SHA hardware. Status: recommended. Choose it: When a standard asks for it, or for a 512-bit digest. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha2) - webcpp::hash::sha2_512_224 (, FIPS 180-4): SHA-512/224, SHA-512 with other initial values cut to 224 bits. Status: recommended. Choose it: When a standard asks for it. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha2) - webcpp::hash::sha2_512_256 (, FIPS 180-4): SHA-512/256, SHA-512 with other initial values cut to 256 bits, immune to length extension. Status: recommended. Choose it: A 256-bit SHA-2 digest that resists length extension, fast on 64-bit machines. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha2) -- webcpp::hash::digests::md5 (, RFC 1321): MD5, a 128-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; md5_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha1 (, RFC 3174, FIPS 180-4): SHA-1, a 160-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha1_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_224 (, FIPS 180-4): SHA-224, SHA-256 cut to 224 bits, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_256 (, FIPS 180-4): SHA-256, the most widely used 256-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_384 (, FIPS 180-4): SHA-384, SHA-512 cut to 384 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_512 (, FIPS 180-4): SHA-512, a 512-bit digest, faster than SHA-256 on 64-bit machines without SHA hardware, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::md5 (, RFC 1321): MD5, a 128-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; md5_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha1 (, RFC 3174, FIPS 180-4): SHA-1, a 160-bit digest, broken: kept to read existing data and protocols, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: broken. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha1_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_224 (, FIPS 180-4): SHA-224, SHA-256 cut to 224 bits, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_256 (, FIPS 180-4): SHA-256, the most widely used 256-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_384 (, FIPS 180-4): SHA-384, SHA-512 cut to 384 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_512 (, FIPS 180-4): SHA-512, a 512-bit digest, faster than SHA-256 on 64-bit machines without SHA hardware, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::digests::sha2_512_224 (, FIPS 180-4): SHA-512/224, SHA-512 with other initial values cut to 224 bits, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha2_512_256 (, FIPS 180-4): SHA-512/256, SHA-512 with other initial values cut to 256 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha2_512_256 (, FIPS 180-4): SHA-512/256, SHA-512 with other initial values cut to 256 bits, immune to length extension, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha2_512_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::digests::md5_sha1 (, RFC 2246): MD5-SHA1, TLS 1.0's 36-byte digest: MD5 of the data followed by SHA-1 of it, as the tag of digest_of and hasher, on backends::bearssl or backends::openssl named in the call (it has no default). Status: legacy. Choose it: Only to read or check TLS 1.0 and 1.1 data, naming backends::bearssl or backends::openssl; never for anything new: SHA-256 instead. Backends: bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-md5-sha1) - webcpp::hash::sha3_224 (, FIPS 202): SHA3-224, the SHA-3 standard's 224-bit digest. Status: recommended. Choose it: When a standard asks for it. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) - webcpp::hash::sha3_256 (, FIPS 202): SHA3-256, the SHA-3 standard's 256-bit digest, a design unrelated to SHA-2. Status: recommended. Choose it: A standard 256-bit digest that is not SHA-2, immune to length extension. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) @@ -34,19 +34,19 @@ Cryptographic hash functions: a fixed-size fingerprint of any data, for integrit - webcpp::hash::sha3_512 (, FIPS 202): SHA3-512, the SHA-3 standard's 512-bit digest. Status: recommended. Choose it: When a standard asks for it. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) - webcpp::hash::shake_128 (, FIPS 202): SHAKE128, an extendable-output function: as many bytes as the caller takes, 128-bit security at most. Status: recommended. Choose it: To draw a long stream of bytes from one input, at 128-bit security. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) - webcpp::hash::shake_256 (, FIPS 202): SHAKE256, an extendable-output function: as many bytes as the caller takes, 256-bit security at most. Status: recommended. Choose it: To draw a long stream of bytes from one input, at 256-bit security. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sha3) -- webcpp::hash::digests::sha3_224 (, FIPS 202): SHA3-224, the SHA-3 standard's 224-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha3_256 (, FIPS 202): SHA3-256, the SHA-3 standard's 256-bit digest, a design unrelated to SHA-2, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha3_384 (, FIPS 202): SHA3-384, the SHA-3 standard's 384-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sha3_512 (, FIPS 202): SHA3-512, the SHA-3 standard's 512-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::shake_128 (, FIPS 202): SHAKE128, an extendable-output function: as many bytes as the caller takes, 128-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::shake_256 (, FIPS 202): SHAKE256, an extendable-output function: as many bytes as the caller takes, 256-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_224 (, FIPS 202): SHA3-224, the SHA-3 standard's 224-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_224 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_256 (, FIPS 202): SHA3-256, the SHA-3 standard's 256-bit digest, a design unrelated to SHA-2, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_384 (, FIPS 202): SHA3-384, the SHA-3 standard's 384-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_384 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sha3_512 (, FIPS 202): SHA3-512, the SHA-3 standard's 512-bit digest, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; sha3_512 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::shake_128 (, FIPS 202): SHAKE128, an extendable-output function: as many bytes as the caller takes, 128-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_128 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::shake_256 (, FIPS 202): SHAKE256, an extendable-output function: as many bytes as the caller takes, 256-bit security at most, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; shake_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::digests::turboshake_128 (, RFC 9861): TurboSHAKE128 (RFC 9861), an extendable-output function: SHAKE128's sponge with 12 rounds of the Keccak-p permutation instead of 24, about twice as fast, and a domain byte that makes each use its own function, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For an extendable output faster than SHAKE128 with the same security claim, or for several functions from one primitive told apart by the domain byte; shake_128 where a standard names SHAKE. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-turboshake) - webcpp::hash::digests::turboshake_256 (, RFC 9861): TurboSHAKE256 (RFC 9861), an extendable-output function: SHAKE256's sponge with 12 rounds of the Keccak-p permutation instead of 24, about twice as fast, and a domain byte that makes each use its own function, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For an extendable output faster than SHAKE256 with the same security claim, or for several functions from one primitive told apart by the domain byte; shake_256 where a standard names SHAKE. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-turboshake) - webcpp::hash::keccak_256 (, Keccak (the SHA-3 submission's padding), as Ethereum uses it): Keccak-256 with the original padding, Ethereum's hash; not SHA3-256. Status: recommended. Choose it: For Ethereum and every format that names Keccak-256; never in place of SHA3-256. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) -- webcpp::hash::digests::keccak_224 (, Keccak (the SHA-3 submission's padding)): Keccak-224 with the original padding, the SHA-3 submission's 224-bit hash; not SHA3-224, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-224, the padding before FIPS 202; SHA3-224 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) -- webcpp::hash::digests::keccak_256 (, Keccak (the SHA-3 submission's padding), as Ethereum uses it): Keccak-256 with the original padding, Ethereum's hash; not SHA3-256, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; keccak_256 itself for hash_append and Boost.Hash2's other functions. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::keccak_384 (, Keccak (the SHA-3 submission's padding)): Keccak-384 with the original padding, the SHA-3 submission's 384-bit hash; not SHA3-384, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-384, the padding before FIPS 202; SHA3-384 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) -- webcpp::hash::digests::keccak_512 (, Keccak (the SHA-3 submission's padding)): Keccak-512 with the original padding, the SHA-3 submission's 512-bit hash; not SHA3-512, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-512, the padding before FIPS 202; SHA3-512 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) +- webcpp::hash::digests::keccak_224 (, Keccak (the SHA-3 submission's padding)): Keccak-224 with the original padding, the SHA-3 submission's 224-bit hash; not SHA3-224, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-224, the padding before FIPS 202; SHA3-224 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) +- webcpp::hash::digests::keccak_256 (, Keccak (the SHA-3 submission's padding), as Ethereum uses it): Keccak-256 with the original padding, Ethereum's hash; not SHA3-256, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; keccak_256 itself for hash_append and Boost.Hash2's other functions. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::keccak_384 (, Keccak (the SHA-3 submission's padding)): Keccak-384 with the original padding, the SHA-3 submission's 384-bit hash; not SHA3-384, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-384, the padding before FIPS 202; SHA3-384 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) +- webcpp::hash::digests::keccak_512 (, Keccak (the SHA-3 submission's padding)): Keccak-512 with the original padding, the SHA-3 submission's 512-bit hash; not SHA3-512, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: Only where a format names Keccak-512, the padding before FIPS 202; SHA3-512 for anything new. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-keccak) - webcpp::hash::digests::cshake_128 (, NIST SP 800-185, section 3): cSHAKE128, SHAKE128 with a function name and a customisation string that separate its uses, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: When two uses of one hash must never give the same output for the same input: each takes its own customisation string. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sp800-185) - webcpp::hash::digests::cshake_256 (, NIST SP 800-185, section 3): cSHAKE256, SHAKE256 with a function name and a customisation string that separate its uses, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: As cSHAKE128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sp800-185) - webcpp::hash::digests::tuplehash_128 (, NIST SP 800-185, section 5): TupleHash128, the hash of a tuple of byte strings in which the bounds between the strings count, as the tag of digest_of (a tuple of one string) and hasher (one update per string). Status: recommended. Choose it: To hash several fields together without an encoding of your own: ("ab", "c") and ("a", "bc") never collide, as a plain concatenation does. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sp800-185) @@ -57,18 +57,18 @@ Cryptographic hash functions: a fixed-size fingerprint of any data, for integrit - webcpp::hash::digests::kt256 (, RFC 9861): KT256 (KangarooTwelve), an extendable-output tree hash over TurboSHAKE256 that cuts long inputs in chunks of 8,192 bytes, with a customisation string, as the tag of digest_of and hasher. Status: recommended. Choose it: As KT128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kangarootwelve) - webcpp::hash::blake2b_512 (, RFC 7693): BLAKE2b, a 512-bit digest faster than SHA-2 in software, with a key of up to 64 bytes. Status: recommended. Choose it: A fast software digest or keyed hash where SHA-2 has no hardware support. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2) - webcpp::hash::blake2s_256 (, RFC 7693): BLAKE2s, a 256-bit digest for 32-bit and small machines, with a key of up to 32 bytes. Status: recommended. Choose it: For WireGuard-style protocols and 32-bit targets. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2) -- webcpp::hash::digests::blake2b (, RFC 7693): BLAKE2b (RFC 7693), a digest of 1 to 64 bytes faster than SHA-2 in software, with an optional key, salt and personalisation, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For BLAKE2b of a length other than 64 bytes, keyed, salted or personalised (a format that names BLAKE2b-256 or a personalisation string), or to hash in pieces with one result; blake2b_512 itself for hash_append. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-options) -- webcpp::hash::digests::blake2s_256 (, RFC 7693): BLAKE2s, a 256-bit digest for 32-bit and small machines, with a key of up to 32 bytes, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; blake2s_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::blake2b (, RFC 7693): BLAKE2b (RFC 7693), a digest of 1 to 64 bytes faster than SHA-2 in software, with an optional key, salt and personalisation, as the tag of digest_of and hasher: one call, or pieces with one final result. Status: recommended. Choose it: For BLAKE2b of a length other than 64 bytes, keyed, salted or personalised (a format that names BLAKE2b-256 or a personalisation string), or to hash in pieces with one result; blake2b_512 itself for hash_append. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-options) +- webcpp::hash::digests::blake2s_256 (, RFC 7693): BLAKE2s, a 256-bit digest for 32-bit and small machines, with a key of up to 32 bytes, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; blake2s_256 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::blake3 (, the BLAKE3 specification (hash, keyed hash, derive_key, extendable output)): BLAKE3, a very fast 256-bit digest with keyed hashing, key derivation and extendable output in one design. Status: recommended. Choose it: Large data verified in parts, content addressing, and key derivation from a context string. Backends: blake3 (/third_party//blake3; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake3) - webcpp::hash::digests::blake3 (, the BLAKE3 specification (hash, keyed hash, derive_key, extendable output)): BLAKE3, a very fast 256-bit digest with keyed hashing, key derivation and extendable output in one design, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: recommended. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; blake3 itself for hash_append and Boost.Hash2's other functions. Backends: blake3 (/third_party//blake3; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) - webcpp::hash::ripemd_128 (, RIPEMD-128 (Dobbertin, Bosselaers, Preneel)): RIPEMD-128, a 128-bit legacy digest. Status: legacy. Choose it: Only to read existing data. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-legacy) - webcpp::hash::ripemd_160 (, RIPEMD-160 (Dobbertin, Bosselaers, Preneel)): RIPEMD-160, a 160-bit legacy digest, kept for Bitcoin's hash160. Status: legacy. Choose it: For Bitcoin's hash160; never in a new design. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-legacy) -- webcpp::hash::digests::ripemd_160 (, RIPEMD-160 (Dobbertin, Bosselaers, Preneel)): RIPEMD-160, a 160-bit legacy digest, kept for Bitcoin's hash160, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; ripemd_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) -- webcpp::hash::digests::sm3 (, GB/T 32905-2016 (ISO/IEC 10118-3:2018)): SM3, China's national 256-bit digest (GB/T 32905-2016, also ISO/IEC 10118-3), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires it (SM2 signatures, the ShangMi suites of TLS 1.3), naming backends::openssl or backends::botan; SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sm3) -- webcpp::hash::digests::streebog_256 (, GOST R 34.11-2012 (RFC 6986)): Streebog-256, Russia's national 256-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-256 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) -- webcpp::hash::digests::streebog_512 (, GOST R 34.11-2012 (RFC 6986)): Streebog-512, Russia's national 512-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) -- webcpp::hash::digests::whirlpool (, ISO/IEC 10118-3 (Whirlpool, Barreto and Rijmen)): Whirlpool, a 512-bit digest of ISO/IEC 10118-3 and NESSIE, as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA-512 or SHA3-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-whirlpool) -- webcpp::hash::digests::skein_512 (, The Skein Hash Function Family, version 1.3): Skein-512 with a 512-bit digest (Skein 1.3, a finalist of the SHA-3 competition), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA3-512 or BLAKE2b everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-skein) +- webcpp::hash::digests::ripemd_160 (, RIPEMD-160 (Dobbertin, Bosselaers, Preneel)): RIPEMD-160, a 160-bit legacy digest, kept for Bitcoin's hash160, as the tag of digest_of and hasher: one call, or pieces with one final result, on any backend that has it. Status: legacy. Choose it: To name the backend in the call, or to hash in pieces with a result that cannot be taken twice; ripemd_160 itself for hash_append and Boost.Hash2's other functions. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-digest-family) +- webcpp::hash::digests::sm3 (, GB/T 32905-2016 (ISO/IEC 10118-3:2018)): SM3, China's national 256-bit digest (GB/T 32905-2016, also ISO/IEC 10118-3), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires it (SM2 signatures, the ShangMi suites of TLS 1.3), naming backends::openssl or backends::botan; SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sm3) +- webcpp::hash::digests::streebog_256 (, GOST R 34.11-2012 (RFC 6986)): Streebog-256, Russia's national 256-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-256 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) +- webcpp::hash::digests::streebog_512 (, GOST R 34.11-2012 (RFC 6986)): Streebog-512, Russia's national 512-bit digest (GOST R 34.11-2012, RFC 6986), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires GOST R 34.11-2012, naming backends::botan; SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-streebog) +- webcpp::hash::digests::whirlpool (, ISO/IEC 10118-3 (Whirlpool, Barreto and Rijmen)): Whirlpool, a 512-bit digest of ISO/IEC 10118-3 and NESSIE, as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA-512 or SHA3-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-whirlpool) +- webcpp::hash::digests::skein_512 (, The Skein Hash Function Family, version 1.3): Skein-512 with a 512-bit digest (Skein 1.3, a finalist of the SHA-3 competition), as the tag of digest_of and hasher, on a backend the call names (it has no default). Status: legacy. Choose it: Only to read what a format hashed with it, naming backends::botan; SHA3-512 or BLAKE2b everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-skein) ## Message authentication @@ -76,11 +76,11 @@ Keyed hashes: a tag that only the holder of a secret key can compute, so that a - webcpp::hash::siphash_32 (, HalfSipHash-2-4 (Aumasson)): HalfSipHash-2-4, a keyed 32-bit hash for hash tables, with an 8-byte key. Status: recommended. Choose it: Hash tables on 32-bit targets whose keys an adversary chooses. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-siphash) - webcpp::hash::siphash_64 (, SipHash-2-4 (Aumasson, Bernstein)): SipHash-2-4, a keyed 64-bit hash for hash tables keyed by untrusted input, with a 16-byte key. Status: recommended. Choose it: Every hash table, set or Bloom filter whose keys come from the network or another user. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-siphash) -- webcpp::hash::macs::siphash_2_4 (, SipHash-2-4 (Aumasson, Bernstein)): SipHash-2-4, a keyed 64-bit hash with a 16-byte key, as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: To compute it in one call, on a backend named in the call; siphash_64 itself for hash_append and a hash table's hasher. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::siphash_2_4 (, SipHash-2-4 (Aumasson, Bernstein)): SipHash-2-4, a keyed 64-bit hash with a 16-byte key, as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: To compute it in one call, on a backend named in the call; siphash_64 itself for hash_append and a hash table's hasher. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) - webcpp::hash::macs::siphash_2_4x (, SipHash-2-4 with a 128-bit output (Aumasson, Bernstein; libsodium's siphashx24)): SipHash-2-4 with a 16-byte output and a 16-byte key, libsodium's crypto_shorthash_siphashx24, as the tag of mac: the tag of a message under a key in one call. Status: recommended. Choose it: For a 128-bit SipHash, as a libsodium program computes it: a large table, a filter or an identifier keyed against flooding; siphash_2_4 for 64 bits. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-siphash-sodium) -- webcpp::hash::macs::kmac_128 (, NIST SP 800-185, section 4): KMAC128, the MAC built on cSHAKE128 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: Where a standard or a format names KMAC; HMAC-SHA-256 elsewhere, which every platform has. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) -- webcpp::hash::macs::kmac_256 (, NIST SP 800-185, section 4): KMAC256, the MAC built on cSHAKE256 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: As KMAC128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) -- webcpp::hash::macs::blake2b_mac (, RFC 7693, keyed (section 2.5)): BLAKE2b keyed with a key of 1 to 64 bytes (RFC 7693), as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: A fast keyed tag on 64-bit machines, of any size from 1 to 64 bytes; HMAC-SHA-256 where a format or WebCrypto must agree. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-mac-sodium) +- webcpp::hash::macs::kmac_128 (, NIST SP 800-185, section 4): KMAC128, the MAC built on cSHAKE128 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: Where a standard or a format names KMAC; HMAC-SHA-256 elsewhere, which every platform has. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) +- webcpp::hash::macs::kmac_256 (, NIST SP 800-185, section 4): KMAC256, the MAC built on cSHAKE256 with a key and a customisation string, as the tag of mac: the tag of a message under a key in one call, fixed-length or XOF form. Status: recommended. Choose it: As KMAC128, where a format asks for 256-bit security. Backends: xkcp (/third_party//xkcp; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kmac) +- webcpp::hash::macs::blake2b_mac (, RFC 7693, keyed (section 2.5)): BLAKE2b keyed with a key of 1 to 64 bytes (RFC 7693), as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: A fast keyed tag on 64-bit machines, of any size from 1 to 64 bytes; HMAC-SHA-256 where a format or WebCrypto must agree. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-mac-sodium) - webcpp::hash::macs::blake2s_mac (, RFC 7693, keyed (section 2.5)): BLAKE2s keyed with a key of 1 to 32 bytes (RFC 7693), as the tag of mac: the tag of a message under a key in one call, on any backend that has it. Status: recommended. Choose it: A fast keyed tag on 32-bit and small machines, without HMAC's two passes. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) - webcpp::hash::hmac (, RFC 2104): hmac, HMAC over any Boost.Hash2 hash. Status: recommended. Choose it: HMAC over a hash that has no alias of its own. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) - webcpp::hash::hmac_md5_128 (, RFC 2104): HMAC over MD5, legacy. Status: legacy. Choose it: Only for an existing protocol. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) @@ -99,55 +99,55 @@ Keyed hashes: a tag that only the holder of a secret key can compute, so that a - webcpp::hash::hmac_ripemd_160 (, RFC 2104): HMAC over RIPEMD-160, legacy. Status: legacy. Choose it: Only for an existing protocol. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) - webcpp::hash::hmac_blake2b_512 (, RFC 2104): HMAC over BLAKE2b; a keyed BLAKE2b does the same job faster. Status: recommended. Choose it: When a protocol names HMAC-BLAKE2b; otherwise a keyed blake2b_512. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) - webcpp::hash::hmac_blake2s_256 (, RFC 2104): HMAC over BLAKE2s. Status: recommended. Choose it: For WireGuard-style protocols. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hmac) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over MD5, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_md5_128 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-1, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha1_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-256, the default MAC, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over MD5, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_md5_128 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-1, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha1_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-256, the default MAC, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) - webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512/224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512/256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over RIPEMD-160, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_ripemd_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2b; a keyed BLAKE2b does the same job faster, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2b_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2s, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2s_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-224 with the original padding, not SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-224; HMAC over SHA3-224 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-256 with the original padding, not SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-256; HMAC over SHA3-256 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-384 with the original padding, not SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-384; HMAC over SHA3-384 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-512 with the original padding, not SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-512; HMAC over SHA3-512 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SM3, China's national 256-bit digest, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires SM3, naming backends::openssl or backends::botan; HMAC-SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-256 (HMAC_GOSTR3411_2012_256, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-256 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-512 (HMAC_GOSTR3411_2012_512, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Whirlpool, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Whirlpool, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) -- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Skein-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Skein-512, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA-512/256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha2_512_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_224 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_384 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_sha3_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over RIPEMD-160, legacy, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: legacy. Choose it: To compute a tag in one call, on a backend named in the call; hmac_ripemd_160 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2b; a keyed BLAKE2b does the same job faster, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2b_512 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over BLAKE2s, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on any backend that has it. Status: recommended. Choose it: To compute a tag in one call, on a backend named in the call; hmac_blake2s_256 itself to feed the message in pieces. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-mac-family) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-224 with the original padding, not SHA3-224, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-224; HMAC over SHA3-224 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-256 with the original padding, not SHA3-256, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-256; HMAC over SHA3-256 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-384 with the original padding, not SHA3-384, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-384; HMAC over SHA3-384 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Keccak-512 with the original padding, not SHA3-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Keccak-512; HMAC over SHA3-512 for anything new. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over SM3, China's national 256-bit digest, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: recommended. Choose it: Where a Chinese standard or a regulator requires SM3, naming backends::openssl or backends::botan; HMAC-SHA-256 everywhere else. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-openssl) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-256 (HMAC_GOSTR3411_2012_256, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-256 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Streebog-512 (HMAC_GOSTR3411_2012_512, RFC 7836), as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a Russian standard requires it, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Whirlpool, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Whirlpool, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) +- webcpp::hash::macs::hmac (, RFC 2104): HMAC over Skein-512, as the tag of mac: the tag of a message under a key in one call, cut to 10 bytes or more if needed, on a backend the call names (it has no default). Status: legacy. Choose it: Only where a format names HMAC over Skein-512, naming backends::botan; HMAC-SHA-512 everywhere else. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-macs-botan) ## Key derivation HKDF, PBKDF2 and BLAKE2b subkeys: keys from a shared secret or a master key (HKDF, libsodium's crypto_kdf), or from a password where a standard demands PBKDF2. [Key derivation](https://webcpporg.github.io/libs/hash/#hash-kdfs) -- webcpp::hash::hkdf_extract (, RFC 5869): HKDF-Extract: a uniform pseudorandom key from a secret that is not uniform, such as a Diffie-Hellman result. Status: recommended. Choose it: When a protocol names the extract step alone. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) -- webcpp::hash::hkdf_expand (, RFC 5869): HKDF-Expand: many keys, each for one purpose, from one pseudorandom key. Status: recommended. Choose it: Keys from a key that is already uniform (a master key), one per info label. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) -- webcpp::hash::hkdf (, RFC 5869): HKDF, extract then expand: keys from a shared secret, each separated by its info label. Status: recommended. Choose it: The default way to turn one secret into several keys. Never for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) -- webcpp::hash::pbkdf2 (, RFC 8018): PBKDF2: a key from a password by many iterations of an hmac; not memory-hard. Status: where a standard names it. Choose it: When a standard or FIPS 140 demands it; otherwise Argon2id for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-pbkdf2) +- webcpp::hash::hkdf_extract (, RFC 5869): HKDF-Extract: a uniform pseudorandom key from a secret that is not uniform, such as a Diffie-Hellman result. Status: recommended. Choose it: When a protocol names the extract step alone. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) +- webcpp::hash::hkdf_expand (, RFC 5869): HKDF-Expand: many keys, each for one purpose, from one pseudorandom key. Status: recommended. Choose it: Keys from a key that is already uniform (a master key), one per info label. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) +- webcpp::hash::hkdf (, RFC 5869): HKDF, extract then expand: keys from a shared secret, each separated by its info label. Status: recommended. Choose it: The default way to turn one secret into several keys. Never for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), bearssl (/third_party//bearssl; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-hkdf) +- webcpp::hash::pbkdf2 (, RFC 8018): PBKDF2: a key from a password by many iterations of an hmac; not memory-hard. Status: where a standard names it. Choose it: When a standard or FIPS 140 demands it; otherwise Argon2id for passwords. Backends: hash2 (/webcpp/hash//hash; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten), webcrypto, asynchronous family only (/webcpp/asio//asio; emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-pbkdf2) - webcpp::hash::blake2b_subkey (, libsodium's crypto_kdf: keyed BLAKE2b (RFC 7693) with the subkey's id as the salt and the context as the personalisation): BLAKE2b subkeys, libsodium's crypto_kdf: many keys of 16 to 64 bytes from one 32-byte master key, each named by a 64-bit id and an 8-byte context. Status: recommended. Choose it: To derive the keys a libsodium program derives from the same master key, or keys numbered by id from one random master key; hkdf for a secret that is not uniformly random. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-blake2b-subkey) -- webcpp::hash::kbkdf (, NIST SP 800-108r1, counter mode over HMAC): KBKDF, NIST SP 800-108's key derivation in counter mode over HMAC: keys from a key-derivation key, a label and a context. Status: recommended. Choose it: When a standard, a protocol or a smart card names SP 800-108's counter mode; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kbkdf) -- webcpp::hash::sskdf (, NIST SP 800-56C Rev. 2, one-step KDF over a hash function (SHA-1, SHA-2, SHA-3)): The one-step KDF of NIST SP 800-56C over a hash (the Concat KDF): keys from a key-agreement's shared secret and its fixed info. Status: recommended. Choose it: To derive the key JOSE's ECDH-ES, PKINIT or another SP 800-56C protocol derives; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sskdf) -- webcpp::hash::x963kdf (, ANSI X9.63-2011 and SEC 1 v2, over SHA-1, SHA-224, SHA-256, SHA-384 or SHA-512 (SEC 1 v2, section 3.5)): The KDF of ANSI X9.63 (SEC 1): keys from an elliptic-curve shared secret and shared info, the counter after the secret. Status: recommended. Choose it: To derive the keys ECIES or a smart card's key agreement derives by ANSI X9.63; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-x963kdf) +- webcpp::hash::kbkdf (, NIST SP 800-108r1, counter mode over HMAC): KBKDF, NIST SP 800-108's key derivation in counter mode over HMAC: keys from a key-derivation key, a label and a context. Status: recommended. Choose it: When a standard, a protocol or a smart card names SP 800-108's counter mode; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-kbkdf) +- webcpp::hash::sskdf (, NIST SP 800-56C Rev. 2, one-step KDF over a hash function (SHA-1, SHA-2, SHA-3)): The one-step KDF of NIST SP 800-56C over a hash (the Concat KDF): keys from a key-agreement's shared secret and its fixed info. Status: recommended. Choose it: To derive the key JOSE's ECDH-ES, PKINIT or another SP 800-56C protocol derives; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-sskdf) +- webcpp::hash::x963kdf (, ANSI X9.63-2011 and SEC 1 v2, over SHA-1, SHA-224, SHA-256, SHA-384 or SHA-512 (SEC 1 v2, section 3.5)): The KDF of ANSI X9.63 (SEC 1): keys from an elliptic-curve shared secret and shared info, the counter after the secret. Status: recommended. Choose it: To derive the keys ECIES or a smart card's key agreement derives by ANSI X9.63; hkdf for a new design. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-x963kdf) ## Password hashing Argon2id and scrypt: slow, memory-hard functions that make every guess of a stolen password database expensive. [Password hashing](https://webcpporg.github.io/libs/hash/#hash-password-hashing) -- webcpp::hash::argon2id (, RFC 9106, one lane): Argon2id: the recommended password hash, memory-hard, winner of the Password Hashing Competition. Status: recommended. Choose it: Storing passwords and deriving keys from them. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2id) -- webcpp::hash::kdfs::argon2d (, RFC 9106, every parameter): Argon2d with every parameter of RFC 9106, the tag of argon2: memory accesses that depend on the password, on a backend the call names (it has no default). Status: where no attacker shares the machine. Choose it: Never for passwords; only where a format names Argon2d and no attacker shares the machine. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) -- webcpp::hash::kdfs::argon2i (, RFC 9106, every parameter): Argon2i (RFC 9106), Argon2's variant whose memory access does not depend on the password, as the tag of argon2: the passes, the memory, the lanes, a secret and associated data, on any backend that has them. Status: legacy. Choose it: Only to check tags a system already stored with Argon2i; Argon2id for anything new. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) -- webcpp::hash::kdfs::argon2id (, RFC 9106, every parameter): Argon2id (RFC 9106) as the tag of argon2: the passes, the memory in KiB, the lanes, a secret (a pepper) and associated data, on any backend that has them; on libsodium the same tag as the function argon2id. Status: recommended. Choose it: Storing passwords and deriving keys from them where a parameter beyond the function argon2id's is needed (lanes, a pepper, associated data); argon2id otherwise. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) -- webcpp::hash::scrypt (, RFC 7914): scrypt: a memory-hard password hash, older than Argon2id. Status: recommended. Choose it: When a format demands scrypt; otherwise Argon2id. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-scrypt) -- webcpp::hash::bcrypt (, Provos and Mazieres, A Future-Adaptable Password Scheme (USENIX 1999), as OpenBSD's bcrypt(3) writes it): bcrypt: OpenBSD's password hash, the modular crypt string "$2b$" that systems store, on a backend the call names (it has no default). Status: legacy. Choose it: To check or make the bcrypt strings a system already stores; Argon2id for a new design. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) -- webcpp::hash::bcrypt_pbkdf (, OpenBSD's bcrypt_pbkdf(3), as OpenSSH's private keys use it): bcrypt_pbkdf: OpenBSD's key derivation over bcrypt's hash, which OpenSSH's private key files use, on a backend the call names (it has no default). Status: legacy. Choose it: To read or write OpenSSH's encrypted private keys; Argon2id for a new design. Backends: botan (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) +- webcpp::hash::argon2id (, RFC 9106, one lane): Argon2id: the recommended password hash, memory-hard, winner of the Password Hashing Competition. Status: recommended. Choose it: Storing passwords and deriving keys from them. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2id) +- webcpp::hash::kdfs::argon2d (, RFC 9106, every parameter): Argon2d with every parameter of RFC 9106, the tag of argon2: memory accesses that depend on the password, on a backend the call names (it has no default). Status: where no attacker shares the machine. Choose it: Never for passwords; only where a format names Argon2d and no attacker shares the machine. Backends: openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) +- webcpp::hash::kdfs::argon2i (, RFC 9106, every parameter): Argon2i (RFC 9106), Argon2's variant whose memory access does not depend on the password, as the tag of argon2: the passes, the memory, the lanes, a secret and associated data, on any backend that has them. Status: legacy. Choose it: Only to check tags a system already stored with Argon2i; Argon2id for anything new. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) +- webcpp::hash::kdfs::argon2id (, RFC 9106, every parameter): Argon2id (RFC 9106) as the tag of argon2: the passes, the memory in KiB, the lanes, a secret (a pepper) and associated data, on any backend that has them; on libsodium the same tag as the function argon2id. Status: recommended. Choose it: Storing passwords and deriving keys from them where a parameter beyond the function argon2id's is needed (lanes, a pepper, associated data); argon2id otherwise. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-argon2-family) +- webcpp::hash::scrypt (, RFC 7914): scrypt: a memory-hard password hash, older than Argon2id. Status: recommended. Choose it: When a format demands scrypt; otherwise Argon2id. Backends: sodium (/third_party//sodium; native, wasip2, wasip3, emscripten), openssl (/webcpp/hash//openssl; native, wasip2, wasip3), botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-scrypt) +- webcpp::hash::bcrypt (, Provos and Mazieres, A Future-Adaptable Password Scheme (USENIX 1999), as OpenBSD's bcrypt(3) writes it): bcrypt: OpenBSD's password hash, the modular crypt string "$2b$" that systems store, on a backend the call names (it has no default). Status: legacy. Choose it: To check or make the bcrypt strings a system already stores; Argon2id for a new design. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) +- webcpp::hash::bcrypt_pbkdf (, OpenBSD's bcrypt_pbkdf(3), as OpenSSH's private keys use it): bcrypt_pbkdf: OpenBSD's key derivation over bcrypt's hash, which OpenSSH's private key files use, on a backend the call names (it has no default). Status: legacy. Choose it: To read or write OpenSSH's encrypted private keys; Argon2id for a new design. Backends: botan, with exceptions only (/third_party//botan; native, emscripten). [Section](https://webcpporg.github.io/libs/hash/#hash-bcrypt) ## Hashes that are not cryptographic