summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-21 12:27:18 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-21 12:27:18 -0800
commitaa3922dd713d480229408f3a0813b7dab9e8fd78 (patch)
tree963f6ab795fbff2b1aecdce137c43e33d2d86b4e
parent30e5f30f21c182eb54253008ad755abd991e2e07 (diff)
downloadpdfium-aa3922dd713d480229408f3a0813b7dab9e8fd78.tar.xz
Remove unused CRYPT_SetPubKeyDecryptor()
Review-Url: https://codereview.chromium.org/2520073002
-rw-r--r--core/fdrm/crypto/fx_crypt.cpp10
-rw-r--r--core/fdrm/crypto/fx_crypt.h5
2 files changed, 0 insertions, 15 deletions
diff --git a/core/fdrm/crypto/fx_crypt.cpp b/core/fdrm/crypto/fx_crypt.cpp
index 326ec8c83e..a28e569c05 100644
--- a/core/fdrm/crypto/fx_crypt.cpp
+++ b/core/fdrm/crypto/fx_crypt.cpp
@@ -240,16 +240,6 @@ void CRYPT_MD5Generate(const uint8_t* input,
CRYPT_MD5Update(&ctx, input, length);
CRYPT_MD5Finish(&ctx, digest);
}
-static bool (*g_PubKeyDecryptor)(const uint8_t* pData,
- uint32_t size,
- uint8_t* data_buf,
- uint32_t& data_len) = nullptr;
-void CRYPT_SetPubKeyDecryptor(bool (*func)(const uint8_t* pData,
- uint32_t size,
- uint8_t* data_buf,
- uint32_t& data_len)) {
- g_PubKeyDecryptor = func;
-}
#ifdef __cplusplus
};
#endif
diff --git a/core/fdrm/crypto/fx_crypt.h b/core/fdrm/crypto/fx_crypt.h
index 3ee2e4bdbe..a7cb4a51bc 100644
--- a/core/fdrm/crypto/fx_crypt.h
+++ b/core/fdrm/crypto/fx_crypt.h
@@ -65,11 +65,6 @@ void CRYPT_SHA512Finish(void* context, uint8_t digest[64]);
void CRYPT_SHA512Generate(const uint8_t* data,
uint32_t size,
uint8_t digest[64]);
-void CRYPT_SetPubKeyDecryptor(bool (*func)(const uint8_t* pData,
- uint32_t size,
- uint8_t* data_buf,
- uint32_t& data_len));
-
#ifdef __cplusplus
};
#endif