#ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_SIGN_H_
#define COMPONENTS_WEBCRYPTO_ALGORITHMS_RSA_SIGN_H_
#include <stdint.h>
#include <vector>
#include "base/containers/span.h"
namespace blink {
class WebCryptoKey;
}
namespace webcrypto {
class Status;
Status RsaSign(const blink::WebCryptoKey& key,
unsigned int pss_salt_length_bytes,
base::span<const uint8_t> data,
std::vector<uint8_t>* buffer);
Status RsaVerify(const blink::WebCryptoKey& key,
unsigned int pss_salt_length_bytes,
base::span<const uint8_t> signature,
base::span<const uint8_t> data,
bool* signature_match);
}
#endif