/* */ #ifndef D_LIBNETTLE_ARC4_ENCRYPTOR_H #define D_LIBNETTLE_ARC4_ENCRYPTOR_H #include "common.h" #include "LibnettleARC4Context.h" namespace aria2 { class ARC4Encryptor { private: LibnettleARC4Context 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_LIBNETTLE_ARC4_ENCRYPTOR_H