-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 bg a écrit : > >>> RSA doesn't run as expected. With expopent=3 and length=512, >>> program doesn't crash but after four hours (@ 16 MHz on >>> simavr), gdb shows that program stays in RSA subroutines and >>> doesn't return to main routine. Something is probably broken >>> somewhere. > > 1) Sorry for the delayed reply.
You're welcome. > 2) I'm somewhat lacking the time to improve and document > avr-crypto-lib (this also caused item 1) > > 3) RSA was newer really stable, or of useable speed (even with 1024 > bit keys). Also the current implementation is lacking some > important optimizations. > > 4) I used the VLA additions of C99 to avoid issues with heap > allocation, but they bring some problems of their own. > > 5) You may find https://munacl.cryptojedi.org/atmega.shtml > helpful. > > I hope to find some spare time to get some stuff better documented > and improved (or remove what can't be fixed). > > For short: I doubt that RSA on an AVR could be brought to a > productive use (maybe except for some cases where you are willing > to wait minutes). My application only uses encryption the first time firmware is booted. After this first encryption, it only call decrypt functions. I have obtained the same results with uECC and AES. Best regards, JKB -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEq4YCoAJMwLElZVYXOAfo0lKQ8+cFAmC2Xv0ACgkQOAfo0lKQ 8+cwvw//dCMp09LO+euPjdj2qzzUCrAqwGOLtsHCIXTr/alDToUZlyhSsrs0/qxH 0COXBtu+GEB/mYbhGRR5p37IOjUtw9nMlPcZ+rnYum7mTIQBPHHRFrWHQBLlv4zD iO5ZfIWQF+u6d4miR0DniSUGA30wQTVlEi+d6YSgT5JKwRFlBo0PGvOk6ZcAg6Yo /UCb1Rn37Ga6MuSdNG2oRF9B1xXPoDulv29DyK5/RYhWXqnz2JJ2pe6RK+NmN6Ky /dP0b0dfTDRb2FdgMdEAgGDcssxd3j/E4kPDEDqcF4XBOMDQ65UF2RbkOZ4JxV3A SDffrgmheA6ckiUnbRxmXaq1mnT7KfD5B5TdbKYqeH+AU7gaAHoRvLvXuIbQoLxZ Xhr6LRnXsQVQwhWMhfkVdsy70d6HHGYhDTGF3cMVDTKozS3vv4r9jDv2RK9TIYGW k8afjuoM8O55wGr98j4dx3XbQD+ypcOStNiESq70fTUXzTQtxZWK/LgFxErpbcll ciw7horFt/mY9/USeIpD6xoI4PVXYq3XiIkBUvVAdkgabkQuHPpieKshSm7du8Ue 8jMF41GZAAiGhJrnfpClIfFMpFc+p3omjHlmMLRDQ0Vzo66IKuKUpE+GXIDO5z2r 5+PayqreQ6m8KCOmNWFFpzfg+a7O+iLPcO2z+jFbd/mDFBW+9I8= =9n8c -----END PGP SIGNATURE-----