axtls_sha1.c File Reference

#include "crypto/axtls/crypto.h"
#include <gpxe/crypto.h>
#include <gpxe/sha1.h>

Go to the source code of this file.

Functions

static void sha1_init (void *ctx)
static void sha1_update (void *ctx, const void *data, size_t len)
static void sha1_final (void *ctx, void *out)

Variables

struct digest_algorithm sha1_algorithm


Function Documentation

static void sha1_init ( void *  ctx  )  [static]

Definition at line 5 of file axtls_sha1.c.

References SHA1Init().

00005                                     {
00006         SHA1Init ( ctx );
00007 }

static void sha1_update ( void *  ctx,
const void *  data,
size_t  len 
) [static]

Definition at line 9 of file axtls_sha1.c.

References SHA1Update().

00009                                                                     {
00010         SHA1Update ( ctx, data, len );
00011 }

static void sha1_final ( void *  ctx,
void *  out 
) [static]

Definition at line 13 of file axtls_sha1.c.

References SHA1Final().

00013                                                 {
00014         SHA1Final ( ctx, out );
00015 }


Variable Documentation

Initial value:

 {
        .name           = "sha1",
        .ctxsize        = SHA1_CTX_SIZE,
        .blocksize      = 64,
        .digestsize     = SHA1_DIGEST_SIZE,
        .init           = sha1_init,
        .update         = sha1_update,
        .final          = sha1_final,
}

Definition at line 17 of file axtls_sha1.c.

Referenced by add_tls(), ccmp_kie_mic(), pbkdf2_sha1_f(), prf_sha1(), sha1sum_exec(), tls_add_handshake(), tls_prf(), tls_select_cipher(), tls_verify_handshake(), and wpa_check_pmkid().


Generated on Tue Apr 6 20:01:15 2010 for gPXE by  doxygen 1.5.7.1