iPXE
Functions | Variables
sha224.c File Reference

SHA-224 algorithm. More...

#include <stdint.h>
#include <byteswap.h>
#include <ipxe/crypto.h>
#include <ipxe/asn1.h>
#include <ipxe/sha256.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static void sha224_init (void *ctx)
 Initialise SHA-224 algorithm.

Variables

static struct sha256_digest sha224_init_digest
 SHA-224 initial digest values.
struct digest_algorithm sha224_algorithm
 SHA-224 algorithm.
static uint8_t oid_sha224 [] = { ASN1_OID_SHA224 }
 "sha224" object identifier
struct asn1_algorithm
oid_sha224_algorithm 
__asn1_algorithm
 "sha224" OID-identified algorithm

Detailed Description

SHA-224 algorithm.

Definition in file sha224.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static void sha224_init ( void *  ctx) [static]

Initialise SHA-224 algorithm.

Parameters:
ctxSHA-224 context

Definition at line 57 of file sha224.c.

References context, ctx, SHA224_DIGEST_SIZE, and sha256_family_init().


Variable Documentation

Initial value:
 {
        .h = {
                cpu_to_be32 ( 0xc1059ed8 ),
                cpu_to_be32 ( 0x367cd507 ),
                cpu_to_be32 ( 0x3070dd17 ),
                cpu_to_be32 ( 0xf70e5939 ),
                cpu_to_be32 ( 0xffc00b31 ),
                cpu_to_be32 ( 0x68581511 ),
                cpu_to_be32 ( 0x64f98fa7 ),
                cpu_to_be32 ( 0xbefa4fa4 ),
        },
}

SHA-224 initial digest values.

Definition at line 39 of file sha224.c.

Initial value:
 {
        .name           = "sha224",
        .ctxsize        = sizeof ( struct sha256_context ),
        .blocksize      = sizeof ( union sha256_block ),
        .digestsize     = SHA224_DIGEST_SIZE,
        .init           = sha224_init,
        .update         = sha256_update,
        .final          = sha256_final,
}

SHA-224 algorithm.

Definition at line 64 of file sha224.c.

Referenced by sha256_test_exec().

"sha224" object identifier

Definition at line 75 of file sha224.c.

struct asn1_algorithm oid_sha224_algorithm __asn1_algorithm
Initial value:
 {
        .name = "sha224",
        .digest = &sha224_algorithm,
        .oid = ASN1_OID_CURSOR ( oid_sha224 ),
}

"sha224" OID-identified algorithm

Definition at line 78 of file sha224.c.