iPXE
Functions | Variables
sha384.c File Reference

SHA-384 algorithm. More...

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

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static void sha384_init (void *ctx)
 Initialise SHA-384 algorithm.

Variables

static struct sha512_digest sha384_init_digest
 SHA-384 initial digest values.
struct digest_algorithm sha384_algorithm
 SHA-384 algorithm.
static uint8_t oid_sha384 [] = { ASN1_OID_SHA384 }
 "sha384" object identifier
struct asn1_algorithm
oid_sha384_algorithm 
__asn1_algorithm
 "sha384" OID-identified algorithm

Detailed Description

SHA-384 algorithm.

Definition in file sha384.c.


Function Documentation

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

Initialise SHA-384 algorithm.

Parameters:
ctxSHA-384 context

Definition at line 57 of file sha384.c.

References context, ctx, SHA384_DIGEST_SIZE, and sha512_family_init().


Variable Documentation

Initial value:
 {
        .h = {
                cpu_to_be64 ( 0xcbbb9d5dc1059ed8ULL ),
                cpu_to_be64 ( 0x629a292a367cd507ULL ),
                cpu_to_be64 ( 0x9159015a3070dd17ULL ),
                cpu_to_be64 ( 0x152fecd8f70e5939ULL ),
                cpu_to_be64 ( 0x67332667ffc00b31ULL ),
                cpu_to_be64 ( 0x8eb44a8768581511ULL ),
                cpu_to_be64 ( 0xdb0c2e0d64f98fa7ULL ),
                cpu_to_be64 ( 0x47b5481dbefa4fa4ULL ),
        },
}

SHA-384 initial digest values.

Definition at line 39 of file sha384.c.

Initial value:
 {
        .name           = "sha384",
        .ctxsize        = sizeof ( struct sha512_context ),
        .blocksize      = sizeof ( union sha512_block ),
        .digestsize     = SHA384_DIGEST_SIZE,
        .init           = sha384_init,
        .update         = sha512_update,
        .final          = sha512_final,
}

SHA-384 algorithm.

Definition at line 64 of file sha384.c.

Referenced by peerdist_info_v1(), and sha512_test_exec().

"sha384" object identifier

Definition at line 75 of file sha384.c.

struct asn1_algorithm oid_sha384_algorithm __asn1_algorithm
Initial value:
 {
        .name = "sha384",
        .digest = &sha384_algorithm,
        .oid = ASN1_OID_CURSOR ( oid_sha384 ),
}

"sha384" OID-identified algorithm

Definition at line 78 of file sha384.c.