source
code documentation
sha1.h File Reference
Detailed Description
Header of US Secure Hash Algorithm 1 (SHA1).
- Author:
- Christian Scheurer <http://www.christianscheurer.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 sha1.h.
#include "ipsec/types.h"
Go to the source code of this file.
|
Data Structures |
struct | SHAstate_st |
Defines |
#define | SHA_LONG __u32 |
#define | SHA_LBLOCK 16 |
#define | SHA_DIGEST_LENGTH 20 |
Typedefs |
typedef SHAstate_st | SHA_CTX |
Functions |
void | SHA1_Init (SHA_CTX *c) |
void | SHA1_Update (SHA_CTX *c, const void *data, unsigned long len) |
void | SHA1_Final (unsigned char *md, SHA_CTX *c) |
unsigned char * | SHA1 (const unsigned char *d, unsigned long n, unsigned char *md) |
void | SHA1_Transform (SHA_CTX *c, const unsigned char *data) |
void | hmac_sha1 (unsigned char *, int, unsigned char *, int, unsigned char *) |
Define Documentation
#define SHA_DIGEST_LENGTH 20
|
|
Typedef Documentation
Function Documentation
void hmac_sha1 |
( |
unsigned char * |
, |
|
|
int |
, |
|
|
unsigned char * |
, |
|
|
int |
, |
|
|
unsigned char * |
|
|
) |
|
|
unsigned char* SHA1 |
( |
const unsigned char * |
d, |
|
|
unsigned long |
n, |
|
|
unsigned char * |
md |
|
) |
|
|
void SHA1_Final |
( |
unsigned char * |
md, |
|
|
SHA_CTX * |
c |
|
) |
|
|
void SHA1_Transform |
( |
SHA_CTX * |
c, |
|
|
const unsigned char * |
data |
|
) |
|
|
void SHA1_Update |
( |
SHA_CTX * |
c, |
|
|
const void * |
data, |
|
|
unsigned long |
len |
|
) |
|
|
|