diff --git a/accesscontrol/attributes/attributes.go b/accesscontrol/attributes/attributes.go index 94251446572..9ccca5536ab 100644 --- a/accesscontrol/attributes/attributes.go +++ b/accesscontrol/attributes/attributes.go @@ -43,10 +43,10 @@ var ( padding = []byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255} - //headerPrefix is the prefix used in the header exteion of the certificate. + //headerPrefix is the prefix used in the header extension of the certificate. headerPrefix = "00HEAD" - //HeaderAttributeName is the name used to derivate the K used to encrypt/decrypt the header. + //HeaderAttributeName is the name used to derive the K used to encrypt/decrypt the header. HeaderAttributeName = "attributeHeader" ) diff --git a/accesscontrol/crypto/ecdsa/hash.go b/accesscontrol/crypto/ecdsa/hash.go index 6317cad7c5c..696fd2ae1b7 100644 --- a/accesscontrol/crypto/ecdsa/hash.go +++ b/accesscontrol/crypto/ecdsa/hash.go @@ -70,7 +70,7 @@ func computeHash(msg []byte, bitsize int) ([]byte, error) { case "SHA3": hash, err = getHashSHA3(bitsize) default: - return nil, fmt.Errorf("Invalid hash algorithm " + primitives.GetHashAlgorithm()) + return nil, fmt.Errorf("Invalid hash algorithm %s", primitives.GetHashAlgorithm()) } if err != nil {