Mistake on this page?
Report an issue in GitHub or email us
Macros
crys_pka_defs_hw.h File Reference

The file contains all of the enums and definitions that are used in the PKA related code. More...

#include "ssi_pal_types.h"
#include "ssi_pka_hw_plat_defs.h"

Go to the source code of this file.

Macros

#define CRYS_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS   ((CRYS_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS + SASI_PKA_WORD_SIZE_IN_BITS) / SASI_BITS_IN_32BIT_WORD )
 
#define CRYS_ECPKI_MODUL_MAX_LENGTH_IN_BITS   521
 
#define CRYS_PKA_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS   5
 
#define CRYS_PKA_ECPKI_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS   CRYS_PKA_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS
 
#define CRYS_PKA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS   CRYS_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS
 
#define CRYS_PKA_PUB_KEY_BUFF_SIZE_IN_WORDS   (2*CRYS_PKA_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS)
 
#define CRYS_PKA_PRIV_KEY_BUFF_SIZE_IN_WORDS   (2*CRYS_PKA_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS)
 
#define CRYS_PKA_KGDATA_BUFF_SIZE_IN_WORDS   (3*CRYS_PKA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS)
 
#define CRYS_ECPKI_MODUL_MAX_LENGTH_IN_WORDS   18
 
#define CRYS_ECPKI_ORDER_MAX_LENGTH_IN_WORDS   (CRYS_ECPKI_MODUL_MAX_LENGTH_IN_WORDS + 1)
 
#define CRYS_PKA_DOMAIN_BUFF_SIZE_IN_WORDS   (2*CRYS_PKA_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS)
 
#define COUNT_NAF_WORDS_PER_KEY_WORD   8
 
#define CRYS_PKA_ECDSA_NAF_BUFF_MAX_LENGTH_IN_WORDS   (COUNT_NAF_WORDS_PER_KEY_WORD*CRYS_ECPKI_ORDER_MAX_LENGTH_IN_WORDS + 1)
 
#define CRYS_PKA_ECPKI_SCALAR_MUL_BUFF_MAX_LENGTH_IN_WORDS   (CRYS_PKA_ECDSA_NAF_BUFF_MAX_LENGTH_IN_WORDS+CRYS_ECPKI_MODUL_MAX_LENGTH_IN_WORDS+2)
 
#define CRYS_PKA_ECPKI_BUILD_TMP_BUFF_MAX_LENGTH_IN_WORDS   (3*CRYS_ECPKI_MODUL_MAX_LENGTH_IN_WORDS+CRYS_PKA_ECPKI_SCALAR_MUL_BUFF_MAX_LENGTH_IN_WORDS)
 
#define CRYS_PKA_ECDSA_SIGN_BUFF_MAX_LENGTH_IN_WORDS   (6*CRYS_ECPKI_MODUL_MAX_LENGTH_IN_WORDS+CRYS_PKA_ECPKI_SCALAR_MUL_BUFF_MAX_LENGTH_IN_WORDS)
 
#define CRYS_PKA_ECDH_BUFF_MAX_LENGTH_IN_WORDS   (2*CRYS_ECPKI_ORDER_MAX_LENGTH_IN_WORDS + CRYS_PKA_ECPKI_SCALAR_MUL_BUFF_MAX_LENGTH_IN_WORDS)
 
#define CRYS_PKA_KG_BUFF_MAX_LENGTH_IN_WORDS   (2*CRYS_ECPKI_ORDER_MAX_LENGTH_IN_WORDS + CRYS_PKA_ECPKI_SCALAR_MUL_BUFF_MAX_LENGTH_IN_WORDS)
 
#define CRYS_PKA_ECDSA_VERIFY_BUFF_MAX_LENGTH_IN_WORDS   (3*CRYS_ECPKI_MODUL_MAX_LENGTH_IN_WORDS)
 
#define CRYS_EC_MONT_EDW_MODULUS_MAX_SIZE_IN_BYTES   32U
 
#define CRYS_EC_MONT_EDW_MODULUS_MAX_SIZE_IN_WORDS   8U
 
#define CRYS_EC_MONT_TEMP_BUFF_SIZE_IN_32BIT_WORDS   (8 * CRYS_EC_MONT_EDW_MODULUS_MAX_SIZE_IN_WORDS)
 
#define CRYS_EC_EDW_TEMP_BUFF_SIZE_IN_32BIT_WORD   (8*CRYS_EC_MONT_EDW_MODULUS_MAX_SIZE_IN_WORDS + (sizeof(CRYS_HASHUserContext_t)+SASI_32BIT_WORD_SIZE-1)/SASI_32BIT_WORD_SIZE)
 

Detailed Description

The file contains all of the enums and definitions that are used in the PKA related code.

Definition in file crys_pka_defs_hw.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.