#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "crypto/signature_verifier.h"
#include <memory>
#include "base/check_op.h"
#include "crypto/openssl_util.h"
#include "third_party/boringssl/src/include/openssl/bytestring.h"
#include "third_party/boringssl/src/include/openssl/digest.h"
#include "third_party/boringssl/src/include/openssl/evp.h"
#include "third_party/boringssl/src/include/openssl/rsa.h"
namespace crypto {
struct SignatureVerifier::VerifyContext { … };
SignatureVerifier::SignatureVerifier() = default;
SignatureVerifier::~SignatureVerifier() = default;
bool SignatureVerifier::VerifyInit(SignatureAlgorithm signature_algorithm,
base::span<const uint8_t> signature,
base::span<const uint8_t> public_key_info) { … }
void SignatureVerifier::VerifyUpdate(base::span<const uint8_t> data_part) { … }
bool SignatureVerifier::VerifyFinal() { … }
void SignatureVerifier::Reset() { … }
}