iPXE
oid_x25519.c File Reference
#include <byteswap.h>
#include <ipxe/x25519.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_x25519_named_curve __tls_named_curve (01)
 X25519 named curve.

Variables

static uint8_t oid_x25519 [] = { ASN1_OID_X25519 }
 "x25519" object identifier
struct asn1_algorithm x25519_algorithm __asn1_algorithm
 "x25519" 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_x25519_named_curve __tls_named_curve ( 01 )

X25519 named curve.

References __tls_named_curve, htons, TLS_NAMED_CURVE_X25519, and x25519_curve.

Variable Documentation

◆ oid_x25519

uint8_t oid_x25519[] = { ASN1_OID_X25519 }
static

"x25519" object identifier

Definition at line 33 of file oid_x25519.c.

#define ASN1_OID_X25519
ASN.1 OID for id-x25519 (1.3.101.110)
Definition asn1.h:228

Referenced by PROVIDE_REQUIRING_SYMBOL().

◆ __asn1_algorithm

struct asn1_algorithm x25519_algorithm __asn1_algorithm
Initial value:
= {
.name = "x25519",
.curve = &x25519_curve,
.oid = ASN1_CURSOR ( oid_x25519 ),
}
#define ASN1_CURSOR(value)
Define an ASN.1 cursor for a static value.
Definition asn1.h:402
static uint8_t oid_x25519[]
"x25519" object identifier
Definition oid_x25519.c:33
struct elliptic_curve x25519_curve
X25519 elliptic curve.
Definition x25519.c:876

"x25519" OID-identified algorithm

Generic elliptic curve container algorithm.

Definition at line 36 of file oid_x25519.c.

36 {
37 .name = "x25519",
38 .curve = &x25519_curve,
39 .oid = ASN1_CURSOR ( oid_x25519 ),
40};