CryptMT3
1.0
|
namespace for CriptMT More...
Data Structures | |
class | CryptMT |
CryptMT Stream Cipher. More... | |
Functions | |
void * | aligned_alloc (size_t size) |
This function allocate memory for SIMD function. More... | |
void | aligned_free (void *ptr) |
This function releases memory allocated by aligned_alloc(). More... | |
uint32_t | maxKeySize () |
This function returns the maximum key size measured in bits. More... | |
uint32_t | keySizeUnit () |
This function returns the unit size of key measured in bits. More... | |
namespace for CriptMT
void* cryptmt::aligned_alloc | ( | size_t | size | ) |
This function allocate memory for SIMD function.
Users should use aligned_free() to release the memory allocated by this function. Users can use the memory allocated by this function as if it were allocated by malloc().
[in] | size | byte size of memory to allocate. |
void cryptmt::aligned_free | ( | void * | ptr | ) |
This function releases memory allocated by aligned_alloc().
Action is not defined when the argument is not allocated by alligned_alloc().
[in] | ptr | the pointer to the memory allocated by aligned_alloc(). |
uint32_t cryptmt::keySizeUnit | ( | ) |
This function returns the unit size of key measured in bits.
The key size and IV size must be multiple of the unit size. This function always returns 128.
uint32_t cryptmt::maxKeySize | ( | ) |
This function returns the maximum key size measured in bits.