#include <cryptography_key.h>
Stores encryption parameters for a StreamConversionRef class.
@MAXON_ANNOTATION{refclass=false}
Public Member Functions | |
MAXON_METHOD const Id & | GetCryptoAlgorithm () const |
MAXON_METHOD Int | GetBlockBitSize () const |
MAXON_METHOD const void * | GetKey1 () const |
MAXON_METHOD Int | GetKey1BitSize () const |
MAXON_METHOD const void * | GetKey2 () const |
MAXON_METHOD Int | GetKey2BitSize () const |
MAXON_METHOD UInt64 | GetFlags () const |
MAXON_METHOD const BLOCK_CIPHER_CTR_CALLBACK & | GetCallbackFunction () const |
MAXON_METHOD String | ToString (const FormatStatement *formatStatement=nullptr) const |
Static Public Member Functions | |
static MAXON_METHOD CryptoKeyInterface * | Alloc (MAXON_SOURCE_LOCATION_DECLARATION, const Id &cryptoAlgorithm, Int blockSizeBits, const void *key1, Int key1BitSize, const void *key2=nullptr, Int key2BitSize=0, UInt64 flags=0, BLOCK_CIPHER_CTR_CALLBACK &&callback=BLOCK_CIPHER_CTR_CALLBACK()) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (CryptoKeyInterface, MAXON_REFERENCE_CONST, "net.maxon.interface.cryptokey") | |
|
private |
|
static |
Allocates the class.
[in] | allocLocation | Pass MAXON_SOURCE_LOCATION(_NAME) to add the current source line and file. |
[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. Please consult the documentation of the cryptography algorithm for an explanation. |
MAXON_METHOD const Id& GetCryptoAlgorithm | ( | ) | const |
Returns the cryptography algorithm.
MAXON_METHOD Int GetBlockBitSize | ( | ) | const |
Returns the cryptography block size in bits.
MAXON_METHOD const void* GetKey1 | ( | ) | const |
Returns the cryptography data of key 1.
MAXON_METHOD Int GetKey1BitSize | ( | ) | const |
Returns the cryptography size of key 1.
MAXON_METHOD const void* GetKey2 | ( | ) | const |
Returns the cryptography data of key 2.
MAXON_METHOD Int GetKey2BitSize | ( | ) | const |
Returns the cryptography size of key 2.
MAXON_METHOD UInt64 GetFlags | ( | ) | const |
Returns the additional flags.
MAXON_METHOD const BLOCK_CIPHER_CTR_CALLBACK& GetCallbackFunction | ( | ) | const |
Returns the callback delegate.
MAXON_METHOD String ToString | ( | const FormatStatement * | formatStatement = nullptr | ) | const |