Skip to content

Commit

Permalink
test: initialize data for null-cipher test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkanteck committed Oct 21, 2020
1 parent 1b6170a commit 55179f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/null_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,15 @@ test_null_cipher(struct IMB_MGR *mb_mgr,
DECLARE_ALIGNED(uint8_t all_zeros[BUF_SIZE], 16) = {0};
int ret = -1;

memset(auth_key, 0x55, sizeof(auth_key));

IMB_AES_KEYEXP_128(mb_mgr, auth_key, expkey, dust);
IMB_AES_CMAC_SUBKEY_GEN_128(mb_mgr, expkey, skey1, skey2);
while ((job = IMB_FLUSH_JOB(mb_mgr)) != NULL)
;

job = IMB_GET_NEXT_JOB(mb_mgr);
memset(job, 0, sizeof(*job));
job->cipher_direction = cipher_dir;
job->chain_order = chain_order;
job->src = in_text;
Expand Down

0 comments on commit 55179f0

Please sign in to comment.