![]() |
xilsecure
Vitis Drivers API Documentation
|
Macros | |
| #define | XSECURE_RSA_SIZE (512U) |
| 512 bytes for 4096 bit data More... | |
| #define | XSECURE_PRIME_FACTOR_P_SIZE (256U) |
| 256 bytes size of first prime factor(P) More... | |
| #define | XSECURE_PRIME_FACTOR_Q_SIZE (256U) |
| 256 bytes size of first prime factor(Q) More... | |
| #define | XSECURE_RSA_SIZE (512U) |
| 512 bytes for 4096 bit data More... | |
Functions | |
| int | XSecure_RsaPrivateDecrypt (XSecure_ClientInstance *InstancePtr, const u64 KeyAddr, const u64 InDataAddr, const u32 Size, const u64 OutDataAddr) |
| This function sends IPI request to Perform RSA decryption with private key. More... | |
| int | XSecure_RsaPublicEncrypt (XSecure_ClientInstance *InstancePtr, const u64 KeyAddr, const u64 InDataAddr, const u32 Size, const u64 OutDataAddr) |
| This function sends IPI request to Perform RSA encryption with public key. More... | |
| int | XSecure_RsaSignVerification (XSecure_ClientInstance *InstancePtr, const u64 SignAddr, const u64 HashAddr, const u32 Size) |
| This function sends IPI request to Perform RSA sign verification. More... | |
| #define XSECURE_PRIME_FACTOR_P_SIZE (256U) |
256 bytes size of first prime factor(P)
| #define XSECURE_PRIME_FACTOR_Q_SIZE (256U) |
256 bytes size of first prime factor(Q)
| #define XSECURE_RSA_SIZE (512U) |
512 bytes for 4096 bit data
| #define XSECURE_RSA_SIZE (512U) |
512 bytes for 4096 bit data
| int XSecure_RsaPrivateDecrypt | ( | XSecure_ClientInstance * | InstancePtr, |
| const u64 | KeyAddr, | ||
| const u64 | InDataAddr, | ||
| const u32 | Size, | ||
| const u64 | OutDataAddr | ||
| ) |
This function sends IPI request to Perform RSA decryption with private key.
| InstancePtr | Pointer to the client instance |
| KeyAddr | Address of the Key |
| InDataAddr | Address of the data which has to be decrypted |
| Size | Key size in bytes, Input size also should be same as key size mentioned. Inputs supported are
|
| OutDataAddr | Address of the buffer where resultant decrypted data to be stored |
Perform input parameter validation on InstancePtr. Return XST_FAILURE if input parameters are invalid
Link shared memory of size RsaParams to RsaParams structure for IPI usage. Validates the size of the shared memory whether the required size is available or not.
Send an IPI request to the PLM by using the CDO command to call XSecure_RsaDecrypt API and returns the status of the IPI response.
References XSECURE_API_RSA_PRIVATE_DECRYPT, XSecure_DCacheFlushRange, and XSecure_ProcessMailbox().
Referenced by XSecure_RsaCore(), and XSecure_RsaPrivateDecryptKat().
| int XSecure_RsaPublicEncrypt | ( | XSecure_ClientInstance * | InstancePtr, |
| const u64 | KeyAddr, | ||
| const u64 | InDataAddr, | ||
| const u32 | Size, | ||
| const u64 | OutDataAddr | ||
| ) |
This function sends IPI request to Perform RSA encryption with public key.
| InstancePtr | Pointer to the client instance |
| KeyAddr | Address of the Key |
| InDataAddr | Address of the data which has to be encrypted with public key |
| Size | Key size in bytes, Input size also should be same as key size mentioned. Inputs supported are
|
| OutDataAddr | Address of the buffer where resultant decrypted data to be stored |
Perform input parameter validation on InstancePtr. Return XST_FAILURE if input parameters are invalid
Link shared memory of size RsaParams to RsaParams structure for IPI usage. Validates the size of the shared memory whether the required size is available or not.
Send an IPI request to the PLM by using the CDO command to call XSecure_RsaEncrypt API and returns the status of the IPI response.
References XSECURE_API_RSA_PUBLIC_ENCRYPT, XSecure_DCacheFlushRange, and XSecure_ProcessMailbox().
Referenced by XSecure_DataAuth(), XSecure_RsaCore(), XSecure_RsaPublicEncryptKat(), and XSecure_SpkAuthentication().
| int XSecure_RsaSignVerification | ( | XSecure_ClientInstance * | InstancePtr, |
| const u64 | SignAddr, | ||
| const u64 | HashAddr, | ||
| const u32 | Size | ||
| ) |
This function sends IPI request to Perform RSA sign verification.
| InstancePtr | Pointer to the client instance |
| SignAddr | Address of the buffer which holds the decrypted RSA signature. |
| HashAddr | Address of the HashAddr which has the hash calculated on the data to be authenticated |
| Size | Length of Hash used For SHA3 it should be 48 bytes |
Perform input parameter validation on InstancePtr. Return XST_FAILURE if input parameters are invalid
Link shared memory of size SignParams to SignParams structure for IPI usage. Validates the size of the shared memory whether the required size is available or not.
Send an IPI request to the PLM by using the CDO command to call XSecure_RsaSignVerify API and returns the status of the IPI response.
References XSECURE_API_RSA_SIGN_VERIFY, XSecure_DCacheFlushRange, and XSecure_ProcessMailbox().
Referenced by XSecure_DataAuth(), and XSecure_SpkAuthentication().