1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FPDFAPI_EDIT_CPDF_ENCRYPTOR_H_ 8 #define CORE_FPDFAPI_EDIT_CPDF_ENCRYPTOR_H_ 9 10 #include <stdint.h> 11 12 class CPDF_CryptoHandler; 13 14 class CPDF_Encryptor { 15 public: 16 CPDF_Encryptor(CPDF_CryptoHandler* pHandler, 17 int objnum, 18 uint8_t* src_data, 19 uint32_t src_size); 20 ~CPDF_Encryptor(); 21 GetSize()22 uint32_t GetSize() const { return m_dwSize; } GetData()23 uint8_t* GetData() const { return m_pData; } 24 25 private: 26 uint8_t* m_pData; 27 uint32_t m_dwSize; 28 bool m_bNewBuf; 29 }; 30 31 #endif // CORE_FPDFAPI_EDIT_CPDF_ENCRYPTOR_H_ 32