ipfs-chromium
Loading...
Searching...
No Matches
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
10namespace ipfs::crypto {
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_
Definition hasher.h:12
Definition openssl_sha2_256.h:13
std::optional< std::vector< Byte > > hash(ByteView) override
Just an observing (non-owning) pointer.
Definition raw_ptr.h:31