iPXE
oid_sha256.c File Reference
#include <ipxe/sha256.h>
#include <ipxe/asn1.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)

Variables

static uint8_t oid_sha256 [] = { ASN1_OID_SHA256 }
 "sha256" object identifier
struct asn1_algorithm oid_sha256_algorithm __asn1_algorithm
 "sha256" OID-identified algorithm

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

Variable Documentation

◆ oid_sha256

uint8_t oid_sha256[] = { ASN1_OID_SHA256 }
static

"sha256" object identifier

Definition at line 31 of file oid_sha256.c.

#define ASN1_OID_SHA256
ASN.1 OID for id-sha256 (2.16.840.1.101.3.4.2.1)
Definition asn1.h:280

Referenced by PROVIDE_REQUIRING_SYMBOL().

◆ __asn1_algorithm

struct asn1_algorithm oid_sha256_algorithm __asn1_algorithm
Initial value:
= {
.name = "sha256",
.digest = &sha256_algorithm,
.oid = ASN1_CURSOR ( oid_sha256 ),
}
#define ASN1_CURSOR(value)
Define an ASN.1 cursor for a static value.
Definition asn1.h:402
static uint8_t oid_sha256[]
"sha256" object identifier
Definition oid_sha256.c:31
struct digest_algorithm sha256_algorithm
SHA-256 algorithm.
Definition sha256.c:265

"sha256" OID-identified algorithm

Generic elliptic curve container algorithm.

Definition at line 34 of file oid_sha256.c.

34 {
35 .name = "sha256",
36 .digest = &sha256_algorithm,
37 .oid = ASN1_CURSOR ( oid_sha256 ),
38};