diff options
author | Brian Smith <brian@briansmith.org> | 2016-02-08 23:17:39 +0300 |
---|---|---|
committer | David Benjamin <davidben@google.com> | 2016-02-12 18:37:15 +0300 |
commit | 894a47df2423f0d2b6be57e6d90f2bea88213382 (patch) | |
tree | c96aba971171c93950a6295b6c95970b7123c5ef /crypto/rsa | |
parent | 11676a7399555d7ab3e421b19e9016d170d639e0 (diff) |
Clarify some confusing casts involving |size_t|.
Change-Id: I7af2c87fe6e7513aa2603d5e845a4db87ab14fcc
Reviewed-on: https://boringssl-review.googlesource.com/7101
Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/padding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/rsa/padding.c b/crypto/rsa/padding.c index 032df2e6..128950ae 100644 --- a/crypto/rsa/padding.c +++ b/crypto/rsa/padding.c @@ -95,7 +95,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; } @@ -189,7 +189,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; } @@ -271,7 +271,7 @@ 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; } |