mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-07-26 11:50:40 +08:00
- Fixed signed status of ret
This commit is contained in:
parent
8913f82c26
commit
ed375caa3b
@ -362,7 +362,8 @@ int rsa_pkcs1_encrypt( rsa_context *ctx,
|
|||||||
const unsigned char *input,
|
const unsigned char *input,
|
||||||
unsigned char *output )
|
unsigned char *output )
|
||||||
{
|
{
|
||||||
size_t nb_pad, olen, ret;
|
size_t nb_pad, olen;
|
||||||
|
int ret;
|
||||||
unsigned char *p = output;
|
unsigned char *p = output;
|
||||||
#if defined(POLARSSL_PKCS1_V21)
|
#if defined(POLARSSL_PKCS1_V21)
|
||||||
unsigned int hlen;
|
unsigned int hlen;
|
||||||
@ -592,7 +593,8 @@ int rsa_pkcs1_sign( rsa_context *ctx,
|
|||||||
unsigned char *p = sig;
|
unsigned char *p = sig;
|
||||||
#if defined(POLARSSL_PKCS1_V21)
|
#if defined(POLARSSL_PKCS1_V21)
|
||||||
unsigned char salt[POLARSSL_MD_MAX_SIZE];
|
unsigned char salt[POLARSSL_MD_MAX_SIZE];
|
||||||
unsigned int slen, hlen, offset = 0, ret;
|
unsigned int slen, hlen, offset = 0;
|
||||||
|
int ret;
|
||||||
size_t msb;
|
size_t msb;
|
||||||
const md_info_t *md_info;
|
const md_info_t *md_info;
|
||||||
md_context_t md_ctx;
|
md_context_t md_ctx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user