summaryrefslogtreecommitdiff
path: root/src/pkg/crypto/hmac/hmac.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/crypto/hmac/hmac.go')
-rw-r--r--src/pkg/crypto/hmac/hmac.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pkg/crypto/hmac/hmac.go b/src/pkg/crypto/hmac/hmac.go
index 4ed5686d7..f1cc6b32a 100644
--- a/src/pkg/crypto/hmac/hmac.go
+++ b/src/pkg/crypto/hmac/hmac.go
@@ -64,9 +64,7 @@ func (h *hmac) Write(p []byte) (n int, err os.Error) {
return h.inner.Write(p);
}
-func (h *hmac) Size() int {
- return h.size;
-}
+func (h *hmac) Size() int { return h.size }
func (h *hmac) Reset() {
h.inner.Reset();
@@ -94,11 +92,7 @@ func New(h hash.Hash, key []byte) hash.Hash {
}
// NewMD5 returns a new HMAC-MD5 hash using the given key.
-func NewMD5(key []byte) hash.Hash {
- return New(md5.New(), key);
-}
+func NewMD5(key []byte) hash.Hash { return New(md5.New(), key) }
// NewSHA1 returns a new HMAC-SHA1 hash using the given key.
-func NewSHA1(key []byte) hash.Hash {
- return New(sha1.New(), key);
-}
+func NewSHA1(key []byte) hash.Hash { return New(sha1.New(), key) }