iPXE
oid_p256.c File Reference
#include <byteswap.h>
#include <ipxe/p256.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)
struct tls_named_curve tls_secp256r1_named_curve __tls_named_curve (01)
 P-256 named curve.

Variables

static uint8_t oid_prime256v1 [] = { ASN1_OID_PRIME256V1 }
 "prime256v1" object identifier
struct asn1_algorithm prime256v1_algorithm __asn1_algorithm
 "prime256v1" OID-identified algorithm

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ __tls_named_curve()

struct tls_named_curve tls_secp256r1_named_curve __tls_named_curve ( 01 )

Variable Documentation

◆ oid_prime256v1

uint8_t oid_prime256v1[] = { ASN1_OID_PRIME256V1 }
static

"prime256v1" object identifier

Definition at line 33 of file oid_p256.c.

#define ASN1_OID_PRIME256V1
ASN.1 OID for prime256v1 (1.2.840.10045.3.1.7)
Definition asn1.h:138

◆ __asn1_algorithm

struct asn1_algorithm prime256v1_algorithm __asn1_algorithm
Initial value:
= {
.name = "prime256v1",
.curve = &p256_curve,
}
#define ASN1_CURSOR(value)
Define an ASN.1 cursor for a static value.
Definition asn1.h:402
static uint8_t oid_prime256v1[]
"prime256v1" object identifier
Definition oid_p256.c:33
struct elliptic_curve p256_curve

"prime256v1" OID-identified algorithm

Generic elliptic curve container algorithm.

Definition at line 36 of file oid_p256.c.

36 {
37 .name = "prime256v1",
38 .curve = &p256_curve,
39 .oid = ASN1_CURSOR ( oid_prime256v1 ),
40};