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