diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-24 11:28:32 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 12:02:58 +0200 |
commit | e0b23f941efd7412640cebe71a82a7df170388b2 (patch) | |
tree | 2b296a491f5cd59fe9b9045a0ae52e4b6c960b5f /include | |
parent | 1724a8ccd667c6ec468e2e8a01161c32bf59d706 (diff) | |
download | mupdf-e0b23f941efd7412640cebe71a82a7df170388b2.tar.xz |
Use namespace for AES crypto code.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/crypt.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mupdf/fitz/crypt.h b/include/mupdf/fitz/crypt.h index bce16a90..96be7375 100644 --- a/include/mupdf/fitz/crypt.h +++ b/include/mupdf/fitz/crypt.h @@ -102,8 +102,8 @@ void fz_arc4_encrypt(fz_arc4 *state, unsigned char *dest, const unsigned char *s typedef struct fz_aes_s fz_aes; -#define AES_DECRYPT 0 -#define AES_ENCRYPT 1 +#define FZ_AES_DECRYPT 0 +#define FZ_AES_ENCRYPT 1 /* Structure definition is public to enable stack @@ -116,9 +116,9 @@ struct fz_aes_s unsigned long buf[68]; /* unaligned data */ }; -int aes_setkey_enc( fz_aes *ctx, const unsigned char *key, int keysize ); -int aes_setkey_dec( fz_aes *ctx, const unsigned char *key, int keysize ); -void aes_crypt_cbc( fz_aes *ctx, int mode, size_t length, +int fz_aes_setkey_enc( fz_aes *ctx, const unsigned char *key, int keysize ); +int fz_aes_setkey_dec( fz_aes *ctx, const unsigned char *key, int keysize ); +void fz_aes_crypt_cbc( fz_aes *ctx, int mode, size_t length, unsigned char iv[16], const unsigned char *input, unsigned char *output ); |