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.h File Reference

(3dce9b5818576f04ce21cec4b3686eda012e5b65)

#include <stdint.h>
#include "third_party/base/containers/span.h"
+ Include dependency graph for fx_crypt.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CRYPT_rc4_context
 
struct  CRYPT_aes_context
 
struct  CRYPT_md5_context
 
struct  CRYPT_sha1_context
 
struct  CRYPT_sha2_context
 

Functions

void CRYPT_ArcFourCryptBlock (pdfium::span< uint8_t > data, pdfium::span< const uint8_t > key)
 
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_AESSetKey (CRYPT_aes_context *context, const uint8_t *key, uint32_t keylen)
 
void CRYPT_AESSetIV (CRYPT_aes_context *context, const uint8_t *iv)
 
void CRYPT_AESDecrypt (CRYPT_aes_context *context, uint8_t *dest, const uint8_t *src, uint32_t size)
 
void CRYPT_AESEncrypt (CRYPT_aes_context *context, uint8_t *dest, const uint8_t *src, uint32_t size)
 
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, uint8_t digest[16])
 
void CRYPT_MD5Generate (pdfium::span< const uint8_t > data, uint8_t digest[16])
 
void CRYPT_SHA1Start (CRYPT_sha1_context *context)
 
void CRYPT_SHA1Update (CRYPT_sha1_context *context, const uint8_t *data, uint32_t size)
 
void CRYPT_SHA1Finish (CRYPT_sha1_context *context, uint8_t digest[20])
 
void CRYPT_SHA1Generate (const uint8_t *data, uint32_t size, uint8_t digest[20])
 
void CRYPT_SHA256Start (CRYPT_sha2_context *context)
 
void CRYPT_SHA256Update (CRYPT_sha2_context *context, const uint8_t *data, uint32_t size)
 
void CRYPT_SHA256Finish (CRYPT_sha2_context *context, uint8_t digest[32])
 
void CRYPT_SHA256Generate (const uint8_t *data, uint32_t size, uint8_t digest[32])
 
void CRYPT_SHA384Start (CRYPT_sha2_context *context)
 
void CRYPT_SHA384Update (CRYPT_sha2_context *context, const uint8_t *data, uint32_t size)
 
void CRYPT_SHA384Finish (CRYPT_sha2_context *context, uint8_t digest[48])
 
void CRYPT_SHA384Generate (const uint8_t *data, uint32_t size, uint8_t digest[48])
 
void CRYPT_SHA512Start (CRYPT_sha2_context *context)
 
void CRYPT_SHA512Update (CRYPT_sha2_context *context, const uint8_t *data, uint32_t size)
 
void CRYPT_SHA512Finish (CRYPT_sha2_context *context, uint8_t digest[64])
 
void CRYPT_SHA512Generate (const uint8_t *data, uint32_t size, uint8_t digest[64])
 

Function Documentation

◆ CRYPT_AESDecrypt()

void CRYPT_AESDecrypt ( CRYPT_aes_context * context,
uint8_t * dest,
const uint8_t * src,
uint32_t size )

Definition at line 647 of file fx_crypt_aes.cpp.

◆ CRYPT_AESEncrypt()

void CRYPT_AESEncrypt ( CRYPT_aes_context * context,
uint8_t * dest,
const uint8_t * src,
uint32_t size )

Definition at line 654 of file fx_crypt_aes.cpp.

◆ CRYPT_AESSetIV()

void CRYPT_AESSetIV ( CRYPT_aes_context * context,
const uint8_t * iv )

Definition at line 642 of file fx_crypt_aes.cpp.

References CRYPT_aes_context::iv, and CRYPT_aes_context::Nb.

◆ CRYPT_AESSetKey()

void CRYPT_AESSetKey ( CRYPT_aes_context * context,
const uint8_t * key,
uint32_t keylen )

Definition at line 636 of file fx_crypt_aes.cpp.

◆ CRYPT_ArcFourCrypt()

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

Definition at line 158 of file fx_crypt.cpp.

◆ CRYPT_ArcFourCryptBlock()

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

Definition at line 169 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,
uint8_t digest[16] )

Definition at line 214 of file fx_crypt.cpp.

References CRYPT_md5_context::state, and CRYPT_md5_context::total.

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

+ Here is the caller graph for this function:

◆ CRYPT_MD5Generate()

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

Definition at line 228 of file fx_crypt.cpp.

References CRYPT_MD5Finish(), and CRYPT_MD5Start().

+ Here is the call graph for this function:

◆ CRYPT_MD5Start()

CRYPT_md5_context CRYPT_MD5Start ( )

Definition at line 176 of file fx_crypt.cpp.

References CRYPT_md5_context::state, and CRYPT_md5_context::total.

Referenced by CRYPT_MD5Generate(), 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 187 of file fx_crypt.cpp.

References CRYPT_md5_context::buffer, and CRYPT_md5_context::total.

◆ CRYPT_SHA1Finish()

void CRYPT_SHA1Finish ( CRYPT_sha1_context * context,
uint8_t digest[20] )

Definition at line 392 of file fx_crypt_sha.cpp.

References CRYPT_sha1_context::blkused, CRYPT_SHA1Update(), CRYPT_sha1_context::h, and CRYPT_sha1_context::total_bytes.

Referenced by CRYPT_SHA1Generate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CRYPT_SHA1Generate()

void CRYPT_SHA1Generate ( const uint8_t * data,
uint32_t size,
uint8_t digest[20] )

