summaryrefslogtreecommitdiff
path: root/pwdbased.h
diff options
context:
space:
mode:
Diffstat (limited to 'pwdbased.h')
-rw-r--r--pwdbased.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwdbased.h b/pwdbased.h
index bdd1edc..99d2c3f 100644
--- a/pwdbased.h
+++ b/pwdbased.h
@@ -101,7 +101,7 @@ unsigned int PKCS5_PBKDF2_HMAC<T>::DeriveKey(byte *derived, size_t derivedLen, b
unsigned int j;
for (j=0; j<4; j++)
{
- byte b = i >> ((3-j)*8);
+ byte b = byte(i >> ((3-j)*8));
hmac.Update(&b, 1);
}
hmac.Final(buffer);