Fix 2 ClangTidy - Readability/Naming findings in core/fdrm
* function 'CRYPT_AESDecrypt' has a definition with different parameter
names
* function 'CRYPT_AEDEncrypt' has a definition with different parameter
names
PiperOrigin-RevId: 254761931
Change-Id: I67a5ae568daeb272f17e1bb987e35eca6fca2d33
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/56832
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fdrm/fx_crypt_aes.cpp b/core/fdrm/fx_crypt_aes.cpp
index 3397574..4f10945 100644
--- a/core/fdrm/fx_crypt_aes.cpp
+++ b/core/fdrm/fx_crypt_aes.cpp
@@ -644,13 +644,13 @@
void CRYPT_AESDecrypt(CRYPT_aes_context* context,
uint8_t* dest,
const uint8_t* src,
- uint32_t len) {
- aes_decrypt_cbc(dest, src, len, context);
+ uint32_t size) {
+ aes_decrypt_cbc(dest, src, size, context);
}
void CRYPT_AESEncrypt(CRYPT_aes_context* context,
uint8_t* dest,
const uint8_t* src,
- uint32_t len) {
- aes_encrypt_cbc(dest, src, len, context);
+ uint32_t size) {
+ aes_encrypt_cbc(dest, src, size, context);
}