summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_crypto_handler.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-05-16 17:07:02 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-16 17:07:02 +0000
commit6facd15a7ecfbae24f2c356fa3b358288120a6f2 (patch)
tree414690887496c657e1147fd6e1342dd1bee7ba53 /core/fpdfapi/parser/cpdf_crypto_handler.h
parentfc0bbda00d476ba0c0b43dd88fd1d1a1d11577cc (diff)
downloadpdfium-6facd15a7ecfbae24f2c356fa3b358288120a6f2.tar.xz
Use pdfium::span<> in cpdf_creator.
Change-Id: I959fe5dc30fcfe2176c7e5a64b07d082313a22b4 Reviewed-on: https://pdfium-review.googlesource.com/32595 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_crypto_handler.h')
-rw-r--r--core/fpdfapi/parser/cpdf_crypto_handler.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/fpdfapi/parser/cpdf_crypto_handler.h b/core/fpdfapi/parser/cpdf_crypto_handler.h
index 1ca2130717..23dfe4aae1 100644
--- a/core/fpdfapi/parser/cpdf_crypto_handler.h
+++ b/core/fpdfapi/parser/cpdf_crypto_handler.h
@@ -15,6 +15,7 @@
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/retain_ptr.h"
+#include "third_party/base/span.h"
class CPDF_Dictionary;
class CPDF_Object;
@@ -32,12 +33,10 @@ class CPDF_CryptoHandler {
uint32_t EncryptGetSize(uint32_t objnum,
uint32_t version,
- const uint8_t* src_buf,
- uint32_t src_size);
+ pdfium::span<const uint8_t> source) const;
bool EncryptContent(uint32_t objnum,
uint32_t version,
- const uint8_t* src_buf,
- uint32_t src_size,
+ pdfium::span<const uint8_t> source,
uint8_t* dest_buf,
uint32_t& dest_size);