17 std::unique_ptr<folly::IOBuf>
ecSign(
40 template <SignatureScheme Scheme>
45 static constexpr
int HashNid = NID_sha256;
51 static constexpr
int HashNid = NID_sha256;
57 static constexpr
int HashNid = NID_sha384;
63 static constexpr
int HashNid = NID_sha512;
67 template <KeyType Type>
68 template <SignatureScheme Scheme>
84 template <KeyType Type>
85 template <SignatureScheme Scheme>
125 if (EVP_PKEY_id(pkey.get()) != EVP_PKEY_RSA) {
126 throw std::runtime_error(
"key not rsa");
void rsaPssVerify(folly::ByteRange data, folly::ByteRange signature, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid)
constexpr detail::Map< Move > move
std::unique_ptr< folly::IOBuf > sign(folly::ByteRange data) const
std::unique_ptr< EVP_PKEY, EvpPkeyDeleter > EvpPkeyUniquePtr
FOLLY_ALWAYS_INLINE void assume_unreachable()
void validateECKey(const folly::ssl::EvpPkeyUniquePtr &key, int curveNid)
void verify(folly::ByteRange data, folly::ByteRange signature) const
std::unique_ptr< folly::IOBuf > ecSign(folly::ByteRange data, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid)
void ecVerify(folly::ByteRange data, folly::ByteRange signature, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid)
void setKey(folly::ssl::EvpPkeyUniquePtr pkey)
static constexpr uint64_t data[1]
std::unique_ptr< folly::IOBuf > rsaPssSign(folly::ByteRange data, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid)