Apache HTTPD
Functions | Variables
testmd4.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "apr_errno.h"
#include "apr_md4.h"
#include "apr_file_io.h"
#include "abts.h"
#include "testutil.h"

Go to the source code of this file.

Functions

static void test_md4sum (abts_case *tc, void *data)
 
abts_suitetestmd4 (abts_suite *suite)
 

Variables

struct { 
 
   const char *   string 
 
   const char *   md4sum 
 
md4sums [] 
 
static int num_sums = sizeof(md4sums) / sizeof(md4sums[0])
 
static int count
 

Function Documentation

◆ test_md4sum()

static void test_md4sum ( abts_case tc,
void *  data 
)
static

Definition at line 92 of file testmd4.c.

◆ testmd4()

abts_suite * testmd4 ( abts_suite suite)

Definition at line 110 of file testmd4.c.

Variable Documentation

◆ count

int count
static

Definition at line 75 of file testmd4.c.

◆ md4sum

const char* md4sum

Definition at line 44 of file testmd4.c.

◆ [struct]

struct { ... } md4sums[]
Initial value:
=
{
{"",
"\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0"},
{"a",
"\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46\x24\x5e\x05\xfb\xdb\xd6\xfb\x24"},
{"abc",
"\xa4\x48\x01\x7a\xaf\x21\xd8\x52\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d"},
{"message digest",
"\xd9\x13\x0a\x81\x64\x54\x9f\xe8\x18\x87\x48\x06\xe1\xc7\x01\x4b"},
{"abcdefghijklmnopqrstuvwxyz",
"\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd\xee\xa8\xed\x63\xdf\x41\x2d\xa9"},
{"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
"\x04\x3f\x85\x82\xf2\x41\xdb\x35\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4"},
{"12345678901234567890123456789012345678901234567890123456789012345678901234567890",
"\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19\x9c\x3e\x7b\x16\x4f\xcc\x05\x36"}
}

◆ num_sums

int num_sums = sizeof(md4sums) / sizeof(md4sums[0])
static

Definition at line 74 of file testmd4.c.

◆ string

const char* string

Definition at line 43 of file testmd4.c.