1 // MyAesReg.cpp 2 3 #include "StdAfx.h" 4 5 #include "../Common/RegisterCodec.h" 6 7 #include "MyAes.h" 8 9 static void *CreateCodecCbc() { return (void *)(ICompressFilter *)(new NCrypto::CAesCbcDecoder(32)); } 10 #ifndef EXTRACT_ONLY 11 static void *CreateCodecCbcOut() { return (void *)(ICompressFilter *)(new NCrypto::CAesCbcEncoder(32)); } 12 #else 13 #define CreateCodecCbcOut 0 14 #endif 15 16 static CCodecInfo g_CodecInfo = 17 { CreateCodecCbc, CreateCodecCbcOut, 0x06F00181, L"AES256CBC", 1, true }; 18 REGISTER_CODEC(AES256CBC) 19 20