AVR128DA48 encryption and CMAC chaining

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there driver/middleware support to implement AES-128 encryption and CMAC chaining

with the AVR128DA48? I found one app note for AT10764 for SMART ARM based microcontroller.

 

Thanks

 

 

This topic has a solution.
Last Edited: Mon. Nov 30, 2020 - 02:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah, maybe  AVR284: Software Library for AES-128 Encryption and Decryption on megaAVR?

 

"If you find yourself in an even battle, you didn't plan very well."
https://www.gameactive.org
https://github.com/CmdrZin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AFAIK, the AVR-DA doesn't have any encryption hardware at all, so there is no "driver."  You'd be looking for a "library" like the one CmdrZin found.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fwe wrote:
Is there driver/middleware support to implement AES-128 encryption and CMAC chaining

with the AVR128DA48?

Am unaware of such.

CryptoAuthLib (crypto-authenticator library) for AVR via MCC includes AVR128DA48.

ATECC608B has AES-128; likewise some XMEGA.

 

Microchip 8 & 16 bit products - AVR, PIC16/18, PIC24/DSPIC | cryptoauthlib/lib/hal at main · MicrochipTech/cryptoauthlib · GitHub

ATECC608B - Crypto Authentication

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for your replies. I use AtmelStart and Crypto is listed under middleware. It is empty.

Do I need to change the IDE for this? Where will I find the code?

 

Priya

 

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fwe wrote:
It is empty.
Select ATmega4809

Reason : CryptoAuthLib is legacy in Atmel START.

fwe wrote:
Do I need to change the IDE for this?
No

Either

  • Operate MCC and copy the source code to Microchip Studio
  • Port a CyrptoAuthLib HAL to AVR D

fwe wrote:
Where will I find the code?
CryptoAuthLib is in Microchip GitHub.

 


https://github.com/MicrochipTech/cryptoauthlib/tree/main/lib/hal#legacy-support---atmel-start-for-avr-arm-based-processesors-sam

 

CryptoAuthLib Driver Support for Atmel CryptoAuthentication Devices

[page 18]

5 Porting Guide for CryptoAuthLib

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a follow up question about  ATECC608. For a straight forward AES-128 implementation,

can this ATECC608B chip be used with the AVR128DA48? Is this the best eval board

to buy?

DT100104 Microchip Technology | Mouser

 

Thanks,

Priya

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fwe wrote:
For a straight forward AES-128 implementation, can this ATECC608B chip be used with the AVR128DA48?
Yes though the effort would be similar to HAL for ATmega324PB/328PB · Issue #19 · MicrochipTech/cryptoauthlib · GitHub

I/O for megaAVR 0-series and AVR D may be similar wrt ATECC608B.

fwe wrote:
Is this the best eval board to buy?
Not certain; preferred may be the MikroElektronika boards.

https://www.mikroe.com/search?search_query=ATECC608

 


https://github.com/MicrochipTech/cryptoauthlib/blob/main/lib/hal/hal_swi_uart.h#L37

Migration from the megaAVR® to AVR® Dx Microcontroller Families

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am looking into using  ATxmega32A4U instead of AVR128DA48.

Will this be a more straightforward way to implement the AES 128?

I don't know what CMAC chaining involves. Is there any info for this?

 

Thanks,

Priya

 

 

 

Last Edited: Wed. Dec 16, 2020 - 09:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. Dec 16, 2020 - 09:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is RTOS needed to run the USB stack on ATXMEGA32A4U-ANR?

Does this device have both the USB bootloader and UART bootloader?

 

Thank you

Priya

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fwe wrote:
Is RTOS needed to run the USB stack on ATXMEGA32A4U-ANR?
No

fwe wrote:
Does this device have both the USB bootloader and UART bootloader?
One instance of a bootloader, multiple forms of bootloader (UART, TWI, SD, USB DFU, USB CDC, USB HID)

 


ATxmega32A4U - 8-bit AVR Microcontrollers

 

[TUT][SOFT] Xmega bootloader available | AVR Freaks

GitHub - kuro68k/kboot: USB bootloader for XMEGA devices

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also looked at  ATXMEGA128A1U-A. This comes with 128 KB flash. How much of this flash will 

be consumed by the USB stack?

 

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Context is bootloader :

  • extremely minimal - 0.5KB (packet level, libusb)
  • USB DFU - 4KB (IIRC)

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is the USB stack usage as minimal for USB receive and transmit data also? 

Thanks