|
| | EncryptionKey (data_ptr_t encryption_key) |
|
| EncryptionKey (const EncryptionKey &)=delete |
|
EncryptionKey & | operator= (const EncryptionKey &)=delete |
|
| EncryptionKey (EncryptionKey &&) noexcept=default |
|
EncryptionKey & | operator= (EncryptionKey &&) noexcept=default |
| const_data_ptr_t | GetPtr () const |
| data_ptr_t | GetData () |
◆ EncryptionKey()
| duckdb::EncryptionKey::EncryptionKey |
( |
data_ptr_t | encryption_key | ) |
|
|
explicit |
52116 {
52117
52120
52121
52122 duckdb_mbedtls::MbedTlsWrapper::AESStateMBEDTLS::SecureClearData(encryption_key_p,
52124 LockEncryptionKey(key);
52125}
static constexpr uint64_t DEFAULT_ENCRYPTION_KEY_LENGTH
The encryption key length.
Definition duckdb.hpp:9749
◆ ~EncryptionKey()
| duckdb::EncryptionKey::~EncryptionKey |
( |
| ) |
|
52128 {
52129 UnlockEncryptionKey(key);
52130}
◆ GetPtr()
| const_data_ptr_t duckdb::EncryptionKey::GetPtr |
( |
| ) |
const |
|
inline |
51726 {
51727 return key;
51728 }
◆ GetData()
| data_ptr_t duckdb::EncryptionKey::GetData |
( |
| ) |
|
|
inline |
51730 {
51731 return key;
51732 }
◆ LockEncryptionKey()
52132 {
52133#if defined(_WIN32)
52134 VirtualLock(key, key_len);
52135#elif defined(__MVS__)
52136 __mlockall(_BPX_NONSWAP);
52137#else
52138 mlock(key, key_len);
52139#endif
52140}
◆ UnlockEncryptionKey()
52142 {
52143 duckdb_mbedtls::MbedTlsWrapper::AESStateMBEDTLS::SecureClearData(key, key_len);
52144#if defined(_WIN32)
52145 VirtualUnlock(key, key_len);
52146#elif defined(__MVS__)
52147 __mlockall(_BPX_SWAP);
52148#else
52149 munlock(key, key_len);
52150#endif
52151}
The documentation for this class was generated from the following file: