iotaledger / access-server

Apache License 2.0
14 stars 3 forks source link

PAP Plugin HSM #147

Open bernardoaraujor opened 4 years ago

bernardoaraujor commented 4 years ago

The goal is to write a PAP Plugin for Hardware Security Modules (HSM).

Solution must follow this directory structure:

plugins/
├── CMakeLists.txt
└── pap
         ├── CMakeLists.txt
         └── hsm
                    ├── CMakeLists.txt
                    ├── pap_plugin_hsm.c
                    └── pap_plugin_hsm.h

portability/
├── CMakeLists.txt
└── hsm
      ├── riddlencode
      │   ├── riddlencode.c
      │   └── riddlencode.h
      ├── st33
      │   ├── st33.c
      │   └── st33.h
      └── stsafe
         ├── stsafe.c
         └── stsafe.h

PAP Plugin HSM (plugins/pap/hsm/pap_plugin_hsm.*) defines I/O templates to be implemented on different HSMs.

It must be implemented in such a way that multiple HSMs can be used with the same implementation of pap_plugin_hsm.*.

For example: