aboutsummaryrefslogtreecommitdiffstats
path: root/src/cms
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 02:56:03 +0000
committerlloyd <[email protected]>2010-10-13 02:56:03 +0000
commit3697dcff8b5e9765b41114281ce10e7ed3d3abb4 (patch)
tree670853a74b0fe173e7e9fce9cd3e6eda7a03d2c7 /src/cms
parent63121e1e169616f724bf79b8aac1a2b4423c8904 (diff)
s/BLOCK_SIZE/block_size()/
Diffstat (limited to 'src/cms')
-rw-r--r--src/cms/cms_algo.cpp2
-rw-r--r--src/cms/cms_ealg.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cms/cms_algo.cpp b/src/cms/cms_algo.cpp
index e74c385fa..33652a6b6 100644
--- a/src/cms/cms_algo.cpp
+++ b/src/cms/cms_algo.cpp
@@ -53,7 +53,7 @@ SecureVector<byte> do_rfc3217_wrap(RandomNumberGenerator& rng,
const BlockCipher* cipher = af.prototype_block_cipher(cipher_name);
- if(!cipher || cipher->BLOCK_SIZE != 8)
+ if(!cipher || cipher->block_size() != 8)
throw Encoding_Error("do_rfc3217_wrap: Bad cipher: " + cipher_name);
Pipe icv(new Hash_Filter(new SHA_160, 8));
diff --git a/src/cms/cms_ealg.cpp b/src/cms/cms_ealg.cpp
index 7b1ab6bc9..382d5230e 100644
--- a/src/cms/cms_ealg.cpp
+++ b/src/cms/cms_ealg.cpp
@@ -258,7 +258,7 @@ SecureVector<byte> CMS_Encoder::do_encrypt(RandomNumberGenerator& rng,
if(!OIDS::have_oid(cipher->name() + "/CBC"))
throw Encoding_Error("CMS: No OID assigned for " + cipher_name + "/CBC");
- InitializationVector iv(rng, cipher->BLOCK_SIZE);
+ InitializationVector iv(rng, cipher->block_size());
AlgorithmIdentifier content_cipher;
content_cipher.oid = OIDS::lookup(cipher->name() + "/CBC");