iPXE
rsa_md5.c File Reference
#include <ipxe/rsa.h>
#include <ipxe/md5.h>
#include <ipxe/asn1.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (FORBIDDEN)

Variables

static uint8_t oid_md5_with_rsa_encryption []
 "md5WithRSAEncryption" object identifier
struct asn1_algorithm md5_with_rsa_encryption_algorithm __asn1_algorithm
 "md5WithRSAEncryption" OID-identified algorithm
static const uint8_t rsa_md5_prefix_data []
 MD5 digestInfo prefix.
struct rsa_digestinfo_prefix rsa_md5_prefix __rsa_digestinfo_prefix
 MD5 digestInfo prefix.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( FORBIDDEN )

Variable Documentation

◆ oid_md5_with_rsa_encryption

uint8_t oid_md5_with_rsa_encryption[]
static
Initial value:
=
#define ASN1_OID_MD5WITHRSAENCRYPTION
ASN.1 OID for md5WithRSAEncryption (1.2.840.113549.1.1.4)
Definition asn1.h:174

"md5WithRSAEncryption" object identifier

Definition at line 32 of file rsa_md5.c.

◆ __asn1_algorithm

struct asn1_algorithm md5_with_rsa_encryption_algorithm __asn1_algorithm
Initial value:
= {
.name = "md5WithRSAEncryption",
.pubkey = &rsa_algorithm,
.digest = &md5_algorithm,
}
#define ASN1_CURSOR(value)
Define an ASN.1 cursor for a static value.
Definition asn1.h:402
struct digest_algorithm md5_algorithm
MD5 algorithm.
Definition md5.c:287
struct pubkey_algorithm rsa_algorithm
RSA public-key algorithm.
Definition rsa.c:661
static uint8_t oid_md5_with_rsa_encryption[]
"md5WithRSAEncryption" object identifier
Definition rsa_md5.c:32

"md5WithRSAEncryption" OID-identified algorithm

Generic elliptic curve container algorithm.

Definition at line 36 of file rsa_md5.c.

36 {
37 .name = "md5WithRSAEncryption",
38 .pubkey = &rsa_algorithm,
39 .digest = &md5_algorithm,
41};

◆ rsa_md5_prefix_data

const uint8_t rsa_md5_prefix_data[]
static
Initial value:
=
#define ASN1_OID_MD5
ASN.1 OID for id-md5 (1.2.840.113549.2.5)
Definition asn1.h:216
#define MD5_DIGEST_SIZE
MD5 digest size.
Definition md5.h:73
#define RSA_DIGESTINFO_PREFIX(digest_size,...)
RSA digestInfo prefix.
Definition rsa.h:34

MD5 digestInfo prefix.

Definition at line 44 of file rsa_md5.c.

◆ __rsa_digestinfo_prefix

struct rsa_digestinfo_prefix rsa_md5_prefix __rsa_digestinfo_prefix
Initial value:
= {
.digest = &md5_algorithm,
.len = sizeof ( rsa_md5_prefix_data ),
}
static const uint8_t rsa_md5_prefix_data[]
MD5 digestInfo prefix.
Definition rsa_md5.c:44

MD5 digestInfo prefix.

Definition at line 48 of file rsa_md5.c.

48 {
49 .digest = &md5_algorithm,
50 .data = rsa_md5_prefix_data,
51 .len = sizeof ( rsa_md5_prefix_data ),
52};