CryptMT3  1.0
Data Structures | Functions
cryptmt Namespace Reference

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...
 

Detailed Description

namespace for CriptMT

Function Documentation

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().

Parameters
[in]sizebyte size of memory to allocate.
Returns
the pointer to the memory which can be used for SIMD function.
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().

Parameters
[in]ptrthe 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.

Returns
the unit size of key measured in bits.
uint32_t cryptmt::maxKeySize ( )

This function returns the maximum key size measured in bits.

Returns
the maximum key size measured in bits.