diff options
| author | J08nY | 2019-11-21 19:10:50 +0100 |
|---|---|---|
| committer | J08nY | 2019-11-21 19:10:50 +0100 |
| commit | c8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (patch) | |
| tree | 2b3029c6ca37e56e86daa34069ab39da3b1a5400 /pyecsca/codegen/main.c | |
| download | pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.gz pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.tar.zst pyecsca-codegen-c8d0bff46001bd5636825c5b0bb4c896cb34a4e6.zip | |
Initialize.
Diffstat (limited to 'pyecsca/codegen/main.c')
| -rw-r--r-- | pyecsca/codegen/main.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pyecsca/codegen/main.c b/pyecsca/codegen/main.c new file mode 100644 index 0000000..65cf444 --- /dev/null +++ b/pyecsca/codegen/main.c @@ -0,0 +1,26 @@ +#include <stdint.h> +#include <stdlib.h> + +#include "hal/hal.h" +#include "simpleserial/simpleserial.h" +#include "hash/hash.h" + +uint8_t cmd_set_curve(uint8_t *data, uint16_t len) { + return 0; +} + +int main(void) { + platform_init(); + init_uart(); + trigger_setup(); + simpleserial_init(); + void *ctx = hash_new_ctx(); + uint8_t thing[10] = {1,2,3,4,5,6,7,8,9,10}; + uint8_t out[hash_size(10)]; + hash_init(ctx); + hash_final(ctx, 10, thing, out); + simpleserial_addcmd('a', 256, cmd_set_curve); + while(1) + simpleserial_get(); + return 0; +}
\ No newline at end of file |
