From c194dc87afc7e4f4dbc7c2895e5c9417666b4adc Mon Sep 17 00:00:00 2001 From: Todd A Ouska Date: Tue, 12 Jul 2011 13:51:39 -0700 Subject: [PATCH] pwdbased warning changes, submitted by Kevin Baca --- ctaocrypt/src/pwdbased.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctaocrypt/src/pwdbased.c b/ctaocrypt/src/pwdbased.c index 8b2ba9da0..153c33ba6 100644 --- a/ctaocrypt/src/pwdbased.c +++ b/ctaocrypt/src/pwdbased.c @@ -128,7 +128,7 @@ int PBKDF2(byte* output, const byte* passwd, int pLen, const byte* salt, /* encode i */ for (j = 0; j < 4; j++) { - byte b = i >> ((3-j) * 8); + byte b = (byte)(i >> ((3-j) * 8)); HmacUpdate(&hmac, &b, 1); } HmacFinal(&hmac, buffer);