ipfs-chromium
Public Member Functions | List of all members
ipfs::crypto::Hasher Class Referenceabstract

#include <library/include/ipfs_client/crypto/hasher.h>

Inheritance diagram for ipfs::crypto::Hasher:
Inheritance graph
[legend]

Public Member Functions

virtual std::optional< std::vector< Byte > > hash (ByteView bytes)=0
 

Detailed Description

Base for hash algorithms

Member Function Documentation

◆ hash()

virtual std::optional<std::vector<Byte> > ipfs::crypto::Hasher::hash ( ByteView  bytes)
pure virtual
Parameters
bytesBytes to hash
Returns
The digest or nullopt if there was an error

Implemented in ipfs::crypto::OpensslSha2_256.


The documentation for this class was generated from the following file: