#include <crypted_storage.h>
template<class t_base_storage, class crypt_provider, class t_key_provider>
class epee::crypted_storage< t_base_storage, crypt_provider, t_key_provider >
Definition at line 36 of file crypted_storage.h.
◆ LoadFromSolidBuffer()
template<class t_base_storage , class crypt_provider , class t_key_provider >
| size_t epee::crypted_storage< t_base_storage, crypt_provider, t_key_provider >::LoadFromSolidBuffer |
( |
const std::string & |
pTargetObj | ) |
|
|
inline |
Definition at line 51 of file crypted_storage.h.
55 return t_base_storage::LoadFromSolidBuffer(buff_to_decrypt);
void decrypt(const void *ciphertext, size_t length, const uint8_t *key, const uint8_t *iv, char *plaintext, size_t *plaintext_len)
◆ PackToSolidBuffer()
template<class t_base_storage , class crypt_provider , class t_key_provider >
| size_t epee::crypted_storage< t_base_storage, crypt_provider, t_key_provider >::PackToSolidBuffer |
( |
std::string & |
targetObj | ) |
|
|
inline |
Definition at line 39 of file crypted_storage.h.
41 size_t res = t_base_storage::PackToSolidBuffer(targetObj);
45 if(!crypt_provider::encrypt(targetObj, t_key_provider::get_storage_default_key()))
48 return targetObj.size();
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/contrib/epee/include/storages/crypted_storage.h