aboutsummaryrefslogtreecommitdiffstats
path: root/src/codec
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-17 05:03:06 +0000
committerlloyd <[email protected]>2009-11-17 05:03:06 +0000
commit0d27bc0f8763cb6dd6307dbab7713058dee18b2c (patch)
tree5cb428e1c4475ca24f1e4a84dfdc07c7a9e91393 /src/codec
parent0753d6e2c478430d8cd1a0df8d21f68a05260300 (diff)
Rename/remove some secmem member variables for better matching with STL
containers (specifically vector). Rename is_empty to empty Remove has_items Rename create to resize
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/base64/base64.cpp8
-rw-r--r--src/codec/hex/hex.cpp12
2 files changed, 10 insertions, 10 deletions
diff --git a/src/codec/base64/base64.cpp b/src/codec/base64/base64.cpp
index dfcc1cae7..9110dc57e 100644
--- a/src/codec/base64/base64.cpp
+++ b/src/codec/base64/base64.cpp
@@ -18,8 +18,8 @@ namespace Botan {
Base64_Encoder::Base64_Encoder(bool breaks, u32bit length, bool t_n) :
line_length(breaks ? length : 0), trailing_newline(t_n)
{
- in.create(48);
- out.create(4);
+ in.resize(48);
+ out.resize(4);
counter = position = 0;
}
@@ -132,8 +132,8 @@ void Base64_Encoder::end_msg()
*/
Base64_Decoder::Base64_Decoder(Decoder_Checking c) : checking(c)
{
- in.create(48);
- out.create(3);
+ in.resize(48);
+ out.resize(3);
position = 0;
}
diff --git a/src/codec/hex/hex.cpp b/src/codec/hex/hex.cpp
index 201c9bfdf..651899b73 100644
--- a/src/codec/hex/hex.cpp
+++ b/src/codec/hex/hex.cpp
@@ -21,8 +21,8 @@ const u32bit HEX_CODEC_BUFFER_SIZE = 256;
Hex_Encoder::Hex_Encoder(bool breaks, u32bit length, Case c) :
casing(c), line_length(breaks ? length : 0)
{
- in.create(HEX_CODEC_BUFFER_SIZE);
- out.create(2*in.size());
+ in.resize(HEX_CODEC_BUFFER_SIZE);
+ out.resize(2*in.size());
counter = position = 0;
}
@@ -31,8 +31,8 @@ Hex_Encoder::Hex_Encoder(bool breaks, u32bit length, Case c) :
*/
Hex_Encoder::Hex_Encoder(Case c) : casing(c), line_length(0)
{
- in.create(HEX_CODEC_BUFFER_SIZE);
- out.create(2*in.size());
+ in.resize(HEX_CODEC_BUFFER_SIZE);
+ out.resize(2*in.size());
counter = position = 0;
}
@@ -116,8 +116,8 @@ void Hex_Encoder::end_msg()
*/
Hex_Decoder::Hex_Decoder(Decoder_Checking c) : checking(c)
{
- in.create(HEX_CODEC_BUFFER_SIZE);
- out.create(in.size() / 2);
+ in.resize(HEX_CODEC_BUFFER_SIZE);
+ out.resize(in.size() / 2);
position = 0;
}