Skip to content

Commit

Permalink
Merge pull request #471 from LedgerHQ/jar-fix-cx-ut
Browse files Browse the repository at this point in the history
CX: Fix UTs and keep OSU warning free
  • Loading branch information
jarevalo-ledger authored Nov 23, 2023
2 parents e89b986 + 8172dae commit 4dd29b6
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions lib_cxng/src/cx_aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,28 @@ static const cx_cipher_base_t aes_base = {
(cx_err_t(*)(void)) cx_aes_reset_hw,
};

const cx_cipher_info_t cx_aes_128_info
= {128, 16, CX_AES_BLOCK_SIZE, (cx_cipher_base_t *) &aes_base};

const cx_cipher_info_t cx_aes_192_info
= {192, 16, CX_AES_BLOCK_SIZE, (cx_cipher_base_t *) &aes_base};

const cx_cipher_info_t cx_aes_256_info
= {256, 16, CX_AES_BLOCK_SIZE, (cx_cipher_base_t *) &aes_base};
const cx_cipher_info_t cx_aes_128_info = {128,
16,
CX_AES_BLOCK_SIZE,
#ifdef BOLOS_OS_UPGRADER_APP
(cx_cipher_base_t *)
#endif
&aes_base};

const cx_cipher_info_t cx_aes_192_info = {192,
16,
CX_AES_BLOCK_SIZE,
#ifdef BOLOS_OS_UPGRADER_APP
(cx_cipher_base_t *)
#endif
&aes_base};

const cx_cipher_info_t cx_aes_256_info = {256,
16,
CX_AES_BLOCK_SIZE,
#ifdef BOLOS_OS_UPGRADER_APP
(cx_cipher_base_t *)
#endif
&aes_base};

#endif // HAVE_AES

0 comments on commit 4dd29b6

Please sign in to comment.