Skip to content

Commit

Permalink
Fix FAB-1458
Browse files Browse the repository at this point in the history
A tiny fix for fmt.errorf and typo.

Change-Id: Ifc913db7ee45728d52a5e5fe31dc20e7ac2daea6
Signed-off-by: grapebaba <281165273@qq.com>
  • Loading branch information
GrapeBaBa committed Dec 21, 2016
1 parent 784d260 commit 74cb346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions accesscontrol/attributes/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion accesscontrol/crypto/ecdsa/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 74cb346

Please sign in to comment.