diff --git a/Source/Core/Common/Crypto/SHA1.h b/Source/Core/Common/Crypto/SHA1.h index b828c28f15..6fd29172c0 100644 --- a/Source/Core/Common/Crypto/SHA1.h +++ b/Source/Core/Common/Crypto/SHA1.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -23,7 +24,11 @@ class Context public: virtual ~Context() = default; virtual void Update(const u8* msg, size_t len) = 0; - void Update(const std::vector& msg) { return Update(msg.data(), msg.size()); } + void Update(std::span msg) { return Update(msg.data(), msg.size()); } + void Update(std::string_view msg) + { + return Update(reinterpret_cast(msg.data()), msg.size()); + } virtual Digest Finish() = 0; virtual bool HwAccelerated() const = 0; };