PoDoFo 0.9.20
Protected Member Functions | List of all members
PoDoFo::PdfEncryptRC4Base Class Reference

#include <PdfEncrypt.h>

Inherited by PoDoFo::PdfEncryptMD5Base.

Protected Member Functions

void RC4 (const unsigned char *key, unsigned keylen, const unsigned char *textin, size_t textlen, unsigned char *textout, size_t textoutlen) const
 

Detailed Description

A pure virtual class that is used to encrypt a PDF file (RC4-40..128) This class is the base for classes that implement algorithms based on RC4

Client code is working only with PdfEncrypt class and knows nothing about PdfEncrypt*, it is created through CreatePdfEncrypt factory method

Member Function Documentation

◆ RC4()

void PdfEncryptRC4Base::RC4 ( const unsigned char *  key,
unsigned  keylen,
const unsigned char *  textin,
size_t  textlen,
unsigned char *  textout,
size_t  textoutlen 
) const
protected

RC4 is the standard encryption algorithm used in PDF format