summaryrefslogtreecommitdiff
path: root/crypto/rsa
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-07-24 14:20:36 +0000
committerBodo Möller <bodo@openssl.org>2001-07-24 14:20:36 +0000
commitea3b8af50ac7a757905317df1b0f662edcbda6a2 (patch)
treee91aae11a4a26fd7848c0d3cc307cf195f6fb8f4 /crypto/rsa
parentbadb910f3c88b8a3721f818098cab02ea03dd4b8 (diff)
downloadopenssl-new-ea3b8af50ac7a757905317df1b0f662edcbda6a2.tar.gz
avoid warnings
Diffstat (limited to 'crypto/rsa')
-rw-r--r--crypto/rsa/rsa_oaep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/rsa/rsa_oaep.c b/crypto/rsa/rsa_oaep.c
index 8da765e4d7..e6d98c5bdb 100644
--- a/crypto/rsa/rsa_oaep.c
+++ b/crypto/rsa/rsa_oaep.c
@@ -164,8 +164,10 @@ int MGF1(unsigned char *mask, long len,
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);
EVP_DigestInit(&c,EVP_sha1());
EVP_DigestUpdate(&c, seed, seedlen);
EVP_DigestUpdate(&c, cnt, 4);