Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

crypt.h File Reference

#include "scconfig.h"

Include dependency graph for crypt.h:

Go to the source code of this file.

Defines

#define CRC32(c, b)   ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))
#define zdecode(pkeys, pcrc_32_tab, c)   (update_keys(pkeys,pcrc_32_tab,c ^= decrypt_byte(pkeys,pcrc_32_tab)))
#define zencode(pkeys, pcrc_32_tab, c, t)   (t=decrypt_byte(pkeys,pcrc_32_tab), update_keys(pkeys,pcrc_32_tab,c), t^(c))

Functions

static int decrypt_byte (unsigned long *pkeys, const unsigned long *pcrc_32_tab)
static int update_keys (unsigned long *pkeys, const unsigned long *pcrc_32_tab, int c)
static void init_keys (const char *passwd, unsigned long *pkeys, const unsigned long *pcrc_32_tab)


Define Documentation

#define CRC32 ( c,
 )     ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))

Definition at line 38 of file crypt.h.

Referenced by update_keys().

#define zdecode ( pkeys,
pcrc_32_tab,
 )     (update_keys(pkeys,pcrc_32_tab,c ^= decrypt_byte(pkeys,pcrc_32_tab)))

Definition at line 84 of file crypt.h.

#define zencode ( pkeys,
pcrc_32_tab,
c,
 )     (t=decrypt_byte(pkeys,pcrc_32_tab), update_keys(pkeys,pcrc_32_tab,c), t^(c))

Definition at line 87 of file crypt.h.


Function Documentation

static int decrypt_byte ( unsigned long *  pkeys,
const unsigned long *  pcrc_32_tab 
) [static]

Definition at line 43 of file crypt.h.

static void init_keys ( const char *  passwd,
unsigned long *  pkeys,
const unsigned long *  pcrc_32_tab 
) [static]

Definition at line 73 of file crypt.h.

References update_keys().

static int update_keys ( unsigned long *  pkeys,
const unsigned long *  pcrc_32_tab,
int  c 
) [static]

Definition at line 56 of file crypt.h.

References CRC32, and int().

Referenced by init_keys().

Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.