Definition at line 421 of file fx_crypt_sha.cpp.

References CRYPT_SHA1Finish(), CRYPT_SHA1Start(), and CRYPT_SHA1Update().

+ Here is the call graph for this function:

◆ CRYPT_SHA1Start()

void CRYPT_SHA1Start ( CRYPT_sha1_context * context)

Definition at line 359 of file fx_crypt_sha.cpp.

References CRYPT_sha1_context::blkused, CRYPT_sha1_context::h, and CRYPT_sha1_context::total_bytes.

Referenced by CRYPT_SHA1Generate().

+ Here is the caller graph for this function:

◆ CRYPT_SHA1Update()

void CRYPT_SHA1Update ( CRYPT_sha1_context * context,
const uint8_t * data,
uint32_t size )

Definition at line 365 of file fx_crypt_sha.cpp.

References CRYPT_sha1_context::blkused, CRYPT_sha1_context::block, CRYPT_sha1_context::h, and CRYPT_sha1_context::total_bytes.

Referenced by CRYPT_SHA1Finish(), and CRYPT_SHA1Generate().

+ Here is the caller graph for this function:

◆ CRYPT_SHA256Finish()

void CRYPT_SHA256Finish ( CRYPT_sha2_context * context,
uint8_t digest[32] )

Definition at line 468 of file fx_crypt_sha.cpp.

References CRYPT_SHA256Update(), CRYPT_sha2_context::state, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA256Generate(), and CPDF_SecurityHandler::OnCreate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CRYPT_SHA256Generate()

void CRYPT_SHA256Generate ( const uint8_t * data,
uint32_t size,
uint8_t digest[32] )

Definition at line 486 of file fx_crypt_sha.cpp.

References CRYPT_SHA256Finish(), CRYPT_SHA256Start(), and CRYPT_SHA256Update().

+ Here is the call graph for this function:

◆ CRYPT_SHA256Start()

void CRYPT_SHA256Start ( CRYPT_sha2_context * context)

Definition at line 430 of file fx_crypt_sha.cpp.

References CRYPT_sha2_context::buffer, CRYPT_sha2_context::state, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA256Generate(), and CPDF_SecurityHandler::OnCreate().

+ Here is the caller graph for this function:

◆ CRYPT_SHA256Update()

void CRYPT_SHA256Update ( CRYPT_sha2_context * context,
const uint8_t * data,
uint32_t size )

Definition at line 443 of file fx_crypt_sha.cpp.

References CRYPT_sha2_context::buffer, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA256Finish(), CRYPT_SHA256Generate(), and CPDF_SecurityHandler::OnCreate().

+ Here is the caller graph for this function:

◆ CRYPT_SHA384Finish()

void CRYPT_SHA384Finish ( CRYPT_sha2_context * context,
uint8_t digest[48] )

Definition at line 533 of file fx_crypt_sha.cpp.

References CRYPT_SHA384Update(), CRYPT_sha2_context::state, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA384Generate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CRYPT_SHA384Generate()

void CRYPT_SHA384Generate ( const uint8_t * data,
uint32_t size,
uint8_t digest[48] )

Definition at line 550 of file fx_crypt_sha.cpp.

References CRYPT_SHA384Finish(), CRYPT_SHA384Start(), and CRYPT_SHA384Update().

+ Here is the call graph for this function:

◆ CRYPT_SHA384Start()

void CRYPT_SHA384Start ( CRYPT_sha2_context * context)

Definition at line 495 of file fx_crypt_sha.cpp.

References CRYPT_sha2_context::buffer, CRYPT_sha2_context::state, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA384Generate().

+ Here is the caller graph for this function:

◆ CRYPT_SHA384Update()

void CRYPT_SHA384Update ( CRYPT_sha2_context * context,
const uint8_t * data,
uint32_t size )

Definition at line 508 of file fx_crypt_sha.cpp.

References CRYPT_sha2_context::buffer, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA384Finish(), CRYPT_SHA384Generate(), and CRYPT_SHA512Update().

+ Here is the caller graph for this function:

◆ CRYPT_SHA512Finish()

void CRYPT_SHA512Finish ( CRYPT_sha2_context * context,
uint8_t digest[64] )

Definition at line 578 of file fx_crypt_sha.cpp.

References CRYPT_SHA512Update(), CRYPT_sha2_context::state, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA512Generate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CRYPT_SHA512Generate()

void CRYPT_SHA512Generate ( const uint8_t * data,
uint32_t size,
uint8_t digest[64] )

Definition at line 597 of file fx_crypt_sha.cpp.

References CRYPT_SHA512Finish(), CRYPT_SHA512Start(), and CRYPT_SHA512Update().

+ Here is the call graph for this function:

◆ CRYPT_SHA512Start()

void CRYPT_SHA512Start ( CRYPT_sha2_context * context)

Definition at line 559 of file fx_crypt_sha.cpp.

References CRYPT_sha2_context::buffer, CRYPT_sha2_context::state, and CRYPT_sha2_context::total_bytes.

Referenced by CRYPT_SHA512Generate().

+ Here is the caller graph for this function:

◆ CRYPT_SHA512Update()

void CRYPT_SHA512Update ( CRYPT_sha2_context * context,
const uint8_t * data,
uint32_t size )

Definition at line 572 of file fx_crypt_sha.cpp.

References CRYPT_SHA384Update().

Referenced by CRYPT_SHA512Finish(), and CRYPT_SHA512Generate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: