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_FDRM_CRYPTO_INCLUDE_FX_CRYPT_H_ | 7 #ifndef CORE_FDRM_CRYPTO_FX_CRYPT_H_ |
8 #define CORE_FDRM_CRYPTO_INCLUDE_FX_CRYPT_H_ | 8 #define CORE_FDRM_CRYPTO_FX_CRYPT_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/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 uint32_t size, | 17 uint32_t size, |
18 const uint8_t* key, | 18 const uint8_t* key, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 uint8_t digest[64]); | 61 uint8_t digest[64]); |
62 void CRYPT_SetPubKeyDecryptor(FX_BOOL (*func)(const uint8_t* pData, | 62 void CRYPT_SetPubKeyDecryptor(FX_BOOL (*func)(const uint8_t* pData, |
63 uint32_t size, | 63 uint32_t size, |
64 uint8_t* data_buf, | 64 uint8_t* data_buf, |
65 uint32_t& data_len)); | 65 uint32_t& data_len)); |
66 | 66 |
67 #ifdef __cplusplus | 67 #ifdef __cplusplus |
68 }; | 68 }; |
69 #endif | 69 #endif |
70 | 70 |
71 #endif // CORE_FDRM_CRYPTO_INCLUDE_FX_CRYPT_H_ | 71 #endif // CORE_FDRM_CRYPTO_FX_CRYPT_H_ |
OLD | NEW |