Remove casts from |size_t| to |unsigned| in RSA padding code.
This commit is contained in:
parent
d617f2ff61
commit
b8c896b6ef
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user