Open bernardoaraujor opened 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.
plugins/pap/hsm/pap_plugin_hsm.*
It must be implemented in such a way that multiple HSMs can be used with the same implementation of pap_plugin_hsm.*.
pap_plugin_hsm.*
For example:
portability/hsm/hsm.h
storePolicy()
portability/hsm/{st33/st33.c, stsafe/stsafe.c, riddlencode/riddlencode.c}
plugins/pip/pip_plugin_hsm.c
hsm_implementation
portability/hsm/CMakeLists.txt
The goal is to write a PAP Plugin for Hardware Security Modules (HSM).
Solution must follow this directory structure:
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:
portability/hsm/hsm.h
declaresstorePolicy()
function.portability/hsm/{st33/st33.c, stsafe/stsafe.c, riddlencode/riddlencode.c}
have different implementations of the same functionstorePolicy()
.plugins/pip/pip_plugin_hsm.c
callsstorePolicy()
function.hsm_implementation
variable defines which implementation will be used atportability/hsm/CMakeLists.txt