Python-ELMO is a Python library which offers an encapsulation of the binary tool ELMO, in order to manipulate it easily in Python and SageMath script.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

project.c 911B

1234567891011121314151617181920212223242526272829
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "elmoasmfunctionsdef-extension.h"
  4. // ELMO API :
  5. // - printbyte(addr): Print single byte located at address 'addr' to output file;
  6. // - randbyte(addr): Load byte of random to memory address 'addr';
  7. // - readbyte(addr): Read byte from input file to address 'addr'.
  8. // ELMO API (extension) :
  9. // - print2bytes, rand2bytes and read2bytes: idem, but for an address pointing on 2 bytes;
  10. // - print4bytes, rand4bytes and read4bytes: idem, but for an address pointing on 4 bytes.
  11. int main(void) {
  12. uint16_t num_challenge, nb_challenges;
  13. read2bytes(&nb_challenges);
  14. for(num_challenge=0; num_challenge<nb_challenges; num_challenge++) {
  15. starttrigger(); // To start a new trace
  16. // Do the leaking operations here...
  17. endtrigger(); // To end the current trace
  18. }
  19. endprogram(); // To indicate to ELMO that the simulation is finished
  20. return 0;
  21. }