ccRTP 2.1.2
|
Go to the source code of this file.
Functions | |
void | macSkein (uint8_t *key, int32_t key_length, const uint8_t *data, uint32_t data_length, uint8_t *mac, int32_t mac_length, SkeinSize_t skeinSize) |
Compute Skein MAC. More... | |
void | macSkein (uint8_t *key, int32_t key_length, const uint8_t *data[], uint32_t data_length[], uint8_t *mac, int32_t mac_length, SkeinSize_t skeinSize) |
Compute Skein MAC over several data cunks. More... | |
void * | createSkeinMacContext (uint8_t *key, int32_t key_length, int32_t mac_length, SkeinSize_t skeinSize) |
Create and initialize a Skein MAC context. More... | |
void | macSkeinCtx (void *ctx, const uint8_t *data, uint32_t data_length, uint8_t *mac) |
Compute Skein MAC. More... | |
void | macSkeinCtx (void *ctx, const uint8_t *data[], uint32_t data_length[], uint8_t *mac) |
Compute Skein MAC over several data cunks. More... | |
void | freeSkeinMacContext (void *ctx) |
Free Skein MAC context. More... | |
void* createSkeinMacContext | ( | uint8_t * | key, |
int32_t | key_length, | ||
int32_t | mac_length, | ||
SkeinSize_t | skeinSize | ||
) |
Create and initialize a Skein MAC context.
An application uses this context to hash several data with on Skein MAC Context with the same key, key length and mac length
key | The MAC key. |
key_length | Lenght of the MAC key in bytes |
mac_length | Integer that contains the length of the MAC in bits (not bytes). |
skeinSize | The Skein size to use. |
Definition at line 51 of file macSkein.cpp.
void freeSkeinMacContext | ( | void * | ctx | ) |
Free Skein MAC context.
ctx | a pointer to Skein MAC context |
Definition at line 85 of file macSkein.cpp.
void macSkein | ( | uint8_t * | key, |
int32_t | key_length, | ||
const uint8_t * | data, | ||
uint32_t | data_length, | ||
uint8_t * | mac, | ||
int32_t | mac_length, | ||
SkeinSize_t | skeinSize | ||
) |
Compute Skein MAC.
This functions takes one data chunk and computes its Skein MAC.
key | The MAC key. |
key_length | Lneght of the MAC key in bytes |
data | Points to the data chunk. |
data_length | Length of the data in bytes |
mac | Points to a buffer that receives the computed digest. |
mac_length | Integer that contains the length of the MAC in bits (not bytes). |
skeinSize | The Skein size to use. |
Definition at line 21 of file macSkein.cpp.
void macSkein | ( | uint8_t * | key, |
int32_t | key_length, | ||
const uint8_t * | data[], | ||
uint32_t | data_length[], | ||
uint8_t * | mac, | ||
int32_t | mac_length, | ||
SkeinSize_t | skeinSize | ||
) |
Compute Skein MAC over several data cunks.
This functions takes several data chunk and computes the Skein MAC.
key | The MAC key. |
key_length | Lneght of the MAC key in bytes |
data | Points to an array of pointers that point to the data chunks. A NULL pointer in an array element terminates the data chunks. |
data_length | Points to an array of integers that hold the length of each data chunk. |
mac | Points to a buffer that receives the computed digest. |
mac_length | Integer that contains the length of the MAC in bits (not bytes). |
skeinSize | The Skein size to use. |
Definition at line 34 of file macSkein.cpp.
void macSkeinCtx | ( | void * | ctx, |
const uint8_t * | data, | ||
uint32_t | data_length, | ||
uint8_t * | mac | ||
) |
Compute Skein MAC.
This functions takes one data chunk and computes its Skein MAC.
ctx | Pointer to initialized Skein MAC context |
data | Points to the data chunk. |
data_length | Length of the data in bytes |
mac | Points to a buffer that receives the computed digest. |
Definition at line 61 of file macSkein.cpp.
void macSkeinCtx | ( | void * | ctx, |
const uint8_t * | data[], | ||
uint32_t | data_length[], | ||
uint8_t * | mac | ||
) |
Compute Skein MAC over several data cunks.
This functions takes several data chunk and computes the SHA1 HAMAC.
ctx | Pointer to initialized Skein MAC context |
data | Points to an array of pointers that point to the data chunks. A NULL pointer in an array element terminates the data chunks. |
data_length | Points to an array of integers that hold the length of each data chunk. |
mac | Points to a buffer that receives the computed digest. |
Definition at line 71 of file macSkein.cpp.