From 4a75ba54c28f9c8aa4011c3c5e9e146fd8c83359 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Wed, 1 Jan 2025 09:57:54 +0800 Subject: [PATCH] all: make function and struct comments match the names Change-Id: Iba9c1fc2895adca0d3455f8068b040d0ca006408 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/639575 LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Reviewed-by: Roland Shoemaker Auto-Submit: Ian Lance Taylor --- acme/types.go | 2 +- pkcs12/crypto.go | 2 +- ssh/client_auth_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acme/types.go b/acme/types.go index 4888726..23a4d65 100644 --- a/acme/types.go +++ b/acme/types.go @@ -288,7 +288,7 @@ type Directory struct { // KeyChangeURL allows to perform account key rollover flow. KeyChangeURL string - // Term is a URI identifying the current terms of service. + // Terms is a URI identifying the current terms of service. Terms string // Website is an HTTP or HTTPS URL locating a website diff --git a/pkcs12/crypto.go b/pkcs12/crypto.go index 96f4a1a..212538c 100644 --- a/pkcs12/crypto.go +++ b/pkcs12/crypto.go @@ -26,7 +26,7 @@ type pbeCipher interface { create(key []byte) (cipher.Block, error) // deriveKey returns a key derived from the given password and salt. deriveKey(salt, password []byte, iterations int) []byte - // deriveKey returns an IV derived from the given password and salt. + // deriveIV returns an IV derived from the given password and salt. deriveIV(salt, password []byte, iterations int) []byte } diff --git a/ssh/client_auth_test.go b/ssh/client_auth_test.go index f11eeb5..ec27133 100644 --- a/ssh/client_auth_test.go +++ b/ssh/client_auth_test.go @@ -38,7 +38,7 @@ func tryAuth(t *testing.T, config *ClientConfig) error { return err } -// tryAuth runs a handshake with a given config against an SSH server +// tryAuthWithGSSAPIWithMICConfig runs a handshake with a given config against an SSH server // with a given GSSAPIWithMICConfig and config serverConfig. Returns both client and server side errors. func tryAuthWithGSSAPIWithMICConfig(t *testing.T, clientConfig *ClientConfig, gssAPIWithMICConfig *GSSAPIWithMICConfig) error { err, _ := tryAuthBothSides(t, clientConfig, gssAPIWithMICConfig)