#include <cryptography_key.h>
Reference counted class of CryptoKeyInterface.
◆ CryptoKey()
Allocates the class.
- Parameters
-
[in] | cryptoAlgorithm | Id of an encryption algorithm. e.g. StreamConversions::AesEncoder.GetId(). |
[in] | blockSizeBits | Blocksize of the algorithm in bits. |
[in] | key1 | Pointer to the data of key 1. |
[in] | key1BitSize | Size of the key 1 in bits. |
[in] | key2 | Pointer to the data of key 2. |
[in] | key2BitSize | Size of the key 2 in bits. |
[in] | flags | Additional flags. |
[in] | callback | Callback function for CTR mode. |
◆ MAXON_DEFAULT_REFERENCE_CONSTRUCTORS()
MAXON_DEFAULT_REFERENCE_CONSTRUCTORS |
( |
CryptoKey |
, |
|
|
Reference |
|
|
) |
| |
◆ EmbedStreamName()
Result<Url> EmbedStreamName |
( |
const Url & |
unencryptedStream | ) |
|
Returns a new Url where the given stream name is wrapped into a URLSCHEME_CRYPTOFILE with the given crypto key. This allows to do file en-/decryption on the fly when reading/writing streams.
- Parameters
-
[in] | unencryptedStream | The stream name of the unencrypted stream. |
- Returns
- Returns a new Url which can be used as encrypted io stream.
◆ CreateInterface()