Skip to content

Commit 95d1c3c

Browse files
committed
Add support for P-384 keys on the secure enclave
This commit enables the creation of NIST P-384 keys on the Secure Enaclave.
1 parent da4056b commit 95d1c3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kms/mackms/mackms.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ func (k *MacKMS) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyRespons
218218
if !ok {
219219
return nil, fmt.Errorf("createKeyRequest 'signatureAlgorithm=%q' is not supported", req.SignatureAlgorithm)
220220
}
221-
if u.useSecureEnclave && req.SignatureAlgorithm != apiv1.UnspecifiedSignAlgorithm && req.SignatureAlgorithm != apiv1.ECDSAWithSHA256 {
221+
if u.useSecureEnclave && req.SignatureAlgorithm != apiv1.UnspecifiedSignAlgorithm &&
222+
req.SignatureAlgorithm != apiv1.ECDSAWithSHA256 &&
223+
req.SignatureAlgorithm != apiv1.ECDSAWithSHA384 {
222224
return nil, fmt.Errorf("createKeyRequest 'signatureAlgorithm=%q' is not supported on Secure Enclave", req.SignatureAlgorithm)
223225
}
224226

0 commit comments

Comments
 (0)