Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Jul 6, 2023
1 parent 6c46a30 commit 4c60127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kms/capi/capi.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var signatureAlgorithmMapping = map[apiv1.SignatureAlgorithm]string{
// "key-id" X509v3 Subject Key Identifier of the certificate to load in hex format
// "serial" serial number of the certificate to load in hex format
// "issuer" Common Name of the certificate issuer
// "key-spec" the (legacy) KeySpec to use - 0, 1 or 2 (or none, at_keyexchange, at_signature)
// "key-spec" the (legacy) KeySpec to use - 0, 1 or 2 (or none, at_keyexchange, at_signature)
type CAPIKMS struct {
providerName string
providerHandle uintptr
Expand Down Expand Up @@ -387,7 +387,7 @@ func (k *CAPIKMS) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyRespon

keySpec, err := setKeySpec(u)
if err != nil {
return nil, fmt.Errorf("failed determinging KeySpec to use: %w", err)
return nil, fmt.Errorf("failed determining KeySpec to use: %w", err)
}

//TODO: check whether RSA keys require legacyKeySpec set to AT_KEYEXCHANGE
Expand Down

0 comments on commit 4c60127

Please sign in to comment.