OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_INCLUDE_FPDFAPI_IPDF_CRYPTO_HANDLER_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_IPDF_CRYPTO_HANDLER_H_ |
8 #define CORE_INCLUDE_FPDFAPI_IPDF_CRYPTO_HANDLER_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_IPDF_CRYPTO_HANDLER_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
11 | 11 |
12 class CPDF_Dictionary; | 12 class CPDF_Dictionary; |
13 class IPDF_SecurityHandler; | 13 class IPDF_SecurityHandler; |
14 | 14 |
15 class IPDF_CryptoHandler { | 15 class IPDF_CryptoHandler { |
16 public: | 16 public: |
17 virtual ~IPDF_CryptoHandler(); | 17 virtual ~IPDF_CryptoHandler(); |
18 | 18 |
(...skipping 16 matching lines...) Expand all Loading... |
35 virtual FX_BOOL EncryptContent(FX_DWORD objnum, | 35 virtual FX_BOOL EncryptContent(FX_DWORD objnum, |
36 FX_DWORD version, | 36 FX_DWORD version, |
37 const uint8_t* src_buf, | 37 const uint8_t* src_buf, |
38 FX_DWORD src_size, | 38 FX_DWORD src_size, |
39 uint8_t* dest_buf, | 39 uint8_t* dest_buf, |
40 FX_DWORD& dest_size) = 0; | 40 FX_DWORD& dest_size) = 0; |
41 | 41 |
42 void Decrypt(FX_DWORD objnum, FX_DWORD version, CFX_ByteString& str); | 42 void Decrypt(FX_DWORD objnum, FX_DWORD version, CFX_ByteString& str); |
43 }; | 43 }; |
44 | 44 |
45 #endif // CORE_INCLUDE_FPDFAPI_IPDF_CRYPTO_HANDLER_H_ | 45 #endif // CORE_FPDFAPI_FPDF_PARSER_IPDF_CRYPTO_HANDLER_H_ |
OLD | NEW |