fix API of RSA

This commit is contained in:
NIIBE Yutaka
2012-05-29 11:53:50 +09:00
parent cc95fff074
commit f8bb88227a
3 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
2012-05-29 Niibe Yutaka <gniibe@fsij.org>
* polarssl-0.14.0/include/polarssl/rsa.h (rsa_pkcs1_verify)
* polarssl-0.14.0/library/rsa.c (rsa_pkcs1_verify): Fix API.
* src/usb_conf.h (NUM_STRING_DESC): Incremented to 6 (was: 4).
* src/configure: Generate strings for revision detail and config
options.

View File

@@ -330,7 +330,7 @@ int rsa_pkcs1_verify( rsa_context *ctx,
int hash_id,
int hashlen,
const unsigned char *hash,
unsigned char *sig );
const unsigned char *sig );
/**
* \brief Free the components of an RSA key

View File

@@ -538,7 +538,7 @@ int rsa_pkcs1_verify( rsa_context *ctx,
int hash_id,
int hashlen,
const unsigned char *hash,
unsigned char *sig )
const unsigned char *sig )
{
int ret, len, siglen;
unsigned char *p, c;