iPXE
oid_aes_gcm.c File Reference
#include <ipxe/aes.h>
#include <ipxe/asn1.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_aes_128_gcm [] = { ASN1_OID_AES128_GCM }
 "aes128-gcm" object identifier
static uint8_t oid_aes_192_gcm [] = { ASN1_OID_AES192_GCM }
 "aes192-gcm" object identifier
static uint8_t oid_aes_256_gcm [] = { ASN1_OID_AES256_GCM }
 "aes256-gcm" object identifier
struct asn1_algorithm aes_128_gcm_algorithm __asn1_algorithm
 "aes128-gcm" OID-identified algorithm

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

Variable Documentation

◆ oid_aes_128_gcm

uint8_t oid_aes_128_gcm[] = { ASN1_OID_AES128_GCM }
static

"aes128-gcm" object identifier

Definition at line 31 of file oid_aes_gcm.c.

#define ASN1_OID_AES128_GCM
ASN.1 OID for id-aes128-gcm (2.16.840.1.101.3.4.1.6)
Definition asn1.h:245

◆ oid_aes_192_gcm

uint8_t oid_aes_192_gcm[] = { ASN1_OID_AES192_GCM }
static

"aes192-gcm" object identifier

Definition at line 34 of file oid_aes_gcm.c.

#define ASN1_OID_AES192_GCM
ASN.1 OID for id-aes192-gcm (2.16.840.1.101.3.4.1.26)
Definition asn1.h:259

◆ oid_aes_256_gcm

uint8_t oid_aes_256_gcm[] = { ASN1_OID_AES256_GCM }
static

"aes256-gcm" object identifier

Definition at line 37 of file oid_aes_gcm.c.

#define ASN1_OID_AES256_GCM
ASN.1 OID for id-aes256-gcm (2.16.840.1.101.3.4.1.46)
Definition asn1.h:273

◆ __asn1_algorithm

struct asn1_algorithm aes_256_gcm_algorithm __asn1_algorithm
Initial value:
= {
.name = "aes128-gcm",
.cipher = &aes_gcm_algorithm,
.parse = asn1_parse_gcm,
}
struct cipher_algorithm aes_gcm_algorithm
int asn1_parse_gcm(struct asn1_algorithm *algorithm __unused, struct asn1_cursor *params)
Parse ASN.1 GCM cipher parameters.
Definition asn1.c:756
#define ASN1_CURSOR(value)
Define an ASN.1 cursor for a static value.
Definition asn1.h:402
static uint8_t oid_aes_128_gcm[]
"aes128-gcm" object identifier
Definition oid_aes_gcm.c:31

"aes128-gcm" OID-identified algorithm

Generic elliptic curve container algorithm.

"aes256-gcm" OID-identified algorithm

"aes192-gcm" OID-identified algorithm

Definition at line 40 of file oid_aes_gcm.c.

40 {
41 .name = "aes128-gcm",
42 .cipher = &aes_gcm_algorithm,
44 .parse = asn1_parse_gcm,
45};