diff options
Diffstat (limited to 'CPP/7zip/Crypto/MyAesReg.cpp')
-rw-r--r-- | CPP/7zip/Crypto/MyAesReg.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/CPP/7zip/Crypto/MyAesReg.cpp b/CPP/7zip/Crypto/MyAesReg.cpp index faaa104b..91d62b94 100644 --- a/CPP/7zip/Crypto/MyAesReg.cpp +++ b/CPP/7zip/Crypto/MyAesReg.cpp @@ -6,14 +6,7 @@ #include "MyAes.h" -static void *CreateCodecCbc() { return (void *)(ICompressFilter *)(new NCrypto::CAesCbcDecoder(32)); } -#ifndef EXTRACT_ONLY -static void *CreateCodecCbcOut() { return (void *)(ICompressFilter *)(new NCrypto::CAesCbcEncoder(32)); } -#else -#define CreateCodecCbcOut 0 -#endif - -static CCodecInfo g_CodecInfo = - { CreateCodecCbc, CreateCodecCbcOut, 0x06F00181, L"AES256CBC", 1, true }; -REGISTER_CODEC(AES256CBC) - +REGISTER_FILTER_E(AES256CBC, + NCrypto::CAesCbcDecoder(32), + NCrypto::CAesCbcEncoder(32), + 0x6F00181, "AES256CBC")
\ No newline at end of file |