ipfs-chromium
Public Member Functions | List of all members
ipfs::crypto::OpensslSha2_256 Class Referencefinal

#include <library/src/ipfs_client/crypto/openssl_sha2_256.h>

Inheritance diagram for ipfs::crypto::OpensslSha2_256:
Inheritance graph
[legend]
Collaboration diagram for ipfs::crypto::OpensslSha2_256:
Collaboration graph
[legend]

Public Member Functions

std::optional< std::vector< Byte > > hash (ByteView) override
 

Detailed Description

Implement SHA-256 hashing

Member Function Documentation

◆ hash()

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

Implements ipfs::crypto::Hasher.


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