From ae0901dde9282d1b9c2de7a1fac4a41c8043d59c Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 30 Sep 2008 03:51:38 +0000 Subject: Many updates for the CMS code to bring up to date with current API --- src/cms/cms_algo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cms/cms_algo.cpp') diff --git a/src/cms/cms_algo.cpp b/src/cms/cms_algo.cpp index efd016514..fadc68da5 100644 --- a/src/cms/cms_algo.cpp +++ b/src/cms/cms_algo.cpp @@ -49,9 +49,11 @@ SecureVector do_rfc3217_wrap(RandomNumberGenerator& rng, InitializationVector iv(rng, 8); InitializationVector fixed("4ADDA22C79E82105"); - Pipe pipe(get_cipher(cipher + "/CBC/NoPadding", kek, iv, ENCRYPTION), + Pipe pipe(get_cipher(global_state(), + cipher + "/CBC/NoPadding", kek, iv, ENCRYPTION), new Flip_Bytes(iv.bits_of()), - get_cipher(cipher + "/CBC/NoPadding", kek, fixed, ENCRYPTION)); + get_cipher(global_state(), + cipher + "/CBC/NoPadding", kek, fixed, ENCRYPTION)); pipe.start_msg(); pipe.write(input); pipe.write(icv.read_all()); -- cgit v1.2.3