/* */ #ifndef D_LIBGCRYPT_ARC4_CONTEXT_H #define D_LIBGCRYPT_ARC4_CONTEXT_H #include "common.h" #include namespace aria2 { class LibgcryptARC4Context { private: gcry_cipher_hd_t cipherCtx_; public: LibgcryptARC4Context(); ~LibgcryptARC4Context(); gcry_cipher_hd_t getCipherContext() const { return cipherCtx_; } void init(const unsigned char* key, size_t keyLength); }; } // namespace aria2 #endif // D_LIBGCRYPT_ARC4_CONTEXT_H