Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ specific to hash.
- Every C library is upstream code (CODING-GUIDELINES.md chapter 5 rule 1): never modify
third-party code; a defect found in a dependency is reported to the owner, who submits the fix
upstream, and until upstream applies it the pin may point at our fork's branch carrying exactly
that patch. BearSSL is ae63032 of webcpporg/bearssl's branch
upstream/ecdsa-bits2int-constant-time: upstream 7bea48e and the ECDSA nonce fix submitted
upstream, which does not touch hashing; the pin returns to upstream once the patch is applied.
that patch. BearSSL is f8a2f3d of webcpporg/bearssl's branch webcpp-pin: upstream 7bea48e
and the two fixes submitted upstream, the ECDSA nonce's (ae63032) and P-256's scalar check's
(ec57f88), which do not touch hashing; the pin returns to upstream once they are applied.
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.
Expand Down
10 changes: 5 additions & 5 deletions doc/backends.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ states about its constant time. The backends:
| every function of its cells

| bearssl
| BearSSL at ae63032 (webcpporg/bearssl's branch upstream/ecdsa-bits2int-constant-time: upstream 7bea48e (v0.6-39) and the ECDSA nonce fix submitted upstream, which does not touch hashing)
| BearSSL at f8a2f3d (webcpporg/bearssl's branch webcpp-pin: upstream 7bea48e (v0.6-39) and the two fixes submitted upstream, the ECDSA nonce's and P-256's scalar check's, which do not touch hashing)
| MIT
| `/third_party//bearssl`
| native, wasip2, wasip3, emscripten
Expand Down Expand Up @@ -2212,10 +2212,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 upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin ae63032: bearssl_kdf.h states no constant-time property for br_shake_*.
** BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out.
** BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out.
** BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: 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 at webcpp's pin f8a2f3d: bearssl_kdf.h states no constant-time property for br_shake_*.
** BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out.
** BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call 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.
Expand Down
40 changes: 20 additions & 20 deletions doc/capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"name": "bearssl",
"tag": "backends::bearssl",
"macro": "BEARSSL",
"library": "BearSSL at ae63032 (webcpporg/bearssl's branch upstream/ecdsa-bits2int-constant-time: upstream 7bea48e (v0.6-39) and the ECDSA nonce fix submitted upstream, which does not touch hashing)",
"library": "BearSSL at f8a2f3d (webcpporg/bearssl's branch webcpp-pin: upstream 7bea48e (v0.6-39) and the two fixes submitted upstream, the ECDSA nonce's and P-256's scalar check's, which do not touch hashing)",
"licence": "MIT",
"jamfile": "/third_party//bearssl",
"targets": [
Expand Down Expand Up @@ -390,7 +390,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin f8a2f3d: 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": {
Expand Down Expand Up @@ -430,7 +430,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin f8a2f3d: 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": {
Expand Down Expand Up @@ -478,7 +478,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin f8a2f3d: 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": {
Expand Down Expand Up @@ -526,7 +526,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin f8a2f3d: 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": {
Expand Down Expand Up @@ -574,7 +574,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin f8a2f3d: 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": {
Expand Down Expand Up @@ -630,7 +630,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin f8a2f3d: 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": {
Expand Down Expand Up @@ -726,7 +726,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: 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 at webcpp's pin f8a2f3d: 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": {
Expand Down Expand Up @@ -1055,7 +1055,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_kdf.h states no constant-time property for br_shake_*."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_kdf.h states no constant-time property for br_shake_*."
}
},
"openssl": {
Expand Down Expand Up @@ -1111,7 +1111,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_kdf.h states no constant-time property for br_shake_*."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_kdf.h states no constant-time property for br_shake_*."
}
},
"openssl": {
Expand Down Expand Up @@ -2392,7 +2392,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -2433,7 +2433,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -2482,7 +2482,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -2531,7 +2531,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -2580,7 +2580,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -2637,7 +2637,7 @@
"hmacs": null,
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -3559,7 +3559,7 @@
],
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -3682,7 +3682,7 @@
],
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -3804,7 +3804,7 @@
],
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
}
},
"openssl": {
Expand Down Expand Up @@ -3926,7 +3926,7 @@
],
"constant_time": {
"value": "not stated",
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
"source": "BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out."
}
},
"openssl": {
Expand Down
2 changes: 1 addition & 1 deletion doc/generated/backends-hkdf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@

What each backend states on constant time, as the capability table read it:

* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call br_hmac_out.
* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: bearssl_hmac.h states constant time for br_hmac_outCT alone; br_hkdf_* (src/kdf/hkdf.c) and HKDF over pieces call 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.
** Botan 3.14.1: doc/api_ref/message_auth_codes.rst states no constant-time property of HMAC, and its source (src/lib/mac/hmac/) none; HKDF over pieces calls its HMAC.
Expand Down
2 changes: 1 addition & 1 deletion doc/generated/backends-hmac.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@

What each backend states on constant time, as the capability table read it:

* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin ae63032: bearssl_hmac.h states constant time for br_hmac_outCT alone; mac calls br_hmac_out.
* `bearssl`: BearSSL upstream 7bea48e (v0.6-39), unchanged at webcpp's pin f8a2f3d: 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.
Expand Down
Loading
Loading