Skip to content

Commit

Permalink
lib_cxng: use types with fixed size for portability between 32/64 bit
Browse files Browse the repository at this point in the history
Avoid unit tests errors that are run on x86 64 bit

(cherry picked from commit baa266c)
  • Loading branch information
jarevalo-ledger authored and fbeutin-ledger committed Jun 11, 2024
1 parent 01b3538 commit abdbf8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ox_aes.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
* @details Such container should be initialized with #cx_aes_init_key_no_throw.
*/
struct cx_aes_key_s {
size_t size; ///< key size
uint8_t keys[32]; ///< key value
uint32_t size; ///< key size
uint8_t keys[32]; ///< key value
};
/** Convenience type. See #cx_aes_key_s. */
typedef struct cx_aes_key_s cx_aes_key_t;
Expand Down

0 comments on commit abdbf8c

Please sign in to comment.