From 4c29106c5a1d669bdbbe850ee3db83f372303dd8 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 May 2007 15:36:15 +0000 Subject: [PATCH] fix compile --- trunk/c5/serpent.cpp | 2 +- trunk/c5/serpentp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/c5/serpent.cpp b/trunk/c5/serpent.cpp index 4d8cd1d0..40fab23d 100644 --- a/trunk/c5/serpent.cpp +++ b/trunk/c5/serpent.cpp @@ -8,7 +8,7 @@ NAMESPACE_BEGIN(CryptoPP) -void Serpent_KeySchedule(word32 *k, unsigned int rounds, const byte *userKey, unsigned int keylen) +void Serpent_KeySchedule(word32 *k, unsigned int rounds, const byte *userKey, size_t keylen) { FixedSizeSecBlock k0; GetUserKey(LITTLE_ENDIAN_ORDER, k0.begin(), 8, userKey, keylen); diff --git a/trunk/c5/serpentp.h b/trunk/c5/serpentp.h index af3fc4e7..7869a3fc 100755 --- a/trunk/c5/serpentp.h +++ b/trunk/c5/serpentp.h @@ -429,6 +429,6 @@ NAMESPACE_BEGIN(CryptoPP) k[(8-r)*4 + 6] = c; \ k[(8-r)*4 + 7] = d;} -void Serpent_KeySchedule(word32 *k, unsigned int rounds, const byte *userKey, unsigned int keylen); +void Serpent_KeySchedule(word32 *k, unsigned int rounds, const byte *userKey, size_t keylen); NAMESPACE_END