Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aes cipher portability issue #668

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading