0
$\begingroup$

Can HSMs be configured to store a key, and allow encryption or decryption with said key, but prevent any export or backup of the key itself?

We're basically trying to develop a system using asymmetric encryption to perform some custom signatures. We ultimately want a black box where a user inputs some plaintext and gets out the ciphertext, but is unable to access the key used to encrypt.

$\endgroup$
2
  • $\begingroup$ This should be no problem with symmetric keys, with asymmetric keys it may be possible to mark a public key as non-exportable, but I don't know for sure (-> no answer). $\endgroup$
    – SEJPM
    Commented Jul 3, 2018 at 18:17
  • $\begingroup$ In our scheme, it would be the private key that would have to be non-exportable (probably RSA or ECDSA) - not sure if that distinction matters $\endgroup$
    – JacobJ
    Commented Jul 3, 2018 at 18:25

1 Answer 1

3
$\begingroup$

Can HSMs be configured to store a key, and allow encryption or decryption with said key, but prevent any export or backup of the key itself?

Yes, because that's precisely what HSMs are designed to do*. Assuming of course you don't mind your public (encryption) key being exportable, but if you don't want that, just get an HSM that supports symmetric encryption.

*: Actually more often than not you don't want your high-value or encryption keys to be completely without backup as to allow recovery of plaintexts or continuation of operation in case the HSM dies, which is why HSMs tend to have mechanisms that allow to securely backup keys, unlike smart cards which instead require you to backup keys before putting them onto the card.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.