Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free.

working on a project that requires encryption. now I need an efficient key generation - secure-proved if possible - algorithm that generate a new key every session.

currently working on stm32l100rct6 so there's no embedded RNG or AES unit in it.

after searching for couple of hours and reading few papers, I noticed that for MCUs that don't have integrated encryption units a workarounds is made. some used system clock and timers and some used ADC but what I keep finding that these workaround isn't secure to be used for encryption, so I wonder if there's a way to make this. even with external hardware ?

share|improve this question
    
Have you looked at Atmel's security offerings yet? –  Ignacio Vazquez-Abrams 2 days ago
    
As @IgnacioVazquez-Abrams hinted Atmel offers SPI, I2C, and SWI security chips with hardware RNG, SHA, AES, data locking and other security features. e.g. SHA204A which only needs VCC, GND, and a single Data pin in the SWI variant –  crasic 2 days ago
    
thank you ! that what I was looking for, but is it proved to be secure and unpredictable ? –  DragonKoko yesterday
    
@DragonKoko it is a validated SHA256 crypto algorithm as well as a true hardware RNG. For security sake, someone could still be sniffing the connection from MCU to security chip and read the keys you load, but once this is set then the private keys are secure on the chip. Initialization should be done at a location you trust. –  crasic yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.