diff options
Diffstat (limited to 'chromium/device/fido/cable/noise.h')
-rw-r--r-- | chromium/device/fido/cable/noise.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/device/fido/cable/noise.h b/chromium/device/fido/cable/noise.h index 8bd4d8c906c..0372f452b82 100644 --- a/chromium/device/fido/cable/noise.h +++ b/chromium/device/fido/cable/noise.h @@ -12,6 +12,7 @@ #include "base/component_export.h" #include "base/containers/span.h" +#include "third_party/boringssl/src/include/openssl/base.h" namespace device { @@ -41,6 +42,10 @@ class COMPONENT_EXPORT(DEVICE_FIDO) Noise { base::Optional<std::vector<uint8_t>> DecryptAndHash( base::span<const uint8_t> ciphertext); + // MaxHashPoint calls |MixHash| with the uncompressed, X9.62 serialization of + // |point|. + void MixHashPoint(const EC_POINT* point); + // traffic_keys() calls Split from the protocol spec but, rather than // returning CipherState objects, returns the raw keys. std::tuple<std::array<uint8_t, 32>, std::array<uint8_t, 32>> traffic_keys() |