From 3ae8bdbd7b3bb94b55ac56561203de08a6ae88fd Mon Sep 17 00:00:00 2001 From: deterclosed Date: Wed, 11 Dec 2024 18:00:12 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: deterclosed --- pkg/cryptoutils/pkcs.go | 2 +- pkg/vault/cloudkms/cloudkms.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cryptoutils/pkcs.go b/pkg/cryptoutils/pkcs.go index 402cb5f4..f50ee34c 100644 --- a/pkg/cryptoutils/pkcs.go +++ b/pkg/cryptoutils/pkcs.go @@ -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() diff --git a/pkg/vault/cloudkms/cloudkms.go b/pkg/vault/cloudkms/cloudkms.go index 2428e026..d8342f7b 100644 --- a/pkg/vault/cloudkms/cloudkms.go +++ b/pkg/vault/cloudkms/cloudkms.go @@ -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) }