1 (edited by Scoobi_FreeBSD 2020-09-04 06:43:48)

Topic: Atmel port includes obsolete (?) header asf.h

When WolfSSL is configured to use the Atmel (now Microchip) hardware cryptographic library cryptoauthlib (WOLFSSL_ATMEL), the file #include's a deprecated file from the cryptoauthlib library - asf.h.

wolfcrypt/src/port/atmel/atmel.c:

#ifdef WOLFSSL_ATMEL
/* remap name conflicts */
#define Aes Aes_Remap
#define Gmac Gmac_Remap
#include "asf.h"
#undef Aes
#undef Gmac
#endif /* WOLFSSL_ATMEL */

"asf.h" apparently stands for Atmel's "Advanced Software Framework". I do not have this file in my cryptoauthlib library.

I'm not sure how to conditionally include "asf.h" based on the revision of cryptoauthlib or test for its presence, but I don't think "asf.h" is necessary to compile WolfSSL with Atmel support.  The above code block may be necessary if ASF is included in the user's cryptoauthlib (somehow).

Share

Re: Atmel port includes obsolete (?) header asf.h

Hi Scoobi_FreeBSD,

See our "More Downloads" page. https://www.wolfssl.com/download/downloadMoreForm.php
Microchip_ATECC_Demos.zip

You are correct that `WOLFSSL_ATMEL` is specific to the ASF and you are not required to set `WOLFSSL_ATMEL` to use the ATECC508A/608A code.

#if defined(WOLFSSL_ATMEL) || defined(WOLFSSL_ATECC508A) || \
    defined(WOLFSSL_ATECC608A) || defined(WOLFSSL_ATECC_PKCB)

Thanks,
David Garske, wolfSSL

Share