diff options
author | lloyd <[email protected]> | 2008-09-30 03:51:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-30 03:51:38 +0000 |
commit | ae0901dde9282d1b9c2de7a1fac4a41c8043d59c (patch) | |
tree | 3250c45eecdca61edfc44e650f40988506d6f7c7 /src/cms/cms_algo.cpp | |
parent | 0dca71e64c81d0b75f32beeadfe38d57c148db5b (diff) |
Many updates for the CMS code to bring up to date with current API
Diffstat (limited to 'src/cms/cms_algo.cpp')
-rw-r--r-- | src/cms/cms_algo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<byte> 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()); |