I am attempting to port an old application from SSP 1.2.0 to SSP 1.6.0 on an S7G2 system.
The application uses the RSA crypto features through the SCE HAL interface.
The steps that used to work in SSP 1.2.0 were:
g_sce_rsa_0.p_api->decrypt(g_sce_rsa_0.p_ctrl, rsa_private_key, NULL, 16, (uint32_t *)e_hdr, (uint32_t *)d_hdr);
The call to g_sce_rsa_0.p_api->decrypt fails with a return value of SSP_ERR_ASSERTION with SSP 1.6.0. The first 2 calls both return SUCCESS.
I verified that the input parameters are correct and that g_sce_rsa_0.p_ctrl is not NULL. When I examine g_sce_rsa_0.p_ctrl in the debugger, the p_crypto_ctrl structure member points to 0x0.
Is this causing the SSP_ERR_ASSERTION? If so, what should it be set to. If not, what is the error and how do I resolve it.
In reply to Ian:
In reply to Peter Giacomini: