Home
last modified time | relevance | path

Searched refs:m_KeyLen (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/core/fpdfapi/parser/
Dcpdf_crypto_handler.cpp57 if (m_Cipher != FXCIPHER_AES || m_KeyLen != 32) { in CryptBlock()
62 memcpy(key1 + m_KeyLen + 5, "sAlT", 4); in CryptBlock()
63 size_t len = m_Cipher == FXCIPHER_AES ? m_KeyLen + 9 : m_KeyLen + 5; in CryptBlock()
65 realkeylen = std::min(m_KeyLen + 5, sizeof(realkey)); in CryptBlock()
69 m_KeyLen == 32 ? m_EncryptKey : realkey, m_KeyLen, in CryptBlock()
116 if (m_Cipher == FXCIPHER_AES && m_KeyLen == 32) { in CryptStart()
133 memcpy(key1 + m_KeyLen + 5, "sAlT", 4); in CryptStart()
136 size_t len = m_Cipher == FXCIPHER_AES ? m_KeyLen + 9 : m_KeyLen + 5; in CryptStart()
138 size_t realkeylen = std::min(m_KeyLen + 5, sizeof(realkey)); in CryptStart()
383 : m_KeyLen(std::min<size_t>(keylen, 32)), m_Cipher(cipher) { in CPDF_CryptoHandler()
[all …]
Dcpdf_security_handler.cpp285 return LoadCryptInfo(pEncryptDict, ByteString(), &m_Cipher, &m_KeyLen); in LoadDict()
292 return LoadCryptInfo(pEncryptDict, strf_name, &m_Cipher, &m_KeyLen); in LoadDict()
315 m_KeyLen = *key_len; in LoadDict()
437 CalcEncryptKey(m_pEncryptDict.Get(), password, m_EncryptKey, m_KeyLen, in CheckUserPassword()
448 CRYPT_ArcFourCryptBlock(ukeybuf, {m_EncryptKey, m_KeyLen}); in CheckUserPassword()
458 for (size_t j = 0; j < m_KeyLen; j++) in CheckUserPassword()
460 CRYPT_ArcFourCryptBlock(test, {tmpkey, m_KeyLen}); in CheckUserPassword()
488 size_t copy_len = std::min(m_KeyLen, sizeof(digest)); in GetUserPassword()
495 CRYPT_ArcFourCryptBlock(okey_span, {enckey, m_KeyLen}); in GetUserPassword()
499 for (size_t j = 0; j < m_KeyLen; j++) in GetUserPassword()
[all …]
Dcpdf_crypto_handler.h63 const size_t m_KeyLen; variable
Dcpdf_security_handler.h93 size_t m_KeyLen = 0; variable
/external/pdfium/core/fpdfapi/render/
Dcpdf_type3cache.cpp30 int m_KeyLen; member
42 m_KeyLen = count * sizeof(uint32_t); in Generate()
98 ByteString FaceGlyphsKey(keygen.m_Key, keygen.m_KeyLen); in LoadGlyph()