iPXE
ecdsa.h File Reference

Elliptic curve digital signature algorithm (ECDSA) More...

#include <ipxe/crypto.h>

Go to the source code of this file.

Macros

#define ECDSA_UNCOMPRESSED   0x04
 Uncompressed curve point.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)

Variables

struct pubkey_algorithm ecdsa_algorithm
 ECDSA public-key algorithm.

Detailed Description

Elliptic curve digital signature algorithm (ECDSA)

Definition in file ecdsa.h.

Macro Definition Documentation

◆ ECDSA_UNCOMPRESSED

#define ECDSA_UNCOMPRESSED   0x04

Uncompressed curve point.

Definition at line 16 of file ecdsa.h.

Referenced by ecdsa_parse_key().

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

Variable Documentation

◆ ecdsa_algorithm

struct pubkey_algorithm ecdsa_algorithm
extern

ECDSA public-key algorithm.

Definition at line 937 of file ecdsa.c.

937 {
938 .name = "ecdsa",
939 .encrypt = ecdsa_encrypt,
940 .decrypt = ecdsa_decrypt,
941 .sign = ecdsa_sign,
942 .verify = ecdsa_verify,
943 .match = ecdsa_match,
944};
static int ecdsa_encrypt(const struct asn1_cursor *key __unused, const struct asn1_cursor *plaintext __unused, struct asn1_builder *ciphertext __unused)
Encrypt using ECDSA.
Definition ecdsa.c:776
static int ecdsa_sign(const struct asn1_cursor *key, struct digest_algorithm *digest, const void *value, struct asn1_builder *signature)
Sign digest value using ECDSA.
Definition ecdsa.c:809
static int ecdsa_verify(const struct asn1_cursor *key, struct digest_algorithm *digest, const void *value, const struct asn1_cursor *signature)
Verify signed digest using ECDSA.
Definition ecdsa.c:865
static int ecdsa_match(const struct asn1_cursor *private_key, const struct asn1_cursor *public_key)
Check for matching ECDSA public/private key pair.
Definition ecdsa.c:911
static int ecdsa_decrypt(const struct asn1_cursor *key __unused, const struct asn1_cursor *ciphertext __unused, struct asn1_builder *plaintext __unused)
Decrypt using ECDSA.
Definition ecdsa.c:792

Referenced by __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), and PUBKEY_SIGN_TEST().