diff --git a/wolfcrypt/src/port/atmel/atmel.c b/wolfcrypt/src/port/atmel/atmel.c index 340b52d2e..dbd5cc8fd 100644 --- a/wolfcrypt/src/port/atmel/atmel.c +++ b/wolfcrypt/src/port/atmel/atmel.c @@ -308,7 +308,7 @@ static int atmel_init_enc_key(void) return ret; } -int atmel_get_rev_info(byte* revision) +int atmel_get_rev_info(word32* revision) { int ret; ret = atcab_info((uint8_t*)revision); @@ -319,7 +319,7 @@ int atmel_get_rev_info(byte* revision) void atmel_show_rev_info(void) { #ifdef WOLFSSL_ATECC508A_DEBUG - byte revision = 0; + word32 revision = 0; atmel_get_rev_info(&revision); printf("ATECC508A Revision: %x\n", (word32)revision); #endif diff --git a/wolfssl/wolfcrypt/port/atmel/atmel.h b/wolfssl/wolfcrypt/port/atmel/atmel.h index 479a89250..9b5b1b858 100644 --- a/wolfssl/wolfcrypt/port/atmel/atmel.h +++ b/wolfssl/wolfcrypt/port/atmel/atmel.h @@ -94,7 +94,7 @@ int atmel_set_slot_allocator(atmel_slot_alloc_cb alloc, atmel_slot_dealloc_cb dealloc); int atmel_ecc_translate_err(int status); -int atmel_get_rev_info(byte* revision); +int atmel_get_rev_info(word32* revision); void atmel_show_rev_info(void); /* The macro ATECC_GET_ENC_KEY can be set to override the default