8#ifndef INCLUDED_BDLDE_SHA2
9#define INCLUDED_BDLDE_SHA2
120#include <bdlscm_version.h>
122#include <bsl_cstddef.h>
123#include <bsl_cstdint.h>
124#include <bsl_iosfwd.h>
151 bsl::uint64_t d_totalSize;
153 bsl::uint64_t d_bufferSize;
155 unsigned char d_buffer[512 / 8];
159 bsl::uint32_t d_state[8];
179 Sha224(
const void *data, bsl::size_t length);
198 void update(
const void *data, bsl::size_t length);
212 bsl::ostream&
print(bsl::ostream& stream)
const;
237 bsl::uint64_t d_totalSize;
239 bsl::uint64_t d_bufferSize;
241 unsigned char d_buffer[512 / 8];
245 bsl::uint32_t d_state[8];
265 Sha256(
const void *data, bsl::size_t length);
284 void update(
const void *data, bsl::size_t length);
298 bsl::ostream&
print(bsl::ostream& stream)
const;
323 bsl::uint64_t d_totalSize;
325 bsl::uint64_t d_bufferSize;
327 unsigned char d_buffer[1024 / 8];
331 bsl::uint64_t d_state[8];
351 Sha384(
const void *data, bsl::size_t length);
370 void update(
const void *data, bsl::size_t length);
384 bsl::ostream&
print(bsl::ostream& stream)
const;
409 bsl::uint64_t d_totalSize;
411 bsl::uint64_t d_bufferSize;
413 unsigned char d_buffer[1024 / 8];
417 bsl::uint64_t d_state[8];
437 Sha512(
const void *data, bsl::size_t length);
456 void update(
const void *data, bsl::size_t length);
470 bsl::ostream&
print(bsl::ostream& stream)
const;
569 return !(lhs == rhs);
575 return digest.print(stream);
586 return !(lhs == rhs);
592 return digest.print(stream);
602 return digest.print(stream);
609 return !(lhs == rhs);
620 return !(lhs == rhs);
626 return digest.print(stream);
Definition bdlde_sha2.h:148
void update(const void *data, bsl::size_t length)
void loadDigestAndReset(unsigned char *result)
static const bsl::size_t k_DIGEST_SIZE
The size (in bytes) of the output.
Definition bdlde_sha2.h:168
Sha224(const void *data, bsl::size_t length)
void loadDigest(unsigned char *result) const
Load the value of this SHA-2 digest into the specified result.
friend bool operator==(const Sha224 &, const Sha224 &)
bsl::ostream & print(bsl::ostream &stream) const
Definition bdlde_sha2.h:234
void loadDigestAndReset(unsigned char *result)
static const bsl::size_t k_DIGEST_SIZE
The size (in bytes) of the output.
Definition bdlde_sha2.h:254
Sha256(const void *data, bsl::size_t length)
bsl::ostream & print(bsl::ostream &stream) const
void update(const void *data, bsl::size_t length)
void loadDigest(unsigned char *result) const
Load the value of this SHA-2 digest into the specified result.
friend bool operator==(const Sha256 &, const Sha256 &)
Definition bdlde_sha2.h:320
friend bool operator==(const Sha384 &, const Sha384 &)
Sha384(const void *data, bsl::size_t length)
void update(const void *data, bsl::size_t length)
bsl::ostream & print(bsl::ostream &stream) const
static const bsl::size_t k_DIGEST_SIZE
The size (in bytes) of the output.
Definition bdlde_sha2.h:340
void loadDigest(unsigned char *result) const
Load the value of this SHA-2 digest into the specified result.
void loadDigestAndReset(unsigned char *result)
Definition bdlde_sha2.h:406
static const bsl::size_t k_DIGEST_SIZE
The size (in bytes) of the output.
Definition bdlde_sha2.h:426
Sha512(const void *data, bsl::size_t length)
void update(const void *data, bsl::size_t length)
bsl::ostream & print(bsl::ostream &stream) const
friend bool operator==(const Sha512 &, const Sha512 &)
void loadDigestAndReset(unsigned char *result)
void loadDigest(unsigned char *result) const
Load the value of this SHA-2 digest into the specified result.
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlde_base64alphabet.h:118
bool operator!=(const Base64DecoderOptions &lhs, const Base64DecoderOptions &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, Base64Alphabet::Enum value)