◆ SHA1State()
| MbedTlsWrapper::SHA1State::SHA1State |
( |
| ) |
|
597723
597725
597727 throw std::runtime_error("SHA1 Error");
597728 }
struct mbedtls_sha1_context mbedtls_sha1_context
The SHA-1 context structure.
int mbedtls_sha1_starts(mbedtls_sha1_context *ctx)
This function starts a SHA-1 checksum calculation.
Definition duckdb.cpp:596103
void mbedtls_sha1_init(mbedtls_sha1_context *ctx)
This function initializes a SHA-1 context.
Definition duckdb.cpp:596080
◆ ~SHA1State()
| MbedTlsWrapper::SHA1State::~SHA1State |
( |
| ) |
|
597731 {
597734 delete context;
void mbedtls_sha1_free(mbedtls_sha1_context *ctx)
This function clears a SHA-1 context.
Definition duckdb.cpp:596085
◆ AddString()
| void MbedTlsWrapper::SHA1State::AddString |
( |
const std::string & | str | ) |
|
597737 {
597740 throw std::runtime_error("SHA1 Error");
597741 }
int mbedtls_sha1_update(mbedtls_sha1_context *ctx, const unsigned char *input, size_t ilen)
This function feeds an input buffer into an ongoing SHA-1 checksum calculation.
Definition duckdb.cpp:596291
◆ Finalize()
| std::string MbedTlsWrapper::SHA1State::Finalize |
( |
| ) |
|
597744 {
597746
597747 string hash;
597748 hash.resize(MbedTlsWrapper::SHA1_HASH_LENGTH_BYTES);
597749
597751 throw std::runtime_error("SHA1 Error");
597752 }
597753
597754 return hash;
int mbedtls_sha1_finish(mbedtls_sha1_context *ctx, unsigned char output[20])
This function finishes the SHA-1 operation, and writes the result to the output buffer.
Definition duckdb.cpp:596344
◆ FinishHex()
| void MbedTlsWrapper::SHA1State::FinishHex |
( |
char * | out | ) |
|
597757 {
597759
597760 string hash;
597761 hash.resize(MbedTlsWrapper::SHA1_HASH_LENGTH_BYTES);
597762
597764 throw std::runtime_error("SHA1 Error");
597765 }
597766
597767 MbedTlsWrapper::ToBase16(const_cast<char *>(hash.c_str()), out, MbedTlsWrapper::SHA1_HASH_LENGTH_BYTES);
The documentation for this class was generated from the following file: