/* */ #ifndef D_LIBGCRYPT_ARC4_DECRYPTOR_H #define D_LIBGCRYPT_ARC4_DECRYPTOR_H #include "common.h" #include "LibgcryptARC4Context.h" namespace aria2 { class ARC4Decryptor { private: LibgcryptARC4Context ctx_; public: ARC4Decryptor(); ~ARC4Decryptor(); void init(const unsigned char* key, size_t keyLength); void decrypt(unsigned char* out, size_t outLength, const unsigned char* in, size_t inLength); }; } // namespace aria2 #endif // D_LIBGCRYPT_ARC4_DECRYPTOR_H