iPXE
Functions | Variables
p256.c File Reference

NIST P-256 elliptic curve. More...

#include <ipxe/p256.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 WEIERSTRASS_CURVE (p256, p256_curve, P256_LEN, p256_prime, p256_a, p256_b, p256_base)
 P-256 elliptic curve. More...
 

Variables

static const uint8_t p256_prime [P256_LEN]
 P-256 field prime. More...
 
static const uint8_t p256_a [P256_LEN]
 P-256 constant "a". More...
 
static const uint8_t p256_b [P256_LEN]
 P-256 constant "b". More...
 
static const uint8_t p256_base [P256_LEN *2]
 P-256 base point. More...
 

Detailed Description

NIST P-256 elliptic curve.

Definition in file p256.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ WEIERSTRASS_CURVE()

WEIERSTRASS_CURVE ( p256  ,
p256_curve  ,
P256_LEN  ,
p256_prime  ,
p256_a  ,
p256_b  ,
p256_base   
)

P-256 elliptic curve.

Variable Documentation

◆ p256_prime

const uint8_t p256_prime[P256_LEN]
static
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
}

P-256 field prime.

Definition at line 35 of file p256.c.

◆ p256_a

const uint8_t p256_a[P256_LEN]
static
Initial value:
= {
0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc
}

P-256 constant "a".

Definition at line 42 of file p256.c.

◆ p256_b

const uint8_t p256_b[P256_LEN]
static
Initial value:
= {
0x5a, 0xc6, 0x35, 0xd8, 0xaa, 0x3a, 0x93, 0xe7, 0xb3, 0xeb, 0xbd,
0x55, 0x76, 0x98, 0x86, 0xbc, 0x65, 0x1d, 0x06, 0xb0, 0xcc, 0x53,
0xb0, 0xf6, 0x3b, 0xce, 0x3c, 0x3e, 0x27, 0xd2, 0x60, 0x4b
}

P-256 constant "b".

Definition at line 49 of file p256.c.

◆ p256_base

const uint8_t p256_base[P256_LEN *2]
static
Initial value:
= {
0x6b, 0x17, 0xd1, 0xf2, 0xe1, 0x2c, 0x42, 0x47, 0xf8, 0xbc, 0xe6,
0xe5, 0x63, 0xa4, 0x40, 0xf2, 0x77, 0x03, 0x7d, 0x81, 0x2d, 0xeb,
0x33, 0xa0, 0xf4, 0xa1, 0x39, 0x45, 0xd8, 0x98, 0xc2, 0x96, 0x4f,
0xe3, 0x42, 0xe2, 0xfe, 0x1a, 0x7f, 0x9b, 0x8e, 0xe7, 0xeb, 0x4a,
0x7c, 0x0f, 0x9e, 0x16, 0x2b, 0xce, 0x33, 0x57, 0x6b, 0x31, 0x5e,
0xce, 0xcb, 0xb6, 0x40, 0x68, 0x37, 0xbf, 0x51, 0xf5
}

P-256 base point.

Definition at line 56 of file p256.c.