wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs
pdfencrypt.cpp File Reference

Implementation of the wxPdfEncrypt class. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/log.h>
#include "wx/pdfencrypt.h"
#include "wx/pdfrijndael.h"
#include "wx/pdfutility.h"
#include "wx/pdfproperties.h"
#include "crypto/sha256.h"
#include "crypto/sha384.h"
#include "crypto/random.h"
#include "crypto/saslprep.h"
#include <vector>
#include <string.h>
Include dependency graph for pdfencrypt.cpp:

Data Structures

class  wxPdfRandomBytesGenerator
 
struct  MD5_CTX
 

Macros

#define MD5_HASHBYTES   16
 
#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
 
#define H(x, y, z)   (((x) ^ (y)) ^ (z))
 
#define H2(x, y, z)   ((x) ^ ((y) ^ (z)))
 
#define I(x, y, z)   ((y) ^ ((x) | ~(z)))
 
#define STEP(f, a, b, c, d, x, t, s)
 
#define SET(n)
 
#define GET(n)    (ctx->block[(n)])
 

Typedefs

typedef unsigned int MD5_u32plus
 

Detailed Description

Implementation of the wxPdfEncrypt class.

Macro Definition Documentation

◆ SET

#define SET (   n)
Value:
(ctx->block[(n)] = \
(MD5_u32plus)ptr[(n) * 4] | \
((MD5_u32plus)ptr[(n) * 4 + 1] << 8) | \
((MD5_u32plus)ptr[(n) * 4 + 2] << 16) | \
((MD5_u32plus)ptr[(n) * 4 + 3] << 24))

◆ STEP

#define STEP (   f,
  a,
  b,
  c,
  d,
  x,
  t,
  s 
)
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \
(a) += (b);