crypto::Sha256
- Inherits: api::ExecutionContext
public - Inherits: var::Transformer
public
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 &)=deleteSha256(Sha256 &&a) noexcept#
inline
crypto::Sha256::Sha256 (Sha256 &&a) noexcept~Sha256()#
crypto::Sha256::~Sha256 ()operator=(const Sha256 &)=delete#
Sha256 & crypto::Sha256::operator= (const Sha256 &)=deleteType: Sha256 &
Parameters:
- const Sha256 &
operator=(Sha256 &&a) noexcept#
inline
Sha256 & crypto::Sha256::operator= (Sha256 &&a) noexceptType: Sha256 &
Parameters:
- Sha256 &&
a
output() const#
inline
const Hash & crypto::Sha256::output () constType: const Hash &
to_string() const#
inline
var::GeneralString crypto::Sha256::to_string () constType: var::GeneralString
transform(const Transform &options) const override#
inline
int crypto::Sha256::transform (const Transform &options) const overrideType: int
Parameters:
- const Transform &
options
update(const var::View &data) const#
const Sha256 & crypto::Sha256::update (const var::View &data) constType: 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_objectu8fill
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