/dports/graphics/podofo/podofo-0.9.7/test/unit/ |
H A D | EncryptTest.cpp | 64 TestEncrypt( pEncrypt ); in testDefault() 66 delete pEncrypt; in testDefault() 77 TestEncrypt( pEncrypt ); in testRC4() 79 delete pEncrypt; in testRC4() 92 delete pEncrypt; in testRC4v2_40() 104 delete pEncrypt; in testRC4v2_56() 116 delete pEncrypt; in testRC4v2_80() 128 delete pEncrypt; in testRC4v2_96() 140 delete pEncrypt; in testRC4v2_128() 155 delete pEncrypt; in testAESV2() [all …]
|
H A D | EncryptTest.h | 78 void TestAuthenticate( PoDoFo::PdfEncrypt* pEncrypt, int keyLength, int rValue ); 79 void TestEncrypt( PoDoFo::PdfEncrypt* pEncrypt );
|
/dports/graphics/podofo/podofo-0.9.7/src/podofo/doc/ |
H A D | PdfStreamedDocument.cpp | 40 …edDocument( PdfOutputDevice* pDevice, EPdfVersion eVersion, PdfEncrypt* pEncrypt, EPdfWriteMode eW… in PdfStreamedDocument() argument 41 : m_pWriter( NULL ), m_pDevice( NULL ), m_pEncrypt( pEncrypt ), m_bOwnDevice( false ) in PdfStreamedDocument() 43 Init( pDevice, eVersion, pEncrypt, eWriteMode ); in PdfStreamedDocument() 46 …medDocument( const char* pszFilename, EPdfVersion eVersion, PdfEncrypt* pEncrypt, EPdfWriteMode eW… in PdfStreamedDocument() argument 47 : m_pWriter( NULL ), m_pEncrypt( pEncrypt ), m_bOwnDevice( true ) in PdfStreamedDocument() 50 Init( m_pDevice, eVersion, pEncrypt, eWriteMode ); in PdfStreamedDocument() 54 …Document( const wchar_t* pszFilename, EPdfVersion eVersion, PdfEncrypt* pEncrypt, EPdfWriteMode eW… in PdfStreamedDocument() argument 55 : m_pWriter( NULL ), m_pEncrypt( pEncrypt ), m_bOwnDevice( true ) in PdfStreamedDocument() 58 Init( m_pDevice, eVersion, pEncrypt, eWriteMode ); in PdfStreamedDocument() 70 PdfEncrypt* pEncrypt, EPdfWriteMode eWriteMode ) in Init() argument [all …]
|
H A D | PdfStreamedDocument.h | 96 …evice* pDevice, EPdfVersion eVersion = ePdfVersion_Default, PdfEncrypt* pEncrypt = NULL, EPdfWrite… 110 …r* pszFilename, EPdfVersion eVersion = ePdfVersion_Default, PdfEncrypt* pEncrypt = NULL, EPdfWrite… 129 …t* pszFilename, EPdfVersion eVersion = ePdfVersion_Default, PdfEncrypt* pEncrypt = NULL, EPdfWrite… 239 …evice* pDevice, EPdfVersion eVersion = ePdfVersion_Default, PdfEncrypt* pEncrypt = NULL, EPdfWrite…
|
/dports/graphics/podofo/podofo-0.9.7/src/podofo/base/ |
H A D | PdfTokenizer.cpp | 390 this->GetNextVariant( pszRead, eTokenType, rVariant, pEncrypt ); in GetNextVariant() 407 this->ReadDataType( eDataType, rVariant, pEncrypt ); in GetNextVariant() 561 this->ReadDictionary( rVariant, pEncrypt ); in ReadDataType() 564 this->ReadArray( rVariant, pEncrypt ); in ReadDataType() 567 this->ReadString( rVariant, pEncrypt ); in ReadDataType() 570 this->ReadHexString( rVariant, pEncrypt ); in ReadDataType() 613 this->GetNextVariant( pszToken, eType, val, pEncrypt ); in ReadDictionary() 651 this->ReadDataType( eDataType, val, pEncrypt ); in ReadDictionary() 675 encrypt = pEncrypt; in ReadDictionary() 704 this->GetNextVariant( pszToken, eType, var, pEncrypt ); in ReadArray() [all …]
|
H A D | PdfTokenizer.h | 128 void GetNextVariant( PdfVariant& rVariant, PdfEncrypt* pEncrypt ); 184 …xtVariant( const char* pszToken, EPdfTokenType eType, PdfVariant& rVariant, PdfEncrypt* pEncrypt ); 194 void ReadDataType( EPdfDataType eDataType, PdfVariant& rVariant, PdfEncrypt* pEncrypt ); 202 void ReadDictionary( PdfVariant& rVariant, PdfEncrypt* pEncrypt ); 210 void ReadArray( PdfVariant& rVariant, PdfEncrypt* pEncrypt ); 218 void ReadString( PdfVariant& rVariant, PdfEncrypt* pEncrypt ); 226 void ReadHexString( PdfVariant& rVariant, PdfEncrypt* pEncrypt );
|
H A D | PdfObject.cpp | 209 PdfEncrypt* pEncrypt, const PdfName & keyStop ) const in WriteObject() argument 230 if( pEncrypt ) in WriteObject() 232 pEncrypt->SetCurrentReference( m_reference ); in WriteObject() 235 if( pEncrypt && m_pStream ) in WriteObject() 242 pdf_long lLength = pEncrypt->CalculateStreamLength(m_pStream->GetLength()); in WriteObject() 248 this->Write( pDevice, eWriteMode, pEncrypt, keyStop ); in WriteObject() 253 m_pStream->Write( pDevice, pEncrypt ); in WriteObject()
|
H A D | PdfDictionary.h | 258 …ite( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt = NULL ) const; 270 const PdfEncrypt* pEncrypt, const PdfName & keyStop = PdfName::KeyNull ) const; 418 …ary::Write( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt ) const in Write() argument 420 this->Write( pDevice, eWriteMode, pEncrypt, PdfName::KeyNull ); in Write()
|
H A D | PdfMemStream.cpp | 275 void PdfMemStream::Write( PdfOutputDevice* pDevice, PdfEncrypt* pEncrypt ) in Write() argument 278 if( pEncrypt ) in Write() 282 pdf_long nOutputLen = pEncrypt->CalculateStreamLength(lLen); in Write() 286 pEncrypt->Encrypt( reinterpret_cast<const unsigned char*>(this->Get()), lLen, in Write()
|
H A D | PdfImmediateWriter.cpp | 47 PdfEncrypt* pEncrypt, EPdfWriteMode eWriteMode ) in PdfImmediateWriter() argument 62 if( pEncrypt ) in PdfImmediateWriter() 64 this->SetEncrypted( *pEncrypt ); in PdfImmediateWriter()
|
H A D | PdfVariant.cpp | 215 …iant::Write( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt ) const in Write() 217 this->Write( pDevice, eWriteMode, pEncrypt, PdfName::KeyNull ); in Write() 220 …( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt, const PdfName & … in Write() argument 306 m_Data.pData->Write( pDevice, eWriteMode, pEncrypt ); in Write() 309 … static_cast<PdfDictionary*>(m_Data.pData)->Write( pDevice, eWriteMode, pEncrypt, keyStop ); in Write()
|
H A D | PdfFileStream.h | 80 void SetEncrypted( PdfEncrypt* pEncrypt ); 86 virtual void Write( PdfOutputDevice* pDevice, PdfEncrypt* pEncrypt = NULL );
|
H A D | PdfFileStream.cpp | 135 void PdfFileStream::SetEncrypted( PdfEncrypt* pEncrypt ) in SetEncrypted() argument 137 m_pCurEncrypt = pEncrypt; in SetEncrypted()
|
H A D | PdfString.cpp | 253 void PdfString::SetHexData( const char* pszHex, pdf_long lLen, PdfEncrypt* pEncrypt ) in SetHexData() argument 322 if( pEncrypt ) in SetHexData() 324 pdf_long outBufferLen = m_buffer.GetSize() - 2 - pEncrypt->CalculateStreamOffset(); in SetHexData() 327 pEncrypt->Decrypt( reinterpret_cast<unsigned char*>(m_buffer.GetBuffer()), in SetHexData() 354 …ing::Write ( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt ) const in Write() 362 if( pEncrypt && m_buffer.GetSize() && IsValid() ) in Write() 379 pdf_long nOutputBufferLen = pEncrypt->CalculateStreamLength(nInputBufferLen); in Write() 383 …pEncrypt->Encrypt(reinterpret_cast<const unsigned char*>(pInputBuffer), nInputBufferLen, reinterpr… in Write()
|
H A D | PdfParser.cpp | 1043 PdfObject* pEncrypt = m_pTrailer->GetDictionary().GetKey( PdfName("Encrypt") ); in ReadObjects() local 1044 if( pEncrypt && !pEncrypt->IsNull() ) in ReadObjects() 1050 if( pEncrypt->IsReference() ) in ReadObjects() 1052 i = pEncrypt->GetReference().ObjectNumber(); in ReadObjects() 1056 …oss << "Encryption dictionary references a nonexistent object " << pEncrypt->GetReference().Object… in ReadObjects() 1057 << pEncrypt->GetReference().GenerationNumber(); in ReadObjects() 1085 else if( pEncrypt->IsDictionary() ) in ReadObjects() 1087 m_pEncrypt = PdfEncrypt::CreatePdfEncrypt( pEncrypt ); in ReadObjects()
|
H A D | PdfDictionary.cpp | 289 …( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt, const PdfName & … in Write() argument 318 this->GetKey( PdfName::KeyType )->Write( pDevice, eWriteMode, pEncrypt ); in Write() 338 (*itKeys).second->Write( pDevice, eWriteMode, pEncrypt ); in Write()
|
H A D | PdfParser.h | 659 PdfEncrypt* pEncrypt = m_pEncrypt; in TakeEncrypt() local 661 return pEncrypt; in TakeEncrypt()
|
H A D | PdfArray.cpp | 143 const PdfEncrypt* pEncrypt ) const in Write() 160 (*it).Write( pDevice, eWriteMode, pEncrypt ); in Write()
|
H A D | PdfString.h | 174 void SetHexData( const char* pszHex, pdf_long lLen = -1, PdfEncrypt* pEncrypt = NULL ); 306 …void Write ( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt = NULL…
|
H A D | PdfDataType.h | 67 …( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt = NULL ) const = …
|
H A D | PdfData.h | 98 …void Write( PdfOutputDevice* pDevice, EPdfWriteMode eWriteMode, const PdfEncrypt* pEncrypt = NULL …
|
H A D | PdfParserObject.cpp | 122 void PdfParserObject::ParseFile( PdfEncrypt* pEncrypt, bool bIsTrailer ) in ParseFile() argument 144 m_pEncrypt = pEncrypt; in ParseFile()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/pdfium/core/fpdfapi/parser/ |
H A D | cpdf_security_handler.cpp | 42 void CalcEncryptKey(const CPDF_Dictionary* pEncrypt, in CalcEncryptKey() argument 52 ByteString okey = pEncrypt->GetStringFor("O"); in CalcEncryptKey() 54 uint32_t perm = pEncrypt->GetIntegerFor("P"); in CalcEncryptKey() 58 const bool is_revision_3_or_greater = pEncrypt->GetIntegerFor("R") >= 3; in CalcEncryptKey() 60 !pEncrypt->GetBooleanFor("EncryptMetadata", true)) { in CalcEncryptKey()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/pdfium/core/fpdfapi/parser/ |
H A D | cpdf_security_handler.cpp | 40 void CalcEncryptKey(const CPDF_Dictionary* pEncrypt, in CalcEncryptKey() argument 50 ByteString okey = pEncrypt->GetStringFor("O"); in CalcEncryptKey() 52 uint32_t perm = pEncrypt->GetIntegerFor("P"); in CalcEncryptKey() 56 const bool is_revision_3_or_greater = pEncrypt->GetIntegerFor("R") >= 3; in CalcEncryptKey() 58 !pEncrypt->GetBooleanFor("EncryptMetadata", true)) { in CalcEncryptKey()
|
/dports/lang/spidermonkey60/firefox-60.9.0/modules/pdfium/pdfium/core/fpdfapi/parser/ |
H A D | cpdf_security_handler.cpp | 30 void CalcEncryptKey(CPDF_Dictionary* pEncrypt, in CalcEncryptKey() argument 37 int revision = pEncrypt->GetIntegerFor("R"); in CalcEncryptKey() 45 CFX_ByteString okey = pEncrypt->GetStringFor("O"); in CalcEncryptKey() 47 uint32_t perm = pEncrypt->GetIntegerFor("P"); in CalcEncryptKey() 54 !pEncrypt->GetIntegerFor("EncryptMetadata", 1)) { in CalcEncryptKey()
|