ipfs-chromium
library
src
ipfs_client
crypto
openssl_sha2_256.h
1
#ifndef IPFS_OPENSSL_SHA2_256_H_
2
#define IPFS_OPENSSL_SHA2_256_H_
3
4
#if __has_include(<openssl/sha.h>)
5
#define HAS_OPENSSL_SHA 1
6
#endif
7
8
#include <ipfs_client/crypto/hasher.h>
9
10
namespace
ipfs::crypto {
11
class
OpensslSha2_256
final :
public
Hasher
{
12
public
:
13
~
OpensslSha2_256
() noexcept
override
;
14
std::optional<std::vector<Byte>> hash(ByteView)
override
;
15
};
16
}
// namespace ipfs::crypto
17
18
#endif
// IPFS_OPENSSL_SHA2_256_H_
ipfs::crypto::Hasher
Definition:
hasher.h:12
ipfs::crypto::OpensslSha2_256
Definition:
openssl_sha2_256.h:11
Generated by
1.9.1