Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: deterclosed <[email protected]>
  • Loading branch information
deterclosed committed Dec 11, 2024
1 parent e64ae9e commit 3ae8bdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cryptoutils/pkcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func marshalPKCS8ECDSAPrivateKey(key *ecdsa.PrivateKey) ([]byte, error) {
return asn1.Marshal(privKey)
}

// marshalECPrivateKey marshals an EC private key into ASN.1, DER format and
// marshalECPrivateKeyWithOID marshals an EC private key into ASN.1, DER format and
// sets the curve ID to the given OID, or omits it if OID is nil.
func marshalECPrivateKeyWithOID(key *ecdsa.PrivateKey, oid asn1.ObjectIdentifier) ([]byte, error) {
privateKeyBytes := key.D.Bytes()
Expand Down
2 changes: 1 addition & 1 deletion pkg/vault/cloudkms/cloudkms.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Config struct {
KeyRing string `yaml:"key_ring" validate:"required"`
}

// KeyRingName returns full Google Cloud KMS key ring path
// keyRingName returns full Google Cloud KMS key ring path
func (c *Config) keyRingName() string {
return fmt.Sprintf("projects/%s/locations/%s/keyRings/%s", c.Project, c.Location, c.KeyRing)
}
Expand Down

0 comments on commit 3ae8bdb

Please sign in to comment.