nethsm::openpgp

Function hsm_pk_to_pgp_pk

source
fn hsm_pk_to_pgp_pk(
    pk: PublicKey,
    created_at: DateTime<Utc>,
) -> Result<PublicKey, Error>
Expand description

Converts NetHSM public key to OpenPGP public key.

Since OpenPGP public keys have a date of creation (which is used for fingerprint calculation) this is an additional, explicit parameter.