Skip to content

Commit 74cb346

Browse files
committed
Fix FAB-1458
A tiny fix for fmt.errorf and typo. Change-Id: Ifc913db7ee45728d52a5e5fe31dc20e7ac2daea6 Signed-off-by: grapebaba <[email protected]>
1 parent 784d260 commit 74cb346

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

accesscontrol/attributes/attributes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ var (
4343

4444
padding = []byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}
4545

46-
//headerPrefix is the prefix used in the header exteion of the certificate.
46+
//headerPrefix is the prefix used in the header extension of the certificate.
4747
headerPrefix = "00HEAD"
4848

49-
//HeaderAttributeName is the name used to derivate the K used to encrypt/decrypt the header.
49+
//HeaderAttributeName is the name used to derive the K used to encrypt/decrypt the header.
5050
HeaderAttributeName = "attributeHeader"
5151
)
5252

accesscontrol/crypto/ecdsa/hash.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func computeHash(msg []byte, bitsize int) ([]byte, error) {
7070
case "SHA3":
7171
hash, err = getHashSHA3(bitsize)
7272
default:
73-
return nil, fmt.Errorf("Invalid hash algorithm " + primitives.GetHashAlgorithm())
73+
return nil, fmt.Errorf("Invalid hash algorithm %s", primitives.GetHashAlgorithm())
7474
}
7575

7676
if err != nil {

0 commit comments

Comments
 (0)