/* */ #ifndef D_LIBSSL_ARC4_CONTEXT_H #define D_LIBSSL_ARC4_CONTEXT_H #include "common.h" #include namespace aria2 { class LibsslARC4Context { private: EVP_CIPHER_CTX* cipherCtx_; public: LibsslARC4Context(); ~LibsslARC4Context(); EVP_CIPHER_CTX* getCipherContext() const; // enc == 1: encryption // enc == 0: decryption void init(const unsigned char* key, size_t keyLength, int enc); }; } // namespace aria2 #endif // D_LIBSSL_ARC4_CONTEXT_H