Skip to content

Commit

Permalink
RSA8k Support for QAT_HW.
Browse files Browse the repository at this point in the history
Signed-off-by: Yogaraj Alamenda <yogarajx.alamenda@intel.com>
  • Loading branch information
naghaabirami authored and Yogaraj-Alamenda committed Sep 17, 2021
1 parent 0a00198 commit 2b014a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion qat_hw_prf.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@
* early on here if they are exceeded rather than later on
* down in the driver.
*/
#define QAT_TLS1_PRF_SECRET_MAXBUF 512
#if CPA_CY_API_VERSION_NUM_MAJOR > 2
# define QAT_TLS1_PRF_SECRET_MAXBUF 1024
#else
# define QAT_TLS1_PRF_SECRET_MAXBUF 512
#endif
#define QAT_TLS1_PRF_SEED_MAXBUF 64
#define QAT_TLS1_PRF_LABEL_MAXBUF 136

Expand Down
6 changes: 5 additions & 1 deletion qat_hw_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@

/* To specify the RSA op sizes supported by QAT engine */
#define RSA_QAT_RANGE_MIN 512
#define RSA_QAT_RANGE_MAX 4096
#if CPA_CY_API_VERSION_NUM_MAJOR > 2
# define RSA_QAT_RANGE_MAX 8192
#else
# define RSA_QAT_RANGE_MAX 4096
#endif

#define NO_PADDING 0
#define PADDING 1
Expand Down

0 comments on commit 2b014a8

Please sign in to comment.