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

Side by Side Diff: core/src/fdrm/crypto/fx_crypt_sha.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_aes.cpp ('k') | core/src/fpdfapi/fpdf_basic_module.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 typedef struct { 12 typedef struct {
12 unsigned int h[5]; 13 unsigned int h[5];
13 unsigned char block[64]; 14 unsigned char block[64];
14 int blkused; 15 int blkused;
15 unsigned int lenhi, lenlo; 16 unsigned int lenhi, lenlo;
16 } SHA_State; 17 } SHA_State;
17 #define rol(x, y) (((x) << (y)) | (((unsigned int)x) >> (32 - y))) 18 #define rol(x, y) (((x) << (y)) | (((unsigned int)x) >> (32 - y)))
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 FX_DWORD size, 648 FX_DWORD size,
648 uint8_t digest[64]) { 649 uint8_t digest[64]) {
649 sha384_context context; 650 sha384_context context;
650 CRYPT_SHA512Start(&context); 651 CRYPT_SHA512Start(&context);
651 CRYPT_SHA512Update(&context, data, size); 652 CRYPT_SHA512Update(&context, data, size);
652 CRYPT_SHA512Finish(&context, digest); 653 CRYPT_SHA512Finish(&context, digest);
653 } 654 }
654 #ifdef __cplusplus 655 #ifdef __cplusplus
655 }; 656 };
656 #endif 657 #endif
OLDNEW
« no previous file with comments | « core/src/fdrm/crypto/fx_crypt_aes.cpp ('k') | core/src/fpdfapi/fpdf_basic_module.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698