embedded IPsec 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
 

Definition at line 57 of file sha1.h.

#define SHA_LBLOCK   16
 

Definition at line 56 of file sha1.h.

#define SHA_LONG   __u32
 

Definition at line 54 of file sha1.h.


Typedef Documentation

typedef struct SHAstate_st SHA_CTX
 


Function Documentation

void hmac_sha1 unsigned char *  ,
int  ,
unsigned char *  ,
int  ,
unsigned char * 
 

Definition at line 620 of file sha1.c.

unsigned char* SHA1 const unsigned char *  d,
unsigned long  n,
unsigned char *  md
 

Definition at line 59 of file sha1.c.

void SHA1_Final unsigned char *  md,
SHA_CTX c
 

Definition at line 251 of file sha1.c.

void SHA1_Init SHA_CTX c  ) 
 

Definition at line 307 of file sha1.c.

void SHA1_Transform SHA_CTX c,
const unsigned char *  data
 

Definition at line 245 of file sha1.c.

void SHA1_Update SHA_CTX c,
const void *  data,
unsigned long  len
 

Definition at line 158 of file sha1.c.


Copyright 2003 by Christian Scheurer and Niklaus Schild