
This change adds: crypto:#️⃣:Sha1 crypto:#️⃣:Sha256 crypto:#️⃣:Sha512 crypto::hmac::SignSha1 crypto::hmac::SignSha256 crypto::hmac::SignSha512 crypto::hmac::VerifySha1 crypto::hmac::VerifySha256 crypto::hmac::VerifySha512 and also three more generic functions that take a HashKind: crypto:#️⃣:Hash crypto::hmac::Sign crypto::hmac::Verify These functions should be able to replace most users of the existing SecureHash and HMAC APIs with single-shot calls. The kind-specific wrapper functions exist primarily because they allow for compile-time checking that the right digest sizes are being used. This change also adds: crypto:#️⃣:Hasher which is a streaming, spanified interface to replace crypto::SecureHash and which does not require a factory function or heap allocations. Bug: 374310081, 374334448 Change-Id: Ie18904063099eb5376b01f9e0deaf4c5eba134ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5943830 Commit-Queue: Elly FJ <ellyjones@chromium.org> Reviewed-by: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/main@{#1372836}
Chromium
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead,
follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.