Skip to content

Commit

Permalink
Merge pull request #668 from LedgerHQ/fix-aes-cipher-portability
Browse files Browse the repository at this point in the history
Fix aes cipher portability issue
  • Loading branch information
jarevalo-ledger authored May 20, 2024
2 parents e21f13e + 9899632 commit 25f141f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions lib_cxng/include/lcx_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ typedef enum {

/** Generic key structure */
typedef struct {
unsigned int size;
unsigned char keys[32];
uint32_t size;
uint8_t keys[32];
} cipher_key_t;

/** Base cipher information */
Expand Down

0 comments on commit 25f141f

Please sign in to comment.