/* */ #ifndef D_LIBSSL_ARC4_DECRYPTOR_H #define D_LIBSSL_ARC4_DECRYPTOR_H #include "common.h" #include #include "LibsslARC4Context.h" namespace aria2 { class ARC4Decryptor { private: LibsslARC4Context 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_LIBSSL_ARC4_DECRYPTOR_H