◆ SHA256State()
| MbedTlsWrapper::SHA256State::SHA256State |
( |
| ) |
|
597648
597650
597652 throw std::runtime_error("SHA256 Error");
597653 }
int mbedtls_sha256_starts(mbedtls_sha256_context *ctx, int is224)
This function starts a SHA-224 or SHA-256 checksum calculation.
Definition duckdb.cpp:596790
struct mbedtls_sha256_context mbedtls_sha256_context
The SHA-256 context structure.
void mbedtls_sha256_init(mbedtls_sha256_context *ctx)
This function initializes a SHA-256 context.
Definition duckdb.cpp:596767
◆ ~SHA256State()
| MbedTlsWrapper::SHA256State::~SHA256State |
( |
| ) |
|
597656 {
597659 delete context;
void mbedtls_sha256_free(mbedtls_sha256_context *ctx)
This function clears a SHA-256 context.
Definition duckdb.cpp:596772
◆ AddString()
| void MbedTlsWrapper::SHA256State::AddString |
( |
const std::string & | str | ) |
|
597662 {
597665 throw std::runtime_error("SHA256 Error");
597666 }
int mbedtls_sha256_update(mbedtls_sha256_context *ctx, const unsigned char *input, size_t ilen)
This function feeds an input buffer into an ongoing SHA-256 checksum calculation.
Definition duckdb.cpp:597187
◆ AddBytes() [1/2]
| void MbedTlsWrapper::SHA256State::AddBytes |
( |
duckdb::data_ptr_t | input_bytes, |
|
|
duckdb::idx_t | len ) |
597676 {
597677 AddBytes(duckdb::const_data_ptr_t(input_bytes), len);
◆ AddBytes() [2/2]
| void MbedTlsWrapper::SHA256State::AddBytes |
( |
duckdb::const_data_ptr_t | input_bytes, |
|
|
duckdb::idx_t | len ) |
597669 {
597672 throw std::runtime_error("SHA256 Error");
597673 }
◆ AddSalt()
| void MbedTlsWrapper::SHA256State::AddSalt |
( |
unsigned char * | salt, |
|
|
size_t | salt_len ) |
597680 {
597683 throw std::runtime_error("SHA256 Error");
597684 }
◆ Finalize()
| std::string MbedTlsWrapper::SHA256State::Finalize |
( |
| ) |
|
597695 {
597697
597698 string hash;
597699 hash.resize(MbedTlsWrapper::SHA256_HASH_LENGTH_BYTES);
597700
597702 throw std::runtime_error("SHA256 Error");
597703 }
597704
597705 return hash;
int mbedtls_sha256_finish(mbedtls_sha256_context *ctx, unsigned char *output)
This function finishes the SHA-256 operation, and writes the result to the output buffer.
Definition duckdb.cpp:597242
◆ FinishHex()
| void MbedTlsWrapper::SHA256State::FinishHex |
( |
char * | out | ) |
|
597708 {
597710
597711 string hash;
597712 hash.resize(MbedTlsWrapper::SHA256_HASH_LENGTH_BYTES);
597713
597715 throw std::runtime_error("SHA256 Error");
597716 }
597717
597718 MbedTlsWrapper::ToBase16(const_cast<char *>(hash.c_str()), out, MbedTlsWrapper::SHA256_HASH_LENGTH_BYTES);
◆ FinalizeDerivedKey()
| void MbedTlsWrapper::SHA256State::FinalizeDerivedKey |
( |
duckdb::data_ptr_t | hash | ) |
|
597687 {
597689
597691 throw std::runtime_error("SHA256 Error");
597692 }
The documentation for this class was generated from the following file: