Hello
Does anyone know how to code in Assembly Language to make encryption algorithm like simple DES or DES.
I'm using ATmega8535 or ATmega32 with Atmel studio 6.2
Thanks
*Split and re-titled. Moderator*
Hello
Does anyone know how to code in Assembly Language to make encryption algorithm like simple DES or DES.
I'm using ATmega8535 or ATmega32 with Atmel studio 6.2
Thanks
*Split and re-titled. Moderator*
Does app note AVR230 help?
http://www.atmel.com/images/doc2...
[I think you should have started a separate thread.]
Welcome to the Forum.
Perhaps a Moderator will split this off into its own Thread.
JC
Simple encryption algorithm? I don't think there is such a thing.
Yes, there are plenty of very simple encryption algorithms - the trouble is, they are also very easy to break.
I certainly don't think that DES would count as "simple"...
Does anyone know how to code in Assembly Language to make encryption algorithm like simple DES or DES.
Last month (Oct 2015), Atmel released their crypto library of C source code for Atmel crypto devices such as the ATECC508A.
These crypto devices are much faster than a non-XMEGA (most) AVR in cryptographic operations.
There's now stock of ATECC508A which is a part of the recently in-stock Arduino new WiFi board.
ATECC508A is a 2V to 5V part but the library is currently for :
Atmel states that more computer architectures and development environments are forthcoming.
The library's application note states there's a HAL and how to port the HAL.
Home > Products > Security ICs > Atmel CryptoAuthentication > ECC-based Devices
CryptoAuthLib
http://www.atmel.com/tools/CryptoAuthLib.aspx?tab=documents
...
CryptoAuthLib: Driver Support for Atmel CryptoAuthentication Devices
(file size: 830KB, 22 pages, revision A, updated: 10/2015)Covers how to get started, how to incorporate into an application, general design and use patterns, and the integration details required if CryptoAuthLib is to be ported into a hardware platform not currently supported by CryptoAuthLib.
...
Home > Products > Security ICs > Atmel CryptoAuthentication
CryptoAuthLib
Edit : added library's URL.
Arduino WiFi Shield 101
Microchip have an AES128 library written in assembler for a their pic16. It should be a simple matter to translate that to AVR asm. For the most part it is just moving bytes around, doing shifts and xors.
Microchip have an AES128 library written in assembler for a their pic16. It should be a simple matter to translate that to AVR asm. For the most part it is just moving bytes around, doing shifts and xors.
Piece of cake
Note, also, that the Xmega A series have an internal hardware module for encryption / decryption.
Using this might be faster and easier than a software only solution, or adding the external chip.
JC
Also XMEGA B and the largest XMEGA C.
For the following URLs, select "Cryptography" from the "Category" pull-down menu :
http://asf.atmel.com/docs/latest/search.html?device=xmegaau (Please note the examples for Atmel's XMEGA A3BU board)
http://asf.atmel.com/docs/latest/search.html?device=xmegab
http://asf.atmel.com/docs/latest/search.html?device=xmegac
http://www.atmel.com/tools/XMEGA-A3BUXPLAINED.aspx
Edit : added AU URLs.
Microchip have an AES128 library written in assembler for a their pic16. It should be a simple matter to translate that to AVR asm. For the most part it is just moving bytes around, doing shifts and xors.
Wouldn't it be easier to just use the one that already exists for AVR?
The op wants asm.
There's an asm implementation in there...for aes, I mean.
i would like to cut over cryptoauthlib to windows,the compiler is microsoft visual studio 2010,the chip is ATSHA204A;
Does the chip ATSHA204A support an interface of USB?
if not,then what i can do to talk to ATSHA204A?
I'm not really sure what you're intending to do, but since you're talking about a chip that has built in sha-256 support it's a mystery to me why you'd resurrect a year old thread about implementing encryption algorithms in general purpose microcontrollers. Your questions can all be answered by a quick glance at the datasheet. It does not support USB, and you talk to it via single wire uart or i2c.
Thanks for the information!
my MCU is PIC16F with USB interface,from microchip;
then,i would like to talk to ATSHA204A via i2c with my PIC,then copy the data from I2c to windows hots program via USB;
i plan to implement encryption there on the host windows PC.
now the problem is,how could i port Cryptoauthlib to visual studio 2010?
i would like to cut over cryptoauthlib to windows,the compiler is microsoft visual studio 2010,the chip is ATSHA204A;
Does the chip ATSHA204A support an interface of USB?
if not,then what i can do to talk to ATSHA204A?
If the PC has a TPM connector then that might work (I don't know the Trusted Platform Module (TPM) physical interface)
http://www.atmel.com/tools/CryptoAuthLib.aspx
http://www.atmel.com/devices/ATSHA204A.aspx
http://www.atmel.com/tools/AT88CK590.aspx
http://www.microchipdirect.com/productsearch.aspx?Keywords=AT88CK590
Edit : microchipDIRECT
in fact i tried compiling the lib on VS2010,but even the key word "bool" could not be recognized by the compiler;
when i read through some source files,only found that the header files included,such as:
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
and: #pragma pack( push, ATCAPacket, 2 )
i think they are platform dependent;maybe typically for ATMEL AVR or ARM platform.
visual studio also have <stddef.h>,<stdlib.h>, <string.h>,but i am not sure if it will be the same as that of atmel studio;
the file "atca_compiler.h" includes one single line:
#elif defined(_MSC_VER)
/* Microsoft Visual Studio. --------------------------------- */
but i could not find any further compiler switching lines elsewhere in the files of the lib to Immigrate to another compilers (like VC++);
So i just want to know if microchip or atmel could have any document or information to guide how to Immigrate.
Any information will be appreciated.
Thanks in advance!
uzslm
my MCU is PIC16F with USB interface,from microchip;
While Microchip is the parent company of Atmel, this is still an AVR specific site so I would suggest you ask your PIC questions in the PIC forums.
As far as the Security questions go there is a forum in the IoT community.
I'll move this thread there you might get better answers
JIm-Moderator
in fact implementing Cryptoauthlib on windows platform is my concern...
i did send information about this before posting here...
Might be good to go as CryptoAuthLib is already on Visual Studio; what's uncertain is the differences in versions of Visual Studio.
If possible, please kindly advise which version of Visual Studio will be appropriate to CryptoAuthLib;
i believe CryptoAuthLib took advantage of C99,but VS2010 didn't support that,so possible VS version could be 2013,or 2015,so i want to know under which version CryptoAuthLib was compiled by ATMEL,VS2013 or VS2015?
Am unsuccessful in the search for the answer.
I will try VS2013...C99 was supported by microsoft since VS2013,although not totally
VS2013 does not work,
anonymous union was not supported...i have to try VS2015