8#ifndef INCLUDED_BDLDE_SHA1
9#define INCLUDED_BDLDE_SHA1
136#include <bdlscm_version.h>
138#include <bsl_cstddef.h>
139#include <bsl_cstdint.h>
140#include <bsl_iosfwd.h>
169 typedef bsl::uint32_t Word;
174 typedef Word State[5];
180 static const bsl::size_t k_BLOCK_SIZE = 512 / 8;
183 bsl::uint64_t d_totalSize;
185 bsl::uint64_t d_bufferSize;
189 unsigned char d_buffer[k_BLOCK_SIZE];
212 Sha1(
const void *data, bsl::size_t length);
236 void update(
const void *data, bsl::size_t length);
246 bsl::ostream&
print(bsl::ostream& stream)
const;
281 return !(lhs == rhs);
287 return digest.print(stream);
Definition bdlde_sha1.h:164
friend bool operator==(const Sha1 &, const Sha1 &)
void loadDigestAndReset(unsigned char *result)
static const bsl::size_t k_DIGEST_SIZE
The size (in bytes) of the output.
Definition bdlde_sha1.h:201
bsl::ostream & print(bsl::ostream &stream) const
void loadDigest(unsigned char *result) const
void update(const void *data, bsl::size_t length)
Sha1(const void *data, bsl::size_t length)
#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)