Browse Source

updated readme and prepare TPM tests

master
Michael Preisach 5 years ago
parent
commit
4e646e87f7
  1. 16
      README.md
  2. 20
      daa-test-tpm.c
  3. 13
      daa-test-tpm.h
  4. 5
      daa-test.h
  5. 1
      member-tpm.h

16
README.md

@ -61,6 +61,22 @@ cmake --build . --target ecdaa_issuer -- -j 2
```
## Usage
1. Run the issuer binary `ecdaa_issuer`. It loads persisted keys from disk or generates and saves it automatically.
2. Let the member join the issuer's group:
```
ecdaa_member --join <issuer's IPv4>
```
The resulting keys will be persisted as well.
3. Start the verifier `ecdaa_verifier`. Currently it does not know the issuer's public key.
Connect to the verifier host on port `6592` and place the command `GETPUBLIC <issuer IPv4>`.
The verifier currently does not persist the public key.
4. The member may now send a signed message:
```
ecdaa_member --send <verifier's IPv4> <path/to/message>
```
After submission the verifer immediately checks the signature and responds to the member accordingly.
At this point this project just demonstrates the functionality of ECDAA over the network interface.
All session data about memberships are only held in RAM and never persisted.
Restarting the Issuer introduces a fresh ECDAA group.

20
daa-test-tpm.c

@ -0,0 +1,20 @@
#include "daa-test-tpm.h"
int test1();
int test2();
int test3();
int main(int argc, char **argv) {
if(0 != test1()) {
printf("test1 failed\n");
return 0;
} else {
printf("test1 succeeded\n");
}
int test1() {
const char *pub_key_filename = "pub_key.txt";
const char *handle_filename = "handle.txt";
return 0;
}

13
daa-test-tpm.h

@ -0,0 +1,13 @@
#ifndef ECDAA_TESTTPM_H
#define ECDAA_TESTTPM_H
#include <ecdaa.h>
#include "server.h"
#include "client.h"
#include "common.h"
#include <string.h>
#include <ecdaa-tpm.h>
#include <tss2/tss2_sys.h>
#include <tss2/tss2_tcti.h>
#include <tss2/tss2_tcti_device.h>

5
daa-test.h

@ -1,7 +1,6 @@
#ifndef ECDAA_ISSUER_MEMBER_H
#define ECDAA_ISSUER_MEMBER_H
#include <ecdaa.h>
#ifndef ECDAA_TEST_H
#define ECDAA_TEST_H
#include <ecdaa.h>
#include "server.h"
#include "client.h"

1
member-tpm.h

@ -9,7 +9,6 @@
#include <tss2/tss2_tcti_device.h>
#include <ecdaa.h>
#include <ecdaa-tpm.h>
#include <ecdaa.h>
#include "server.h"
#include "client.h"
#include "common.h"

Loading…
Cancel
Save