projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76dca45
)
add casts as in head (required for VC++)
author
Ulf Möller
<ulf@openssl.org>
Mon, 11 Feb 2002 17:44:30 +0000
(17:44 +0000)
committer
Ulf Möller
<ulf@openssl.org>
Mon, 11 Feb 2002 17:44:30 +0000
(17:44 +0000)
crypto/rsa/rsa_oaep.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_oaep.c
b/crypto/rsa/rsa_oaep.c
index 4f0bbab3860420177afd49b56cb57bbeae2b7eb0..742b3a1c9428473061677904c34c93ebd1890d43 100644
(file)
--- a/
crypto/rsa/rsa_oaep.c
+++ b/
crypto/rsa/rsa_oaep.c
@@
-178,8
+178,10
@@
int MGF1(unsigned char *mask, long len, unsigned char *seed, long seedlen)
for (i = 0; outlen < len; i++)
{
- cnt[0] = (i >> 24) & 255, cnt[1] = (i >> 16) & 255,
- cnt[2] = (i >> 8) & 255, cnt[3] = i & 255;
+ cnt[0] = (unsigned char)((i >> 24) & 255);
+ cnt[1] = (unsigned char)((i >> 16) & 255);
+ cnt[2] = (unsigned char)((i >> 8)) & 255;
+ cnt[3] = (unsigned char)(i & 255);
SHA1_Init(&c);
SHA1_Update(&c, seed, seedlen);
SHA1_Update(&c, cnt, 4);