Skip to content

Commit 2e5bbfe

Browse files
dgarskedanielinux
authored andcommitted
Make sure keySize is set for RX crypto callback.
1 parent b07d99b commit 2e5bbfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libwolfboot.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,8 @@ int aes_init(void)
15921592
enc_key->encrypted_user_key, &aes_enc.ctx.tsip_keyIdx);
15931593
#endif
15941594
if (ret == TSIP_SUCCESS) {
1595+
aes_enc.ctx.keySize = ENCRYPT_KEY_SIZE;
1596+
15951597
/* copy to decryption key */
15961598
XMEMCPY(&aes_dec.ctx, &aes_enc.ctx, sizeof(aes_enc.ctx));
15971599

0 commit comments

Comments
 (0)