| .. | .. |
|---|
| 13 | 13 | /* Descriptor for RSA Public operation */ |
|---|
| 14 | 14 | void init_rsa_pub_desc(u32 *desc, struct rsa_pub_pdb *pdb) |
|---|
| 15 | 15 | { |
|---|
| 16 | | - init_job_desc_pdb(desc, 0, sizeof(*pdb)); |
|---|
| 16 | + init_job_desc_pdb(desc, 0, SIZEOF_RSA_PUB_PDB); |
|---|
| 17 | 17 | append_cmd(desc, pdb->sgf); |
|---|
| 18 | 18 | append_ptr(desc, pdb->f_dma); |
|---|
| 19 | 19 | append_ptr(desc, pdb->g_dma); |
|---|
| .. | .. |
|---|
| 26 | 26 | /* Descriptor for RSA Private operation - Private Key Form #1 */ |
|---|
| 27 | 27 | void init_rsa_priv_f1_desc(u32 *desc, struct rsa_priv_f1_pdb *pdb) |
|---|
| 28 | 28 | { |
|---|
| 29 | | - init_job_desc_pdb(desc, 0, sizeof(*pdb)); |
|---|
| 29 | + init_job_desc_pdb(desc, 0, SIZEOF_RSA_PRIV_F1_PDB); |
|---|
| 30 | 30 | append_cmd(desc, pdb->sgf); |
|---|
| 31 | 31 | append_ptr(desc, pdb->g_dma); |
|---|
| 32 | 32 | append_ptr(desc, pdb->f_dma); |
|---|
| .. | .. |
|---|
| 39 | 39 | /* Descriptor for RSA Private operation - Private Key Form #2 */ |
|---|
| 40 | 40 | void init_rsa_priv_f2_desc(u32 *desc, struct rsa_priv_f2_pdb *pdb) |
|---|
| 41 | 41 | { |
|---|
| 42 | | - init_job_desc_pdb(desc, 0, sizeof(*pdb)); |
|---|
| 42 | + init_job_desc_pdb(desc, 0, SIZEOF_RSA_PRIV_F2_PDB); |
|---|
| 43 | 43 | append_cmd(desc, pdb->sgf); |
|---|
| 44 | 44 | append_ptr(desc, pdb->g_dma); |
|---|
| 45 | 45 | append_ptr(desc, pdb->f_dma); |
|---|
| .. | .. |
|---|
| 56 | 56 | /* Descriptor for RSA Private operation - Private Key Form #3 */ |
|---|
| 57 | 57 | void init_rsa_priv_f3_desc(u32 *desc, struct rsa_priv_f3_pdb *pdb) |
|---|
| 58 | 58 | { |
|---|
| 59 | | - init_job_desc_pdb(desc, 0, sizeof(*pdb)); |
|---|
| 59 | + init_job_desc_pdb(desc, 0, SIZEOF_RSA_PRIV_F3_PDB); |
|---|
| 60 | 60 | append_cmd(desc, pdb->sgf); |
|---|
| 61 | 61 | append_ptr(desc, pdb->g_dma); |
|---|
| 62 | 62 | append_ptr(desc, pdb->f_dma); |
|---|