embedded IPsec source code documentation


sha1_test.c File Reference


Detailed Description

Test functions for SHA1.

Author:
Christian Scheurer <http://www.christianscheurer.ch>
OUTLINE:

This file contains test functions used to verify the SHA1 code.

IMPLEMENTATION:

There are no implementation hints to be mentioned.

NOTES:

This document is part of embedded IPsec
Copyright (c) 2003 Niklaus Schild and Christian Scheurer, HTI Biel/Bienne
All rights reserved.


Definition in file sha1_test.c.

#include <string.h>
#include "ipsec/util.h"
#include "ipsec/sha1.h"
#include "ipsec/debug.h"
#include "testing/structural/structural_test.h"

Go to the source code of this file.

Functions

int sha1_test_SHA1_Init (void)
int sha1_test_SHA1_Update (void)
int sha1_test_SHA1_Final (void)
void sha1_test (test_result *global_results)


Function Documentation

void sha1_test test_result global_results  ) 
 

Main test function for the SHA1 tests. It does nothing but calling the subtests one after the other.

Definition at line 268 of file sha1_test.c.

int sha1_test_SHA1_Final void   ) 
 

Test the SHA1_Final() function

Returns:
int number of tests failed in this function

Definition at line 195 of file sha1_test.c.

int sha1_test_SHA1_Init void   ) 
 

Test the SHA1_Init() function

Returns:
int number of tests failed in this function

Definition at line 62 of file sha1_test.c.

int sha1_test_SHA1_Update void   ) 
 

Test the SHA1_Update() function

Returns:
int number of tests failed in this function

Definition at line 108 of file sha1_test.c.


Copyright 2003 by Christian Scheurer and Niklaus Schild