Files
brave-core/net
Claudio DeSouza a1ef31f15a Host hash keys using uint8_t arrays
Chromium change:
https://chromium.googlesource.com/chromium/src/+/0eeeef18a45c127c54ef1f216e9c0fa89603b5c7

commit 0eeeef18a45c127c54ef1f216e9c0fa89603b5c7
Author: Eric Orth <ericorth@chromium.org>
Date:   Thu Dec 1 23:49:57 2022 +0000

    Convert wire-format DNS names to uint8_t vectors

    Change the output of the conversion functions in dns_util.h and also modernize them to put the output in the return using an optional. Convert the stuff normally taking wire-format DNS names (mostly DnsQuery and DnsResponse) to take the vectors or spans.

    A noteworthy change is in TransportSecurityState, which takes domain names, converts to wire format, and then SHA-2 hashes them.  The SHA-2 hash code being used does support hashing binary data, but it then returns the hash as a std::array instead of as a string.  So I made the changes to keep treating the hashes as std::arrays instead of adding extra code to convert them to/from strings.

    No expected behavior changes.
2023-01-25 07:42:29 +00:00
..
2023-01-25 07:42:29 +00:00
2022-10-13 16:51:38 -04:00