Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fx_crypt.cpp File Reference

(e4657a741c23c8f48e0e97ae2091dc2d99f4f27d)

#include "core/fdrm/fx_crypt.h"
#include <utility>
#include "core/fxcrt/byteorder.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/stl_util.h"
Include dependency graph for fx_crypt.cpp:

Go to the source code of this file.

Macros

#define S(x, n)
#define P(a, b, c, d, k, s, t)
#define F(x, y, z)
#define F(x, y, z)
#define F(x, y, z)
#define F(x, y, z)

Functions

void CRYPT_ArcFourSetup (CRYPT_rc4_context *context, pdfium::span< const uint8_t > key)
void CRYPT_ArcFourCrypt (CRYPT_rc4_context *context, pdfium::span< uint8_t > data)
void CRYPT_ArcFourCryptBlock (pdfium::span< uint8_t > data, pdfium::span< const uint8_t > key)
CRYPT_md5_context CRYPT_MD5Start ()
void CRYPT_MD5Update (CRYPT_md5_context *context, pdfium::span< const uint8_t > data)
void CRYPT_MD5Finish (CRYPT_md5_context *context, pdfium::span< uint8_t, 16 > digest)
void CRYPT_MD5Generate (pdfium::span< const uint8_t > data, pdfium::span< uint8_t, 16 > digest)

Macro Definition Documentation

◆ F [1/4]

#define F ( x,
y,
z )
Value:
(z ^ (x & (y ^ z)))
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
GLint y

◆ F [2/4]

#define F ( x,
y,
z )
Value:
(y ^ (z & (x ^ y)))

◆ F [3/4]

#define F ( x,
y,
z )
Value:
(x ^ y ^ z)

◆ F [4/4]

#define F ( x,
y,
z )
Value:
(y ^ (x | ~z))

◆ P

#define P ( a,
b,
c,
d,
k,
s,
t )
Value:
{ \
a += F(b, c, d) + X[k] + t; \
a = S(a, s) + b; \
}
#define S(x, n)
#define F(x, y, z)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLdouble s
[6]
Definition qopenglext.h:235
const GLubyte * c
GLdouble GLdouble t
Definition qopenglext.h:243
#define X(name)

◆ S

#define S ( x,
n )
Value:
((x << n) | ((x & 0xFFFFFFFF) >> (32 - n)))
GLfloat n

Function Documentation

◆ CRYPT_ArcFourCrypt()

void CRYPT_ArcFourCrypt ( CRYPT_rc4_context * context,
pdfium::span< uint8_t > data )

Definition at line 146 of file fx_crypt.cpp.

◆ CRYPT_ArcFourCryptBlock()

void CRYPT_ArcFourCryptBlock ( pdfium::span< uint8_t > data,
pdfium::span< const uint8_t > key )

Definition at line 157 of file fx_crypt.cpp.

◆ CRYPT_ArcFourSetup()

void CRYPT_ArcFourSetup ( CRYPT_rc4_context * context,
pdfium::span< const uint8_t > key )

◆ CRYPT_MD5Finish()

void CRYPT_MD5Finish ( CRYPT_md5_context * context,
pdfium::span< uint8_t, 16 > digest )

Definition at line 203 of file fx_crypt.cpp.

◆ CRYPT_MD5Generate()

void CRYPT_MD5Generate ( pdfium::span< const uint8_t > data,
pdfium::span< uint8_t, 16 > digest )

Definition at line 219 of file fx_crypt.cpp.

References CRYPT_MD5Start().

Here is the call graph for this function:

◆ CRYPT_MD5Start()

CRYPT_md5_context CRYPT_MD5Start ( )

Definition at line 164 of file fx_crypt.cpp.

Referenced by CRYPT_MD5Generate(), pdfium::CFDETextOutTest::GetBitmapChecksum(), EmbedderTest::HashBitmap(), CPDF_SecurityHandler::OnCreate(), TEST(), TEST(), and TEST().

Here is the caller graph for this function:

◆ CRYPT_MD5Update()

void CRYPT_MD5Update ( CRYPT_md5_context * context,
pdfium::span< const uint8_t > data )

Definition at line 175 of file fx_crypt.cpp.

References CRYPT_md5_context::buffer.