AM64x MCU+ SDK  10.01.00

Introduction

This file contains the prototype of ASYMMETRIC CRYPTOGRAPHY driver APIs.

Go to the source code of this file.

Data Structures

struct  AsymCrypt_RSAPubkey
 RSA public key. All values are in biginteger format (size followed by word value array, least significant word first) More...
 
struct  AsymCrypt_RSAPrivkey
 RSA private key. All values are in biginteger format (size followed by word value array, least significant word first) More...
 
struct  AsymCrypt_ECPoint
 EC Point, also the public key. More...
 
struct  AsymCrypt_ECPrimeCurveP
 EC prime curve parameters. More...
 
struct  AsymCrypt_ECDSASig
 ECDSA signature. More...
 

Macros

#define RSA_MAX_LENGTH   (130U)
 
#define ECDSA_MAX_LENGTH   (18U)
 
#define EC_PARAM_MAXLEN   (68U)
 
#define ASYM_CRYPT_LEN(bytelen)   (((bytelen) / 4U) + 1U)
 
#define RSA_KEY_E_MAXLEN   (8U)
 
#define RSA_KEY_N_MAXLEN   (520U)
 
#define RSA_KEY_PQ_MAXLEN   ((RSA_KEY_N_MAXLEN / 2U) + 4U)
 
#define RSA_SIG_MAXLEN   RSA_KEY_N_MAXLEN
 

Typedefs

typedef void * AsymCrypt_Handle
 Handle to the AsymCrypt driver. More...
 

Enumerations

enum  AsymCrypt_Return_t { ASYM_CRYPT_RETURN_SUCCESS = 0xCEF6A572U, ASYM_CRYPT_RETURN_FAILURE = 0xD20341DDU }
 ASYM CRYPTO Driver Error code. More...
 

Functions

AsymCrypt_Handle AsymCrypt_open (uint32_t index)
 Function to Open AsymCrypt instance, enable AsymCrypt engine, Initialize clocks. More...
 
AsymCrypt_Return_t AsymCrypt_close (AsymCrypt_Handle handle)
 Function to close a AsymCrypt module specified by the AsymCrypt handle. More...
 
AsymCrypt_Return_t AsymCrypt_RSAPrivate (AsymCrypt_Handle handle, const uint32_t m[RSA_MAX_LENGTH], const struct AsymCrypt_RSAPrivkey *k, uint32_t result[RSA_MAX_LENGTH])
 This Function performs Decryption or Signing operations. More...
 
AsymCrypt_Return_t AsymCrypt_RSAPublic (AsymCrypt_Handle handle, const uint32_t m[RSA_MAX_LENGTH], const struct AsymCrypt_RSAPubkey *k, uint32_t result[RSA_MAX_LENGTH])
 This Function performs Encryption or Verification operations. More...
 
AsymCrypt_Return_t AsymCrypt_ECDSASign (AsymCrypt_Handle handle, const struct AsymCrypt_ECPrimeCurveP *cp, const uint32_t priv[ECDSA_MAX_LENGTH], const uint32_t k[ECDSA_MAX_LENGTH], const uint32_t h[ECDSA_MAX_LENGTH], struct AsymCrypt_ECDSASig *sig)
 ECDSA sign primitive function. More...
 
AsymCrypt_Return_t AsymCrypt_ECDSAVerify (AsymCrypt_Handle handle, const struct AsymCrypt_ECPrimeCurveP *cp, const struct AsymCrypt_ECPoint *pub, const struct AsymCrypt_ECDSASig *sig, const uint32_t h[ECDSA_MAX_LENGTH])
 ECDSA verify primitive function. More...