crypto::Sha256
- Inherits: api::ExecutionContext
public
- Inherits: var::Transformer
public
Types
#
Hashusing crypto::Sha256::Hash = var::Array<u8, 32>
Type: var::Array< u8, 32 >
Functions
#
Sha256()crypto::Sha256::Sha256 ()
#
Sha256(const Sha256 &)=deletecrypto::Sha256::Sha256 (const Sha256 &)=delete
#
Sha256(Sha256 &&a) noexceptinline
crypto::Sha256::Sha256 (Sha256 &&a) noexcept
#
~Sha256()crypto::Sha256::~Sha256 ()
#
operator=(const Sha256 &)=deleteSha256 & crypto::Sha256::operator= (const Sha256 &)=delete
Type: Sha256 &
Parameters:
- const Sha256 &
#
operator=(Sha256 &&a) noexceptinline
Sha256 & crypto::Sha256::operator= (Sha256 &&a) noexcept
Type: Sha256 &
Parameters:
- Sha256 &&
a
#
output() constinline
const Hash & crypto::Sha256::output () const
Type: const Hash &
#
to_string() constinline
var::GeneralString crypto::Sha256::to_string () const
Type: var::GeneralString
#
transform(const Transform &options) const overrideinline
int crypto::Sha256::transform (const Transform &options) const override
Type: int
Parameters:
- const Transform &
options
#
update(const var::View &data) constconst Sha256 & crypto::Sha256::update (const var::View &data) const
Type: const Sha256 &
Parameters:
- const var::View &
data
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:
- const var::StringView
value
#
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