Skip to main content

crypto::Sha256

Types

Hash#

using crypto::Sha256::Hash =  var::Array<u8, 32> 

Type: var::Array< u8, 32 >

Functions

Sha256()#

crypto::Sha256::Sha256 ()

Sha256(const Sha256 &)=delete#

crypto::Sha256::Sha256 (const Sha256 &)=delete

Sha256(Sha256 &&a) noexcept#

inline

crypto::Sha256::Sha256 (Sha256 &&a) noexcept

~Sha256()#

crypto::Sha256::~Sha256 ()

operator=(const Sha256 &)=delete#

Sha256 & crypto::Sha256::operator= (const Sha256 &)=delete

Type: Sha256 &

Parameters:

operator=(Sha256 &&a) noexcept#

inline

Sha256 & crypto::Sha256::operator= (Sha256 &&a) noexcept

Type: Sha256 &

Parameters:

output() const#

inline

const Hash & crypto::Sha256::output () const

Type: const Hash &

to_string() const#

inline

var::GeneralString crypto::Sha256::to_string () const

Type: var::GeneralString

transform(const Transform &options) const override#

inline

int crypto::Sha256::transform (const Transform &options) const override

Type: int

Parameters:

update(const var::View &data) const#

const Sha256 & crypto::Sha256::update (const var::View &data) const

Type: const Sha256 &

Parameters:

Static Functions

append_aligned_hash(const fs::FileObject &file_object, u8 fill=0xff)#

static Hash crypto::Sha256::append_aligned_hash (const fs::FileObject &file_object, u8 fill=0xff)

Type: Hash

Parameters:

  • const fs::FileObject & file_object
  • u8 fill

check_aligned_hash(const fs::FileObject &file_object)#

static bool crypto::Sha256::check_aligned_hash (const fs::FileObject &file_object)

Type: bool

Parameters:

  • const fs::FileObject & file_object

from_string(const var::StringView value)#

inline

static Hash crypto::Sha256::from_string (const var::StringView value)

Type: Hash

Parameters:

get_hash(const fs::FileObject &file)#

inline

static Hash crypto::Sha256::get_hash (const fs::FileObject &file)

Type: Hash

Parameters:

  • const fs::FileObject & file

page_size()#

inline

static constexpr size_t crypto::Sha256::page_size ()

Type: constexpr size_t