diff --git a/crypto/rsa/padding.c b/crypto/rsa/padding.c index e4963ba45..3ab23746f 100644 --- a/crypto/rsa/padding.c +++ b/crypto/rsa/padding.c @@ -93,7 +93,7 @@ int RSA_padding_add_PKCS1_type_1(uint8_t *to, unsigned to_len, memset(p, 0xff, j); p += j; *(p++) = 0; - memcpy(p, from, (unsigned int)from_len); + memcpy(p, from, from_len); return 1; } @@ -187,7 +187,7 @@ int RSA_padding_add_PKCS1_type_2(uint8_t *to, unsigned to_len, *(p++) = 0; - memcpy(p, from, (unsigned int)from_len); + memcpy(p, from, from_len); return 1; } @@ -269,6 +269,6 @@ int RSA_padding_add_none(uint8_t *to, unsigned to_len, const uint8_t *from, return 0; } - memcpy(to, from, (unsigned int)from_len); + memcpy(to, from, from_len); return 1; }