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 {
13
class
OpensslSha2_256
final :
public
Hasher
{
14
public
:
15
~
OpensslSha2_256
() noexcept
override
;
16
std::optional<std::vector<Byte>> hash(ByteView)
override
;
17
};
18
}
// namespace ipfs::crypto
19
20
#endif
// IPFS_OPENSSL_SHA2_256_H_
ipfs::crypto::Hasher
Definition:
hasher.h:12
ipfs::crypto::OpensslSha2_256
Definition:
openssl_sha2_256.h:13
Generated by
1.9.1