Defines |
|
#define | K1 5 |
| Md2_perm() function generate an array of 256 "casual" permutation.
|
#define | K2 3 |
| Md2_perm() function generate an array of 256 "casual" permutation.
|
#define | R 2 |
| Md2_perm() function generate an array of 256 "casual" permutation.
|
#define | X 172 |
| Md2_perm() function generate an array of 256 "casual" permutation.
|
Functions |
static void | md2_pad (void *_block, size_t len_pad) |
| Pad function.
|
void | md2_init (Md2Context *context) |
| Algorithm initialization.
|
void | md2_update (Md2Context *context, const void *_block_in, size_t block_len) |
| Update block.
|
uint8_t * | md2_end (Md2Context *context) |
| Ends an MD2 message digest operation.
|
bool | md2_test (void) |
| MD2 test fuction.
|
MD2 Message-Digest algorithm.
The MD2 algorithm work with a constant array of 256 permutationt defined in RFC1319. If you don't want to use a standard array of permutatione you can use a md2_perm() function that generate an array of 256 "casual" permutation. To swich from a standard array to md2_perm function you must chanche CONFIG_MD2_STD_PERM defined in appconfig.h. If you need to store array in program memory you must define a macro _PROGMEM (for more info see cpu/pgm.h).
- Author:
- Daniele Basile <asterix@develer.com>
Definition in file md2.c.