Back to index

courier  0.68.2
Defines | Functions
hmac.c File Reference
#include "sha1.h"
#include "../libhmac/hmac.h"

Go to the source code of this file.

Defines

#define SHA1_INTERNAL

Functions

static void alloc_context_sha1 (void(*func)(void *, void *), void *arg)
static void alloc_hash_sha1 (void(*func)(unsigned char *, void *), void *arg)
static void alloc_context_sha256 (void(*func)(void *, void *), void *arg)
static void alloc_hash_sha256 (void(*func)(unsigned char *, void *), void *arg)

Define Documentation

#define SHA1_INTERNAL

Definition at line 5 of file hmac.c.


Function Documentation

static void alloc_context_sha1 ( void(*)(void *, void *)  func,
void *  arg 
) [static]

Definition at line 10 of file hmac.c.

{
struct SHA1_CONTEXT c;

       (*func)((void *)&c, arg);
}
static void alloc_context_sha256 ( void(*)(void *, void *)  func,
void *  arg 
) [static]

Definition at line 37 of file hmac.c.

{
struct SHA256_CONTEXT c;

       (*func)((void *)&c, arg);
}
static void alloc_hash_sha1 ( void(*)(unsigned char *, void *)  func,
void *  arg 
) [static]

Definition at line 17 of file hmac.c.

{
unsigned char c[SHA1_DIGEST_SIZE];

       (*func)(c, arg);
}
static void alloc_hash_sha256 ( void(*)(unsigned char *, void *)  func,
void *  arg 
) [static]

Definition at line 44 of file hmac.c.

{
unsigned char c[SHA256_DIGEST_SIZE];

       (*func)(c, arg);
}