|
AWS IoT Device SDK C++ v2
1.42.1
AWS IoT Device SDK C++ v2
|
Go to the documentation of this file.
9 #include <aws/cal/hash.h>
33 size_t truncateTo = 0) noexcept;
54 size_t truncateTo = 0) noexcept;
74 size_t truncateTo = 0) noexcept;
94 size_t truncateTo = 0) noexcept;
122 operator bool() const noexcept;
127 inline
int LastError() const noexcept {
return m_lastError; }
153 bool Update(const
ByteCursor &toHash) noexcept;
162 bool Digest(
ByteBuf &output,
size_t truncateTo = 0) noexcept;
174 bool ComputeOneShot(const
ByteCursor &input,
ByteBuf &output,
size_t truncateTo = 0) noexcept;
180 size_t DigestSize() const noexcept;
183 Hash(aws_hash *hash) noexcept;
205 aws_hash *SeatForCInterop(
const std::shared_ptr<ByoHash> &selfRef);
226 static
void s_Destroy(struct aws_hash *hash);
227 static
int s_Update(struct aws_hash *hash, const struct aws_byte_cursor *buf);
228 static
int s_Finalize(struct aws_hash *hash, struct aws_byte_buf *out);
230 static aws_hash_vtable s_Vtable;
231 aws_hash m_hashValue;
static const size_t SHA512_DIGEST_SIZE
Definition: Hash.h:20
virtual bool UpdateInternal(const ByteCursor &toHash) noexcept=0
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
AWS_CRT_CPP_API int LastError() noexcept
Definition: Api.cpp:464
bool AWS_CRT_CPP_API ComputeSHA1(Allocator *allocator, const ByteCursor &input, ByteBuf &output, size_t truncateTo=0) noexcept
Definition: Hash.cpp:45
static const size_t SHA1_DIGEST_SIZE
Definition: Hash.h:18
bool AWS_CRT_CPP_API ComputeMD5(Allocator *allocator, const ByteCursor &input, ByteBuf &output, size_t truncateTo=0) noexcept
Definition: Hash.cpp:56
Hash(const Hash &)=delete
virtual bool DigestInternal(ByteBuf &output, size_t truncateTo=0) noexcept=0
bool AWS_CRT_CPP_API ComputeSHA256(Allocator *allocator, const ByteCursor &input, ByteBuf &output, size_t truncateTo=0) noexcept
Definition: Hash.cpp:15
static const size_t SHA256_DIGEST_SIZE
Definition: Hash.h:19
std::function< std::shared_ptr< ByoHash >(size_t digestSize, Allocator *)> CreateHashCallback
Definition: Hash.h:235
static const size_t MD5_DIGEST_SIZE
Definition: Hash.h:21
Hash & operator=(const Hash &)=delete
bool AWS_CRT_CPP_API ComputeSHA512(Allocator *allocator, const ByteCursor &input, ByteBuf &output, size_t truncateTo=0) noexcept
Definition: Hash.cpp:30
aws_byte_buf ByteBuf
Definition: Types.h:30
Definition: StringView.h:862
#define AWS_CRT_CPP_API
Definition: Exports.h:36
Definition: Allocator.h:11
aws_byte_cursor ByteCursor
Definition: Types.h:31
aws_allocator Allocator
Definition: Allocator.h:14