diff options
author | lloyd <[email protected]> | 2010-10-29 14:43:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-29 14:43:03 +0000 |
commit | 1f438bfa0ef0777cdee8585a1061c7b355cf5222 (patch) | |
tree | f13e5e71b5ff15eb291233f9a29b4c4dd8f97a8c /src/cms | |
parent | e8b1e9cb1dde969a73c3d33f192162a9ec6a2b4b (diff) |
s/u32bit/size_t/
Diffstat (limited to 'src/cms')
-rw-r--r-- | src/cms/cms_algo.cpp | 4 | ||||
-rw-r--r-- | src/cms/cms_ealg.cpp | 2 | ||||
-rw-r--r-- | src/cms/cms_enc.cpp | 2 | ||||
-rw-r--r-- | src/cms/cms_enc.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/cms/cms_algo.cpp b/src/cms/cms_algo.cpp index 33652a6b6..a02f7e737 100644 --- a/src/cms/cms_algo.cpp +++ b/src/cms/cms_algo.cpp @@ -39,7 +39,7 @@ SecureVector<byte> do_rfc3217_wrap(RandomNumberGenerator& rng, } void end_msg() { - for(u32bit j = 0; j != buf.size(); j++) + for(size_t j = 0; j != buf.size(); j++) send(buf[buf.size()-j-1]); buf.clear(); } @@ -149,7 +149,7 @@ SecureVector<byte> CMS_Encoder::encode_params(const std::string& cipher, SymmetricKey CMS_Encoder::setup_key(RandomNumberGenerator& rng, const std::string& cipher) { - u32bit keysize = 0; + size_t keysize = 0; if(cipher == "TripleDES") keysize = 24; if(cipher == "RC2") keysize = 16; diff --git a/src/cms/cms_ealg.cpp b/src/cms/cms_ealg.cpp index 382d5230e..262c74b86 100644 --- a/src/cms/cms_ealg.cpp +++ b/src/cms/cms_ealg.cpp @@ -316,7 +316,7 @@ void CMS_Encoder::sign(const X509_Certificate& cert, .raw_bytes(make_econtent(data, type)); encoder.start_cons(ASN1_Tag(0), CONTEXT_SPECIFIC); - for(u32bit j = 0; j != chain.size(); j++) + for(size_t j = 0; j != chain.size(); j++) encoder.raw_bytes(chain[j].BER_encode()); encoder.raw_bytes(cert.BER_encode()).end_cons(); diff --git a/src/cms/cms_enc.cpp b/src/cms/cms_enc.cpp index 3437c15e3..1cc2064ac 100644 --- a/src/cms/cms_enc.cpp +++ b/src/cms/cms_enc.cpp @@ -15,7 +15,7 @@ namespace Botan { /* * Setup the intitial layer of CMS data */ -void CMS_Encoder::set_data(const byte buf[], u32bit length) +void CMS_Encoder::set_data(const byte buf[], size_t length) { if(!data.empty()) throw Invalid_State("Cannot call CMS_Encoder::set_data here"); diff --git a/src/cms/cms_enc.h b/src/cms/cms_enc.h index f8e9a5a8f..5dca838dd 100644 --- a/src/cms/cms_enc.h +++ b/src/cms/cms_enc.h @@ -51,10 +51,10 @@ class BOTAN_DLL CMS_Encoder std::string PEM_contents(); void set_data(const std::string&); - void set_data(const byte[], u32bit); + void set_data(const byte[], size_t); CMS_Encoder(const std::string& str) { set_data(str); } - CMS_Encoder(const byte buf[], u32bit length) { set_data(buf, length); } + CMS_Encoder(const byte buf[], size_t length) { set_data(buf, length); } private: void add_layer(const std::string&, DER_Encoder&); |