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 /source/fitz/filter-basic.c | |
parent | 1724a8ccd667c6ec468e2e8a01161c32bf59d706 (diff) | |
download | mupdf-e0b23f941efd7412640cebe71a82a7df170388b2.tar.xz |
Use namespace for AES crypto code.
Diffstat (limited to 'source/fitz/filter-basic.c')
-rw-r--r-- | source/fitz/filter-basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/filter-basic.c b/source/fitz/filter-basic.c index 0bc5525a..e3fa1ffa 100644 --- a/source/fitz/filter-basic.c +++ b/source/fitz/filter-basic.c @@ -656,7 +656,7 @@ next_aesd(fz_context *ctx, fz_stream *stm, size_t max) else if (n < 16) fz_throw(ctx, FZ_ERROR_GENERIC, "partial block in aes filter"); - aes_crypt_cbc(&state->aes, AES_DECRYPT, 16, state->iv, state->bp, state->bp); + fz_aes_crypt_cbc(&state->aes, FZ_AES_DECRYPT, 16, state->iv, state->bp, state->bp); state->rp = state->bp; state->wp = state->bp + 16; @@ -704,7 +704,7 @@ fz_open_aesd(fz_context *ctx, fz_stream *chain, unsigned char *key, unsigned key { state = fz_malloc_struct(ctx, fz_aesd); state->chain = chain; - if (aes_setkey_dec(&state->aes, key, keylen * 8)) + if (fz_aes_setkey_dec(&state->aes, key, keylen * 8)) fz_throw(ctx, FZ_ERROR_GENERIC, "AES key init failed (keylen=%d)", keylen * 8); state->ivcount = 0; state->rp = state->bp; |