Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
rawhash.c File Reference
#include "nspr.h"
#include "sechash.h"
#include "blapi.h"
#include "secerr.h"

Go to the source code of this file.

Functions

static voidnull_hash_new_context (void)
static voidnull_hash_clone_context (void *v)
static void null_hash_begin (void *v)
static void null_hash_update (void *v, const unsigned char *input, unsigned int length)
static void null_hash_end (void *v, unsigned char *output, unsigned int *outLen, unsigned int maxOut)
static void null_hash_destroy_context (void *v, PRBool b)
const SECHashObject * HASH_GetRawHashObject (HASH_HashType hashType)

Variables

const SECHashObject SECRawHashObjects []

Function Documentation

const SECHashObject* HASH_GetRawHashObject ( HASH_HashType  hashType)

Definition at line 157 of file rawhash.c.

{
    if (hashType < HASH_AlgNULL || hashType >= HASH_AlgTOTAL) {
       PORT_SetError(SEC_ERROR_INVALID_ARGS);
       return NULL;
    }
    return &SECRawHashObjects[hashType];
}

Here is the call graph for this function:

static void null_hash_begin ( void v) [static]

Definition at line 56 of file rawhash.c.

{
}
static void* null_hash_clone_context ( void v) [static]

Definition at line 49 of file rawhash.c.

{
    PORT_Assert(v == NULL);
    return NULL;
}
static void null_hash_destroy_context ( void v,
PRBool  b 
) [static]

Definition at line 73 of file rawhash.c.

{
    PORT_Assert(v == NULL);
}
static void null_hash_end ( void v,
unsigned char *  output,
unsigned int outLen,
unsigned int  maxOut 
) [static]

Definition at line 66 of file rawhash.c.

{
    *outLen = 0;
}
static void* null_hash_new_context ( void  ) [static]

Definition at line 43 of file rawhash.c.

{
    return NULL;
}
static void null_hash_update ( void v,
const unsigned char *  input,
unsigned int  length 
) [static]

Definition at line 61 of file rawhash.c.

{
}

Variable Documentation

const SECHashObject SECRawHashObjects[]

Definition at line 79 of file rawhash.c.