OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_FDRM_FX_CRYPT_H_ | 7 #ifndef CORE_INCLUDE_FDRM_FX_CRYPT_H_ |
8 #define CORE_INCLUDE_FDRM_FX_CRYPT_H_ | 8 #define CORE_INCLUDE_FDRM_FX_CRYPT_H_ |
9 | 9 |
10 #include "../fxcrt/fx_system.h" | 10 #include "core/include/fxcrt/fx_system.h" |
11 | 11 |
12 #ifdef __cplusplus | 12 #ifdef __cplusplus |
13 extern "C" { | 13 extern "C" { |
14 #endif | 14 #endif |
15 | 15 |
16 void CRYPT_ArcFourCryptBlock(uint8_t* data, | 16 void CRYPT_ArcFourCryptBlock(uint8_t* data, |
17 FX_DWORD size, | 17 FX_DWORD size, |
18 const uint8_t* key, | 18 const uint8_t* key, |
19 FX_DWORD keylen); | 19 FX_DWORD keylen); |
20 void CRYPT_ArcFourSetup(void* context, const uint8_t* key, FX_DWORD length); | 20 void CRYPT_ArcFourSetup(void* context, const uint8_t* key, FX_DWORD length); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void CRYPT_SetPubKeyDecryptor(FX_BOOL (*func)(const uint8_t* pData, | 62 void CRYPT_SetPubKeyDecryptor(FX_BOOL (*func)(const uint8_t* pData, |
63 FX_DWORD size, | 63 FX_DWORD size, |
64 uint8_t* data_buf, | 64 uint8_t* data_buf, |
65 FX_DWORD& data_len)); | 65 FX_DWORD& data_len)); |
66 | 66 |
67 #ifdef __cplusplus | 67 #ifdef __cplusplus |
68 }; | 68 }; |
69 #endif | 69 #endif |
70 | 70 |
71 #endif // CORE_INCLUDE_FDRM_FX_CRYPT_H_ | 71 #endif // CORE_INCLUDE_FDRM_FX_CRYPT_H_ |
OLD | NEW |