fork of what I have been writing
Diff: ES_CW2_Starter_STARFISH/main.cpp
- Revision:
- 3:8443825642d1
- Parent:
- 2:60ec222456b6
- Child:
- 4:377264732a24
--- a/ES_CW2_Starter_STARFISH/main.cpp Fri Feb 28 18:00:01 2020 +0000 +++ b/ES_CW2_Starter_STARFISH/main.cpp Fri Feb 28 18:02:50 2020 +0000 @@ -10,6 +10,8 @@ Mail<mail_t, 16> mail_box; +Thread thread_crypto;# + uint8_t sequence[] = {0x45,0x6D,0x62,0x65,0x64,0x64,0x65,0x64, 0x20,0x53,0x79,0x73,0x74,0x65,0x6D,0x73, 0x20,0x61,0x72,0x65,0x20,0x66,0x75,0x6E, @@ -188,7 +190,7 @@ while(1==1){ uint8_t hash[32]; - + thread_crypto.start(print_crypto_thread); *nonce ++; SHA256::computeHash(hash, (uint8_t*)sequence, 64); mail_box.put(mail);