Thank you Quinn for the reply.
@OShv Did you find code sample ?
In my case, I have access to the HSM API and I want to create a driver for it to store iOS signing keys.
@DTS Engineer There is something I don't understand when you mention the keychain would "get the HSM private key" using SecIdentityCopyPrivateKey.
The objectives of HSM is to not expose secrets outside of its secured hardware. The way an HSM signature works is to send the digest to sign and the key ID to the HSM. The HSM computes the signature inside its security perimeter and returns the signature, without exposing the secret key.
Example with AWS Key Management Service (which uses a HSM behind the scene) https://docs.aws.amazon.com/kms/latest/APIReference/API_Sign.html
Do you imply HSM must be able to exprt their secrets to work with the CryptoTokenKit ?
Topic:
Programming Languages
SubTopic:
Swift
Tags: