Save work on unit tests for crypto. RC4 and AES are having trouble for some reason...

This commit is contained in:
Michael R Sweet
2021-10-12 17:11:10 -04:00
parent c24243a2bc
commit 493fbca31c
4 changed files with 236 additions and 5 deletions

View File

@@ -116,6 +116,7 @@ _pdfioCryptoAESInit(
// Clear context
memset(ctx, 0, sizeof(_pdfio_aes_t));
ctx->round_size = keylen / 4 + 6;
// The first round key is the key itself.
memcpy(ctx->round_key, key, keylen);