Include dependency graph for macSkein.cpp:
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)
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...
Create and initialize a Skein MAC context.
More...
void
macSkeinCtx (void *ctx, const uint8_t *data, uint32_t data_length, uint8_t *mac)
void
macSkeinCtx (void *ctx, const uint8_t *data[], uint32_t data_length[], uint8_t *mac)
Compute Skein MAC over several data cunks.
More...
Function Documentation
void* createSkeinMacContext
(
uint8_t *
key,
int32_t
key_length,
int32_t
mac_length,
)
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
- Parameters
-
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.
- Returns
- Returns a pointer to the initialized context
Definition at line 51 of file macSkein.cpp.
void freeSkeinMacContext
(
void *
ctx )
Free Skein MAC context.
- Parameters
-
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,
)
Compute Skein MAC.
This functions takes one data chunk and computes its Skein MAC.
- Parameters
-
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,
)
Compute Skein MAC over several data cunks.
This functions takes several data chunk and computes the Skein MAC.
- Parameters
-
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.
- Parameters
-
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.
- Parameters
-
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.