mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-24 16:06:53 +00:00
- Updated rsa_pkcs1_verify() and rsa_pkcs1_sign() to use appropriate buffer size for max MPIs
This commit is contained in:
parent
1d56958963
commit
0be82f20a9
|
@ -496,7 +496,7 @@ int rsa_pkcs1_decrypt( rsa_context *ctx,
|
|||
size_t ilen;
|
||||
unsigned char *p;
|
||||
unsigned char bt;
|
||||
unsigned char buf[1024];
|
||||
unsigned char buf[POLARSSL_MPI_MAX_SIZE];
|
||||
#if defined(POLARSSL_PKCS1_V21)
|
||||
unsigned char lhash[POLARSSL_MD_MAX_SIZE];
|
||||
unsigned int hlen;
|
||||
|
@ -862,7 +862,7 @@ int rsa_pkcs1_verify( rsa_context *ctx,
|
|||
int ret;
|
||||
size_t len, siglen;
|
||||
unsigned char *p, c;
|
||||
unsigned char buf[1024];
|
||||
unsigned char buf[POLARSSL_MPI_MAX_SIZE];
|
||||
#if defined(POLARSSL_PKCS1_V21)
|
||||
unsigned char result[POLARSSL_MD_MAX_SIZE];
|
||||
unsigned char zeros[8];
|
||||
|
|
Loading…
Reference in a new issue