diff options
author | lloyd <[email protected]> | 2011-02-09 15:13:28 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-02-09 15:13:28 +0000 |
commit | 75eff6cba7ac959f0d3b5292aa5ca7e321bf2e0d (patch) | |
tree | ad44e3ce741c7d2c83c46a21f0242be4eec33402 /src/cms/cms_algo.cpp | |
parent | 5fa1a353fcdfc5fc83618f07a89b3d320596ae07 (diff) |
Convert the BER/DER coders to use size_t instead of u32bit for small
integer values. Update callers.
Diffstat (limited to 'src/cms/cms_algo.cpp')
-rw-r--r-- | src/cms/cms_algo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cms/cms_algo.cpp b/src/cms/cms_algo.cpp index a02f7e737..50384d85a 100644 --- a/src/cms/cms_algo.cpp +++ b/src/cms/cms_algo.cpp @@ -123,7 +123,7 @@ SecureVector<byte> CMS_Encoder::encode_params(const std::string& cipher, if(cipher == "RC2") { encoder.start_cons(SEQUENCE). - encode((u32bit)RC2::EKB_code(8*key.length())). + encode(static_cast<size_t>(RC2::EKB_code(8*key.length()))). encode(iv.bits_of(), OCTET_STRING). end_cons(); return encoder.get_contents(); @@ -134,7 +134,7 @@ SecureVector<byte> CMS_Encoder::encode_params(const std::string& cipher, { encoder.start_cons(SEQUENCE). encode(iv.bits_of(), OCTET_STRING). - encode(u32bit(8*key.length())). + encode(8*key.length()). end_cons(); } else |