|
|
@ -166,6 +166,13 @@ static int sct_rsa_sign(int type, |
|
|
|
CATCH_ALL(int,0,g_engine->rsa_sign(type, msg, msglen, sigret, siglen, EXTRACT_CARD_KEY(rsa))); |
|
|
|
CATCH_ALL(int,0,g_engine->rsa_sign(type, msg, msglen, sigret, siglen, EXTRACT_CARD_KEY(rsa))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int sct_rsa_verify(int type, |
|
|
|
|
|
|
|
const unsigned char *msg, unsigned int msglen, |
|
|
|
|
|
|
|
unsigned char *signature, unsigned int siglen, const RSA *rsa) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
CATCH_ALL(int,0,g_engine->rsa_verify(type, msg, msglen, signature, siglen, EXTRACT_CARD_KEY(rsa))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int sct_rsa_verify(int type, |
|
|
|
static int sct_rsa_verify(int type, |
|
|
|
const unsigned char *msg, unsigned int msglen, |
|
|
|
const unsigned char *msg, unsigned int msglen, |
|
|
|
const unsigned char *signature, unsigned int siglen, const RSA *rsa) |
|
|
|
const unsigned char *signature, unsigned int siglen, const RSA *rsa) |
|
|
|