feat!: Use PrivateKeyImport for import of private key material
Replace the KeyImportData
struct with a more data safe approach using
the PrivateKeyImport
struct.
With it we now rely on PKCS#8 private keys in ASN.1 DER-encoded
format when importing private key material, which is more specific/
standardized in regards to the input data format.
The nethsm::import_key
function signature changes due to this as
providing a dedicated KeyType
is no longer necessary.
Fixes #12 (closed)
cc @rgacogne
Edited by David Runge