hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/crypto/caam/pkc_desc.c
....@@ -13,7 +13,7 @@
1313 /* Descriptor for RSA Public operation */
1414 void init_rsa_pub_desc(u32 *desc, struct rsa_pub_pdb *pdb)
1515 {
16
- init_job_desc_pdb(desc, 0, sizeof(*pdb));
16
+ init_job_desc_pdb(desc, 0, SIZEOF_RSA_PUB_PDB);
1717 append_cmd(desc, pdb->sgf);
1818 append_ptr(desc, pdb->f_dma);
1919 append_ptr(desc, pdb->g_dma);
....@@ -26,7 +26,7 @@
2626 /* Descriptor for RSA Private operation - Private Key Form #1 */
2727 void init_rsa_priv_f1_desc(u32 *desc, struct rsa_priv_f1_pdb *pdb)
2828 {
29
- init_job_desc_pdb(desc, 0, sizeof(*pdb));
29
+ init_job_desc_pdb(desc, 0, SIZEOF_RSA_PRIV_F1_PDB);
3030 append_cmd(desc, pdb->sgf);
3131 append_ptr(desc, pdb->g_dma);
3232 append_ptr(desc, pdb->f_dma);
....@@ -39,7 +39,7 @@
3939 /* Descriptor for RSA Private operation - Private Key Form #2 */
4040 void init_rsa_priv_f2_desc(u32 *desc, struct rsa_priv_f2_pdb *pdb)
4141 {
42
- init_job_desc_pdb(desc, 0, sizeof(*pdb));
42
+ init_job_desc_pdb(desc, 0, SIZEOF_RSA_PRIV_F2_PDB);
4343 append_cmd(desc, pdb->sgf);
4444 append_ptr(desc, pdb->g_dma);
4545 append_ptr(desc, pdb->f_dma);
....@@ -56,7 +56,7 @@
5656 /* Descriptor for RSA Private operation - Private Key Form #3 */
5757 void init_rsa_priv_f3_desc(u32 *desc, struct rsa_priv_f3_pdb *pdb)
5858 {
59
- init_job_desc_pdb(desc, 0, sizeof(*pdb));
59
+ init_job_desc_pdb(desc, 0, SIZEOF_RSA_PRIV_F3_PDB);
6060 append_cmd(desc, pdb->sgf);
6161 append_ptr(desc, pdb->g_dma);
6262 append_ptr(desc, pdb->f_dma);