xilasu
Vitis Drivers API Documentation
xasu_rsainfo.h File Reference

Overview

This file contains the RSA definitions which are common across the client and server.

MODIFICATION HISTORY:
Ver   Who  Date     Changes


1.0 ss 08/20/24 Initial release ss 09/23/24 Fixed doxygen comments ss 02/04/25 Added client support for RSA padding scheme

 

Data Structures

struct  XAsu_RsaPubKeyComp
 This structure contains RSA public key parameters info. More...
 
struct  XAsu_RsaPvtKeyComp
 This structure contains RSA private key parameters info. More...
 
struct  XAsu_RsaCrtKeyComp
 This structure contains RSA private key CRT parameters info. More...
 
struct  XAsu_RsaRRModN
 This structure contains RSA exponent value (R square mod N). More...
 
struct  XAsu_RsaRModN
 This structure contains RSA exponent values (R mod N,R square mod N). More...
 
struct  XAsu_RsaParams
 This structure contains RSA params info. More...
 
struct  XAsu_RsaPaddingParams
 This structure contains RSA PSS padding params info. More...
 
struct  XAsu_RsaOaepPaddingParams
 This structure contains RSA OAEP padding params info. More...
 

Macros

#define XASU_RSA_PUB_ENC_CMD_ID   (0U)
 Command ID for RSA public encryption. More...
 
#define XASU_RSA_PVT_DEC_CMD_ID   (1U)
 Command ID for RSA private decryption. More...
 
#define XASU_RSA_PVT_CRT_DEC_CMD_ID   (2U)
 Command ID for RSA private CRT decryption. More...
 
#define XASU_RSA_OAEP_ENC_SHA2_CMD_ID   (3U)
 Command ID for OAEP enc with SHA2. More...
 
#define XASU_RSA_OAEP_DEC_SHA2_CMD_ID   (4U)
 Command ID for OAEP dec with SHA2. More...
 
#define XASU_RSA_OAEP_ENC_SHA3_CMD_ID   (5U)
 Command ID for OAEP enc with SHA3. More...
 
#define XASU_RSA_OAEP_DEC_SHA3_CMD_ID   (6U)
 Command ID for OAEP dec with SHA3. More...
 
#define XASU_RSA_PSS_SIGN_GEN_SHA2_CMD_ID   (7U)
 Command ID for PSS sign gen with SHA2. More...
 
#define XASU_RSA_PSS_SIGN_VER_SHA2_CMD_ID   (8U)
 Command ID for PSS sign ver with SHA2. More...
 
#define XASU_RSA_PSS_SIGN_GEN_SHA3_CMD_ID   (9U)
 Command ID for PSS sign gen with SHA3. More...
 
#define XASU_RSA_PSS_SIGN_VER_SHA3_CMD_ID   (10U)
 Command ID for PSS sign ver with SHA3. More...
 
#define XASU_RSA_KAT_CMD_ID   (11U)
 Command ID for RSA KAT command. More...
 
#define XASU_RSA_GET_INFO_CMD_ID   (12U)
 Command ID for RSA Get Info command. More...
 
#define XRSA_2048_KEY_SIZE   (256U)
 2048 bit key size in bytes More...
 
#define XRSA_3072_KEY_SIZE   (384U)
 3072 bit key size in bytes More...
 
#define XRSA_4096_KEY_SIZE   (512U)
 4096 bit key size in bytes More...
 
#define XRSA_MAX_KEY_SIZE_IN_WORDS   (XRSA_4096_KEY_SIZE / 4U)
 RSA max key size in words. More...
 
#define XRSA_MAX_PRIME_SIZE_IN_WORDS   (64U)
 RSA max prime size in words. More...
 
#define XASU_RSA_HASHED_INPUT_DATA   (1U)
 Input data hash is already calculated. More...
 
#define XASU_RSA_ENCRYPTION   (1U)
 Encryption operation. More...
 
#define XASU_RSA_EXPONENTIATION_DECRYPTION   (2U)
 Exponentiation Decryption operation. More...
 
#define XASU_RSA_SIGN_GENERATION   (3U)
 Sign Generation operation. More...
 
#define XASU_RSA_SIGN_VERIFICATION   (4U)
 Sign Verification operation. More...