md2.c File Reference
MD2 Message-Digest algorithm. More...
#include "md2.h"
#include <string.h>
#include <cfg/compiler.h>
#include <cfg/debug.h>
#include <cfg/macros.h>
#include <cpu/pgm.h>
Go to the source code of this file.
Defines | |
| #define | K1 5 |
| 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. | |
Detailed Description
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).
- Version:
- Id
- md2.c 1636 2008-08-13 10:42:23Z bernie
Definition in file md2.c.
Define Documentation
| #define K1 5 |
Function Documentation
| uint8_t* md2_end | ( | Md2Context * | context | ) |
| void md2_init | ( | Md2Context * | context | ) |
| static void md2_pad | ( | void * | _block, | |
| size_t | len_pad | |||
| ) | [static] |
| bool md2_test | ( | void | ) |
