iPXE
rsa_sha1.c File Reference
#include <ipxe/rsa.h>
#include <ipxe/sha1.h>
#include <ipxe/asn1.h>
#include <ipxe/tls.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_sha1_with_rsa_encryption []
 "sha1WithRSAEncryption" object identifier
struct asn1_algorithm sha1_with_rsa_encryption_algorithm __asn1_algorithm
 "sha1WithRSAEncryption" OID-identified algorithm
static const uint8_t rsa_sha1_prefix_data []
 SHA-1 digestInfo prefix.
struct rsa_digestinfo_prefix rsa_sha1_prefix __rsa_digestinfo_prefix
 SHA-1 digestInfo prefix.
struct tls_signature_hash_algorithm tls_rsa_sha1 __tls_sig_hash_algorithm
 RSA with SHA-1 signature hash algorithm.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

Variable Documentation

◆ oid_sha1_with_rsa_encryption

uint8_t oid_sha1_with_rsa_encryption[]
static
Initial value:
=
#define ASN1_OID_SHA1WITHRSAENCRYPTION
ASN.1 OID for sha1WithRSAEncryption (1.2.840.113549.1.1.5)
Definition asn1.h:180

"sha1WithRSAEncryption" object identifier

Definition at line 33 of file rsa_sha1.c.

◆ __asn1_algorithm

struct asn1_algorithm sha1_with_rsa_encryption_algorithm __asn1_algorithm
Initial value:
= {
.name = "sha1WithRSAEncryption",
.pubkey = &rsa_algorithm,
.digest = &sha1_algorithm,
}
#define ASN1_CURSOR(value)
Define an ASN.1 cursor for a static value.
Definition asn1.h:402
struct pubkey_algorithm rsa_algorithm
RSA public-key algorithm.
Definition rsa.c:661
static uint8_t oid_sha1_with_rsa_encryption[]
"sha1WithRSAEncryption" object identifier
Definition rsa_sha1.c:33
struct digest_algorithm sha1_algorithm
SHA-1 algorithm.
Definition sha1.c:258

"sha1WithRSAEncryption" OID-identified algorithm

Generic elliptic curve container algorithm.

Definition at line 37 of file rsa_sha1.c.

37 {
38 .name = "sha1WithRSAEncryption",
39 .pubkey = &rsa_algorithm,
40 .digest = &sha1_algorithm,
42};

◆ rsa_sha1_prefix_data

const uint8_t rsa_sha1_prefix_data[]
static
Initial value:
=
#define SHA1_DIGEST_SIZE
Definition Tpm20.h:26
#define ASN1_OID_SHA1
ASN.1 OID for id-sha1 (1.3.14.3.2.26)
Definition asn1.h:222
#define RSA_DIGESTINFO_PREFIX(digest_size,...)
RSA digestInfo prefix.
Definition rsa.h:34

SHA-1 digestInfo prefix.

Definition at line 45 of file rsa_sha1.c.

◆ __rsa_digestinfo_prefix

struct rsa_digestinfo_prefix rsa_sha1_prefix __rsa_digestinfo_prefix
Initial value:
= {
.digest = &sha1_algorithm,
.len = sizeof ( rsa_sha1_prefix_data ),
}
static const uint8_t rsa_sha1_prefix_data[]
SHA-1 digestInfo prefix.
Definition rsa_sha1.c:45

SHA-1 digestInfo prefix.

Definition at line 49 of file rsa_sha1.c.

49 {
50 .digest = &sha1_algorithm,
52 .len = sizeof ( rsa_sha1_prefix_data ),
53};

◆ __tls_sig_hash_algorithm

struct tls_signature_hash_algorithm tls_rsa_sha1 __tls_sig_hash_algorithm
Initial value:
= {
.code = {
.signature = TLS_RSA_ALGORITHM,
},
.pubkey = &rsa_algorithm,
.digest = &sha1_algorithm,
}
#define TLS_SHA1_ALGORITHM
Definition tls.h:115
#define TLS_RSA_ALGORITHM
Definition tls.h:122

RSA with SHA-1 signature hash algorithm.

Definition at line 56 of file rsa_sha1.c.

56 {
57 .code = {
58 .signature = TLS_RSA_ALGORITHM,
59 .hash = TLS_SHA1_ALGORITHM,
60 },
61 .pubkey = &rsa_algorithm,
62 .digest = &sha1_algorithm,
63};