source
code documentation
md5.h File Reference
Detailed Description
Header of MD5 Message-Digest Algorithm.
- Author:
- Niklaus Schild <n.schild@gmx.ch>
This document is part of embedded IPsec
Copyright (c) 2003 Niklaus Schild and Christian Scheurer, HTI Biel/Bienne
All rights reserved.
This file contains code from the OpenSSL Project
portions Copyright (c) 1998-2003 OpenSSL (www.openssl.org)
Definition in file md5.h.
#include "ipsec/types.h"
Go to the source code of this file.
|
Data Structures |
struct | MD5state_st |
Defines |
#define | MD5_LONG __u32 |
#define | MD5_CBLOCK 64 |
#define | MD5_LBLOCK (MD5_CBLOCK/4) |
#define | MD5_DIGEST_LENGTH 16 |
Typedefs |
typedef MD5state_st | MD5_CTX |
Functions |
void | MD5_Init (MD5_CTX *c) |
void | MD5_Update (MD5_CTX *c, const void *data, unsigned long len) |
void | MD5_Final (unsigned char *md, MD5_CTX *c) |
unsigned char * | MD5 (const unsigned char *d, unsigned long n, unsigned char *md) |
void | MD5_Transform (MD5_CTX *c, const unsigned char *b) |
void | hmac_md5 (unsigned char *, int, unsigned char *, int, unsigned char *) |
Define Documentation
|
Definition at line 58 of file md5.h. |
#define MD5_DIGEST_LENGTH 16
|
|
|
Definition at line 60 of file md5.h. |
#define MD5_LBLOCK (MD5_CBLOCK/4)
|
|
|
Definition at line 59 of file md5.h. |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! MD5_LONG has to be at least 32 bits wide. If it's wider, then ! ! MD5_LONG_LOG2 has to be defined along. ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 55 of file md5.h. |
Typedef Documentation
Function Documentation
void hmac_md5 |
( |
unsigned char * |
text, |
|
|
int |
text_len, |
|
|
unsigned char * |
key, |
|
|
int |
key_len, |
|
|
unsigned char * |
digest |
|
) |
|
|
|
RFC 2104 hmac_md5 function calculates a digest from a given data buffer and a given key.
- Parameters:
-
text | pointer to data stream |
text_len | length of data stream |
key | pointer to authentication key |
key_len | length of authentication key |
digest | caller digest to be filled in 128-bit |
- Returns:
- void
Definition at line 559 of file md5.c. |
unsigned char* MD5 |
( |
const unsigned char * |
d, |
|
|
unsigned long |
n, |
|
|
unsigned char * |
md |
|
) |
|
|
|
Definition at line 60 of file md5.c. |
void MD5_Final |
( |
unsigned char * |
md, |
|
|
MD5_CTX * |
c |
|
) |
|
|
|
Definition at line 79 of file md5.c. |
void MD5_Transform |
( |
MD5_CTX * |
c, |
|
|
const unsigned char * |
b |
|
) |
|
|
void MD5_Update |
( |
MD5_CTX * |
c, |
|
|
const void * |
data, |
|
|
unsigned long |
len |
|
) |
|
|
|