Data Structures | Macros | Enumerations
ECDHLPF3HSM.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/ECDH.h>
#include <third_party/hsmddk/include/Kit/EIP130/DomainHelper/incl/eip130_domain_ecc_curves.h>
Include dependency graph for ECDHLPF3HSM.h:

Go to the source code of this file.

Data Structures

struct  ECDHLPF3HSM_HWAttrs
 Hardware-specific configuration attributes. More...
 
struct  ECDHLPF3HSM_Object
 ECDHLPF3HSM Object. More...
 

Macros

#define ECDH_COMPONENT_VECTOR_LENGTH   144
 
#define ECDHLPF3HSM_STATUS_HARDWARE_ERROR   (ECDH_STATUS_RESERVED - 0)
 An error ocurred on the HW level. More...
 
#define ECDHLPF3HSM_STATUS_NO_VALID_CURVE_TYPE_PROVIDED   (ECDH_STATUS_RESERVED - 1)
 The curve provided is not supported. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_PRIVATE_KEY_ENCODING   (ECDH_STATUS_RESERVED - 2)
 The private key encoding is not HSM masked to signify an HSM operation. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_ENCODING   (ECDH_STATUS_RESERVED - 3)
 The public key encoding is not HSM masked to signify an HSM operation. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_SHARED_SECRET_KEY_ENCODING   (ECDH_STATUS_RESERVED - 4)
 The shared secret key encoding is not HSM masked to signify an HSM operation. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_PRIVATE_KEY_SIZE   (ECDH_STATUS_RESERVED - 5)
 The private key length does not match the curve type length provided. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_SIZE   (ECDH_STATUS_RESERVED - 6)
 The public key length does not match the curve type length provided. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_SHARED_SECRET_KEY_SIZE   (ECDH_STATUS_RESERVED - 7)
 The shared secret key length does not match the curve type length provided. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_ECC_KEYS   (ECDH_STATUS_RESERVED - 8)
 The public key length does not match the curve type length provided. More...
 
#define ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_OCTET_VALUE   (ECDH_STATUS_RESERVED - 9)
 The public key octet string value is incorrect. More...
 

Enumerations

enum  ECDH_DomainID { ECDH_DOMAIN_ID_SEC = 0, ECDH_DOMAIN_ID_BRP = 1 }
 Enum for the curve domain id supported by the driver. More...
 

Macro Definition Documentation

§ ECDH_COMPONENT_VECTOR_LENGTH

#define ECDH_COMPONENT_VECTOR_LENGTH   144

§ ECDHLPF3HSM_STATUS_HARDWARE_ERROR

#define ECDHLPF3HSM_STATUS_HARDWARE_ERROR   (ECDH_STATUS_RESERVED - 0)

An error ocurred on the HW level.

§ ECDHLPF3HSM_STATUS_NO_VALID_CURVE_TYPE_PROVIDED

#define ECDHLPF3HSM_STATUS_NO_VALID_CURVE_TYPE_PROVIDED   (ECDH_STATUS_RESERVED - 1)

The curve provided is not supported.

§ ECDHLPF3HSM_STATUS_INVALID_PRIVATE_KEY_ENCODING

#define ECDHLPF3HSM_STATUS_INVALID_PRIVATE_KEY_ENCODING   (ECDH_STATUS_RESERVED - 2)

The private key encoding is not HSM masked to signify an HSM operation.

§ ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_ENCODING

#define ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_ENCODING   (ECDH_STATUS_RESERVED - 3)

The public key encoding is not HSM masked to signify an HSM operation.

§ ECDHLPF3HSM_STATUS_INVALID_SHARED_SECRET_KEY_ENCODING

#define ECDHLPF3HSM_STATUS_INVALID_SHARED_SECRET_KEY_ENCODING   (ECDH_STATUS_RESERVED - 4)

The shared secret key encoding is not HSM masked to signify an HSM operation.

§ ECDHLPF3HSM_STATUS_INVALID_PRIVATE_KEY_SIZE

#define ECDHLPF3HSM_STATUS_INVALID_PRIVATE_KEY_SIZE   (ECDH_STATUS_RESERVED - 5)

The private key length does not match the curve type length provided.

§ ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_SIZE

#define ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_SIZE   (ECDH_STATUS_RESERVED - 6)

The public key length does not match the curve type length provided.

§ ECDHLPF3HSM_STATUS_INVALID_SHARED_SECRET_KEY_SIZE

#define ECDHLPF3HSM_STATUS_INVALID_SHARED_SECRET_KEY_SIZE   (ECDH_STATUS_RESERVED - 7)

The shared secret key length does not match the curve type length provided.

§ ECDHLPF3HSM_STATUS_INVALID_ECC_KEYS

#define ECDHLPF3HSM_STATUS_INVALID_ECC_KEYS   (ECDH_STATUS_RESERVED - 8)

The public key length does not match the curve type length provided.

§ ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_OCTET_VALUE

#define ECDHLPF3HSM_STATUS_INVALID_PUBLIC_KEY_OCTET_VALUE   (ECDH_STATUS_RESERVED - 9)

The public key octet string value is incorrect.

Enumeration Type Documentation

§ ECDH_DomainID

Enum for the curve domain id supported by the driver.

Enumerator
ECDH_DOMAIN_ID_SEC 
ECDH_DOMAIN_ID_BRP 
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale