Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Macros | Typedefs | Enumerations
crys_rsa_types.h File Reference

This file contains all of the enums and definitions that are used for the CRYS RSA APIs. More...

#include "crys_hash.h"
#include "crys_pka_defs_hw.h"
#include "ssi_pal_types.h"
#include "ssi_pal_compiler.h"

Go to the source code of this file.

Data Structures

struct  CRYSRSAPubKey_t
 
struct  CRYS_RSAUserPubKey_t
 
struct  CRYSRSAPrivNonCRTKey_t
 
struct  CRYSRSAPrivCRTKey_t
 
struct  CRYSRSAPrivKey_t
 
struct  CRYS_RSAUserPrivKey_t
 
struct  CRYS_RSAPrimeData_t
 
union  CRYS_RSAKGData_t
 
struct  RSAPrivContext_t
 
struct  CRYS_RSAPrivUserContext_t
 
struct  RSAPubContext_t
 
struct  CRYS_RSAPubUserContext_t
 
struct  CRYS_RSAKGFipsContext_t
 
struct  CRYS_RSAFipsKatContext_t
 

Macros

#define CRYS_PKA_RSA_HASH_CTX_SIZE_IN_WORDS   CRYS_HASH_USER_CTX_SIZE_IN_WORDS
 
#define CRYS_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BYTES   (CRYS_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS / SASI_BITS_IN_BYTE)
 
#define CRYS_RSA_MIN_VALID_KEY_SIZE_VALUE_IN_BITS   512
 
#define CRYS_RSA_VALID_KEY_SIZE_MULTIPLE_VALUE_IN_BITS   256
 
#define CRYS_RSA_MAX_KEY_GENERATION_SIZE_BITS   CRYS_RSA_MAX_KEY_GENERATION_HW_SIZE_BITS
 
#define CRYS_RSA_FIPS_KEY_SIZE_1024_BITS   1024
 
#define CRYS_RSA_FIPS_KEY_SIZE_2048_BITS   2048
 
#define CRYS_RSA_FIPS_KEY_SIZE_3072_BITS   3072
 
#define CRYS_RSA_FIPS_MODULUS_SIZE_BITS   CRYS_RSA_FIPS_KEY_SIZE_2048_BITS
 
#define CRYS_DH_FIPS_KEY_SIZE_1024_BITS   1024
 
#define CRYS_DH_FIPS_KEY_SIZE_2048_BITS   2048
 
#define CRYS_RSA_VERIFY_SALT_LENGTH_UNKNOWN   0xFFFF
 
#define CRYS_RSA_MIN_PUB_EXP_VALUE   3
 
#define CRYS_RSA_MIN_PRIV_EXP_VALUE   1
 
#define CRYS_RSA_TMP_BUFF_SIZE   (CRYS_RSA_OAEP_ENCODE_MAX_MASKDB_SIZE + CRYS_RSA_OAEP_ENCODE_MAX_SEEDMASK_SIZE + CRYS_PKA_RSA_HASH_CTX_SIZE_IN_WORDS*sizeof(uint32_t) + sizeof(CRYS_HASH_Result_t))
 
#define CRYS_PKCS1_HashFunc_t   CRYS_HASH_OperationMode_t
 
#define CRYS_RSA_OAEP_MAX_HLEN   CRYS_HASH_SHA512_DIGEST_SIZE_IN_BYTES
 
#define CRYS_RSA_MGF_2_POWER_32   65535
 
#define CRYS_RSA_SIZE_OF_T_STRING_BYTES   (CRYS_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS*sizeof(uint32_t))
 
#define CRYS_RSA_OAEP_ENCODE_MAX_SEEDMASK_SIZE   CRYS_RSA_OAEP_MAX_HLEN
 
#define CRYS_RSA_PSS_SALT_LENGTH   CRYS_RSA_OAEP_MAX_HLEN
 
#define CRYS_RSA_PSS_PAD1_LEN   8
 
#define CRYS_RSA_OAEP_ENCODE_MAX_MASKDB_SIZE   (CRYS_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS*sizeof(uint32_t))
 
#define CRYS_RSA_OAEP_DECODE_MAX_DBMASK_SIZE   (CRYS_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS*sizeof(uint32_t))
 
#define CRYS_RSA_SIZE_IN_WORDS_OF_CRYSRSAPrivCRTKey_t   (CRYS_RSA_MAXIMUM_MOD_BUFFER_SIZE_IN_WORDS*7/2 + 5)
 

Typedefs

typedef struct CRYS_RSAUserPubKey_t CRYS_RSAUserPubKey_t
 
typedef struct CRYS_RSAUserPrivKey_t CRYS_RSAUserPrivKey_t
 
typedef struct CRYS_RSAPrimeData_t CRYS_RSAPrimeData_t
 
typedef union CRYS_RSAKGData_t CRYS_RSAKGData_t
 
typedef struct CRYS_RSAPrivUserContext_t CRYS_RSAPrivUserContext_t
 
typedef struct CRYS_RSAPubUserContext_t CRYS_RSAPubUserContext_t
 
typedef struct CRYS_RSAKGFipsContext_t CRYS_RSAKGFipsContext_t
 
typedef struct CRYS_RSAFipsKatContext_t CRYS_RSAFipsKatContext_t
 

Enumerations

Detailed Description

This file contains all of the enums and definitions that are used for the CRYS RSA APIs.

Definition in file crys_rsa_types.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.