0
Go to file
Elly 1e2fd41e22 //crypto: start reworking hash & hmac interfaces
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}
2024-10-23 18:06:46 +00:00
2024-10-23 18:03:49 +00:00
2024-10-22 22:06:25 +00:00
2024-10-22 22:06:25 +00:00
2024-10-22 08:20:13 +00:00

Logo 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.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%