rsa: pss: Use size_t when computing signatures

Functions like `mbedtls_md_get_size()` and `mgf_mask()` work with
`size_t`. Use local variables with `size_t` to match.
This commit is contained in:
Jaeden Amero 2018-09-11 14:34:21 +01:00
parent 552754a6ee
commit ff215726b4

View file

@ -1521,7 +1521,7 @@ int mbedtls_rsa_rsassa_pss_sign( mbedtls_rsa_context *ctx,
size_t olen;
unsigned char *p = sig;
unsigned char salt[MBEDTLS_MD_MAX_SIZE];
unsigned int slen, hlen, offset = 0;
size_t slen, hlen, offset = 0;
int ret;
size_t msb;
const mbedtls_md_info_t *md_info;