#include <encrypted-file.hpp>
◆ EncryptedFileDesc() [1/2]
Kazv::EncryptedFileDesc::EncryptedFileDesc |
( |
| ) |
|
Constructs an empty EncryptedFileDesc.
The mxcUri, key, iv, and sha256Hash are guaranteed to be empty.
◆ EncryptedFileDesc() [2/2]
Kazv::EncryptedFileDesc::EncryptedFileDesc |
( |
std::string |
mxcUri, |
|
|
std::string |
key, |
|
|
std::string |
iv, |
|
|
std::string |
sha256Hash |
|
) |
| |
Constructs an EncryptedFileDesc from mxcUri, key, iv and sha256Hash.
- Parameters
-
mxcUri | The mxc uri to the file. |
key | The key encoded as urlsafe unpadded base64. |
iv | The iv encoded as unpadded base64. |
sha256Hash | The SHA256 hash encoded as unpadded base64. |
◆ ~EncryptedFileDesc()
Kazv::EncryptedFileDesc::~EncryptedFileDesc |
( |
| ) |
|
|
default |
◆ fromJson()
◆ iv()
std::string Kazv::EncryptedFileDesc::iv |
( |
| ) |
const |
- Returns
- The iv encoded as unpadded base64.
◆ key()
std::string Kazv::EncryptedFileDesc::key |
( |
| ) |
const |
- Returns
- The key encoded as urlsafe unpadded base64.
◆ load()
template<class Archive >
void Kazv::EncryptedFileDesc::load |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| |
|
inline |
◆ mxcUri()
std::string Kazv::EncryptedFileDesc::mxcUri |
( |
| ) |
const |
- Returns
- The mxc uri for this file.
◆ operator==()
- Returns
- Whether all of mxcUri, key, iv, and sha256Hash of this and that are equal.
◆ save()
template<class Archive >
void Kazv::EncryptedFileDesc::save |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| const |
|
inline |
◆ sha256Hash()
std::string Kazv::EncryptedFileDesc::sha256Hash |
( |
| ) |
const |
- Returns
- The SHA256 hash encoded as unpadded base64.
◆ toJson()
JsonWrap Kazv::EncryptedFileDesc::toJson |
( |
| ) |
const |
Convert the encrypted file metadata to an EncryptedFile json object.
- Returns
- An EncryptedFile json object representing this.
The documentation for this class was generated from the following files: