Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: core/src/fdrm/crypto/fx_crypt.cpp

Issue 1438573002: Merge to XFA: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fdrm/crypto/fx_crypt_aes.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "../../../include/fdrm/fx_crypt.h" 7 #include "core/include/fdrm/fx_crypt.h"
8 8
9 #ifdef __cplusplus 9 #ifdef __cplusplus
10 extern "C" { 10 extern "C" {
11 #endif 11 #endif
12 struct rc4_state { 12 struct rc4_state {
13 int x, y, m[256]; 13 int x, y, m[256];
14 }; 14 };
15 void CRYPT_ArcFourSetup(void* context, const uint8_t* key, FX_DWORD length) { 15 void CRYPT_ArcFourSetup(void* context, const uint8_t* key, FX_DWORD length) {
16 rc4_state* s = (rc4_state*)context; 16 rc4_state* s = (rc4_state*)context;
17 int i, j, k, *m, a; 17 int i, j, k, *m, a;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 FX_DWORD& data_len) = NULL; 251 FX_DWORD& data_len) = NULL;
252 void CRYPT_SetPubKeyDecryptor(FX_BOOL (*func)(const uint8_t* pData, 252 void CRYPT_SetPubKeyDecryptor(FX_BOOL (*func)(const uint8_t* pData,
253 FX_DWORD size, 253 FX_DWORD size,
254 uint8_t* data_buf, 254 uint8_t* data_buf,
255 FX_DWORD& data_len)) { 255 FX_DWORD& data_len)) {
256 g_PubKeyDecryptor = func; 256 g_PubKeyDecryptor = func;
257 } 257 }
258 #ifdef __cplusplus 258 #ifdef __cplusplus
259 }; 259 };
260 #endif 260 #endif
OLDNEW
« no previous file with comments | « no previous file | core/src/fdrm/crypto/fx_crypt_aes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698