| 44 | === Detailed HOWTO === |
| 45 | |
| 46 | SecureSynapseInterface is just a high-level interface that manages in a parallel fashion all nodes connected to the pc. |
| 47 | Lower level control tools are: |
| 48 | |
| 49 | * Java application: net.tinyos.signet.SynapseKeyStorage |
| 50 | * Java application: net.tinyos.signet.KeyVolumeManagerClient |
| 51 | * Java application: net.tinyos.signet.FlashManagerClient |
| 52 | * Java application: net.tinyos.signet.SecurityTaggerV0 |
| 53 | * Java application: net.tinyos.signet.SecurityEncrypterV0 |
| 54 | * Java application: net.tinyos.signet.Suino |
| 55 | * TinyOS SDK tools |
| 56 | |
| 57 | |
| 58 | |
| 59 | ==== SynapseKeyStorage tool ==== |
| 60 | |
| 61 | java SynapseKeyStorage [-generate <# of security bits for authentication> <#of uses per key> <# of security bits for encryption> <# of security bits for DoS protection> <filename>] [-get-public <key storage filename> <destination filename>] |
| 62 | |
| 63 | |
| 64 | java net.tinyos.signet.SynapseKeyStorage -generate 80 30 128 128 /tmp/pippo/synapse-secret-keys.xml |
| 65 | java net.tinyos.signet.SynapseKeyStorage -get-public /tmp/pippo/synapse-secret-keys.xml /tmp/pippo/synapse-public-keys.bin |
| 66 | |
| 67 | ==== KeyVolumeManagerClient tool ==== |
| 68 | |
| 69 | java KeyVolumeManagerClient [-comm <source>] [-verbose] [-progress] [-upload <public key file>] [-download <output file>] |
| 70 | |
| 71 | java net.tinyos.signet.KeyVolumeManagerClient -comm serial@/dev/ttyUSB0:telosb -progress -upload /tmp/pippo/synapse-public-keys.bin |
| 72 | |
| 73 | ==== FlashManagerClient tool ==== |
| 74 | |
| 75 | FlashManagerClient [-comm <source>] [-verbose] [-progress] [-print-table] [-format] [-read <read_addr> <read_size> <output filename>] [-readid <partition ID,4 digits radix 16> <output file>] [-writefile <desired partition ID, 4 digits radix 16> <local filename> <program start offset radix, 4 digits radix 16>] |
| 76 | |
| 77 | ==== SecurityTaggerV0 tool ==== |
| 78 | |
| 79 | java SecurityTaggerV0 [-sign <keys filename> <block size> <inputfile> <outputfile> [-update-keys [-low-overhead]] [-use-key-refresh] ] |
| 80 | |
| 81 | ==== SecurityEncrypterV0 tool ==== |
| 82 | |
| 83 | java net.tinyos.signet.SecurityEncrypterV0 <private keys file> <imputfile> <outputfile> |
| 84 | |
| 85 | ==== Suino tool ==== |
| 86 | |
| 87 | java net.tinyos.signet.Suino [-comm <source>] < --prepare | --format | --reset | --load <app.id> | --transfer <app.id> | --alive > |