iPXE
sha512_256.c File Reference

SHA-512/256 algorithm. More...

#include <ipxe/crypto.h>
#include <ipxe/sha512.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
 SHA512_ALGORITHM (sha512_256, sha512_256_algorithm, sha512_256_init, SHA512_256_DIGEST_SIZE)
 SHA-512/256 algorithm.

Variables

static const struct sha512_digest sha512_256_init
 SHA-512/256 initial digest values.

Detailed Description

SHA-512/256 algorithm.

Definition in file sha512_256.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ SHA512_ALGORITHM()

SHA512_ALGORITHM ( sha512_256 ,
sha512_256_algorithm ,
sha512_256_init ,
SHA512_256_DIGEST_SIZE  )

SHA-512/256 algorithm.

References sha512_256_algorithm, SHA512_256_DIGEST_SIZE, and sha512_256_init.

Variable Documentation

◆ sha512_256_init

const struct sha512_digest sha512_256_init
static
Initial value:
= {
.h = {
0x22312194fc2bf72cULL, 0x9f555fa3c84c64c2ULL,
0x2393b86b6f53b151ULL, 0x963877195940eabdULL,
0x96283ee2a88effe3ULL, 0xbe5e1e2553863992ULL,
0x2b0199fc2c85b8aaULL, 0x0eb72ddc81c52ca2ULL,
}
}

SHA-512/256 initial digest values.

Definition at line 37 of file sha512_256.c.

37 {
38 .h = {
39 0x22312194fc2bf72cULL, 0x9f555fa3c84c64c2ULL,
40 0x2393b86b6f53b151ULL, 0x963877195940eabdULL,
41 0x96283ee2a88effe3ULL, 0xbe5e1e2553863992ULL,
42 0x2b0199fc2c85b8aaULL, 0x0eb72ddc81c52ca2ULL,
43 }
44};

Referenced by SHA512_ALGORITHM().