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

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

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase 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 | « core/src/fdrm/crypto/fx_crypt.cpp ('k') | core/src/fdrm/crypto/fx_crypt_sha.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 #ifdef __cplusplus 9 #ifdef __cplusplus
9 extern "C" { 10 extern "C" {
10 #endif 11 #endif
11 #define MAX_NR 14 12 #define MAX_NR 14
12 #define MAX_NK 8 13 #define MAX_NK 8
13 #define MAX_NB 8 14 #define MAX_NB 8
14 #define mulby2(x) (((x & 0x7F) << 1) ^ (x & 0x80 ? 0x1B : 0)) 15 #define mulby2(x) (((x & 0x7F) << 1) ^ (x & 0x80 ? 0x1B : 0))
15 #define GET_32BIT_MSB_FIRST(cp) \ 16 #define GET_32BIT_MSB_FIRST(cp) \
16 (((unsigned long)(unsigned char)(cp)[3]) | \ 17 (((unsigned long)(unsigned char)(cp)[3]) | \
17 ((unsigned long)(unsigned char)(cp)[2] << 8) | \ 18 ((unsigned long)(unsigned char)(cp)[2] << 8) | \
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 } 824 }
824 void CRYPT_AESEncrypt(void* context, 825 void CRYPT_AESEncrypt(void* context,
825 uint8_t* dest, 826 uint8_t* dest,
826 const uint8_t* src, 827 const uint8_t* src,
827 FX_DWORD len) { 828 FX_DWORD len) {
828 aes_encrypt_cbc(dest, src, len, (AESContext*)context); 829 aes_encrypt_cbc(dest, src, len, (AESContext*)context);
829 } 830 }
830 #ifdef __cplusplus 831 #ifdef __cplusplus
831 }; 832 };
832 #endif 833 #endif
OLDNEW
« no previous file with comments | « core/src/fdrm/crypto/fx_crypt.cpp ('k') | core/src/fdrm/crypto/fx_crypt_sha.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698