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.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

  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. // Set variables for the current challenge
  16. starttrigger(); // To start a new trace
  17. // Do the leaking operations here...
  18. endtrigger(); // To end the current trace
  19. }
  20. endprogram(); // To indicate to ELMO that the simulation is finished
  21. return 0;
  22. }