1#ifndef IPFS_CHROMIUM_OPENSSL_SIGNATURE_VERIFIER_H
2#define IPFS_CHROMIUM_OPENSSL_SIGNATURE_VERIFIER_H
4#include "signature_verifier.h"
6#if __has_include(<openssl/evp.h>)
7#include <openssl/evp.h>
8#define HAS_OPENSSL_EVP 1
11namespace ipfs::crypto {
15class OpensslSignatureVerifier :
public SignatureVerifier {
16 int const openssl_key_type_;
19 OpensslSignatureVerifier(
int);
20 ~OpensslSignatureVerifier() noexcept override;
22 bool VerifySignature(ByteView signature,
24 ByteView key) override;