iPXE
rsa_sha512_256.c File Reference
#include <byteswap.h>
#include <ipxe/rsa.h>
#include <ipxe/sha512.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_sha512_256_with_rsa_encryption []
 "sha512-256WithRSAEncryption" object identifier
struct asn1_algorithm sha512_256_with_rsa_encryption_algorithm __asn1_algorithm
 "sha512-256WithRSAEncryption" OID-identified algorithm
static const uint8_t rsa_sha512_256_prefix_data []
 SHA-512/256 digestInfo prefix.
struct rsa_digestinfo_prefix rsa_sha512_256_prefix __rsa_digestinfo_prefix
 SHA-512/256 digestInfo prefix.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

Variable Documentation

◆ oid_sha512_256_with_rsa_encryption

uint8_t oid_sha512_256_with_rsa_encryption[]
static
Initial value:
=
#define ASN1_OID_SHA512_256WITHRSAENCRYPTION
ASN.1 OID for sha512-256WithRSAEncryption (1.2.840.113549.1.1.16).
Definition asn1.h:225

"sha512-256WithRSAEncryption" object identifier

Definition at line 32 of file rsa_sha512_256.c.

◆ __asn1_algorithm

struct asn1_algorithm sha512_256_with_rsa_encryption_algorithm __asn1_algorithm
Initial value:
= {
.name = "sha512-256WithRSAEncryption",
.pubkey = &rsa_algorithm,
}
#define ASN1_CURSOR(value)
Define an ASN.1 cursor for a static value.
Definition asn1.h:423
struct pubkey_algorithm rsa_algorithm
RSA public-key algorithm.
Definition rsa.c:861
static uint8_t oid_sha512_256_with_rsa_encryption[]
"sha512-256WithRSAEncryption" object identifier
struct digest_algorithm sha512_256_algorithm

"sha512-256WithRSAEncryption" OID-identified algorithm

Generic elliptic curve container algorithm.

Definition at line 37 of file rsa_sha512_256.c.

37 {
38 .name = "sha512-256WithRSAEncryption",
39 .pubkey = &rsa_algorithm,
40 .digest = &sha512_256_algorithm,
42};

◆ rsa_sha512_256_prefix_data

const uint8_t rsa_sha512_256_prefix_data[]
static
Initial value:
=
#define ASN1_OID_SHA512_256
ASN.1 OID for id-sha512-256 (2.16.840.1.101.3.4.2.6).
Definition asn1.h:336
#define RSA_DIGESTINFO_PREFIX(digest_size,...)
RSA digestInfo prefix.
Definition rsa.h:34
#define SHA512_256_DIGEST_SIZE
SHA-512/256 digest size.
Definition sha512.h:72

SHA-512/256 digestInfo prefix.

Definition at line 45 of file rsa_sha512_256.c.

◆ __rsa_digestinfo_prefix

struct rsa_digestinfo_prefix rsa_sha512_256_prefix __rsa_digestinfo_prefix
Initial value:
= {
.len = sizeof ( rsa_sha512_256_prefix_data ),
}
static const uint8_t rsa_sha512_256_prefix_data[]
SHA-512/256 digestInfo prefix.

SHA-512/256 digestInfo prefix.

Definition at line 50 of file rsa_sha512_256.c.

50 {
51 .digest = &sha512_256_algorithm,
53 .len = sizeof ( rsa_sha512_256_prefix_data ),
54};