]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/crypto/hmac/hmac.go
[dev.boringcrypto] all: merge master (nearly Go 1.10 beta 1) into dev.boringcrypto
[gostls13.git] / src / crypto / hmac / hmac.go
index 69969636600e5092fb1f5da523d96fa369561404..4576b9843bd30994af3084752be2034f7df9be09 100644 (file)
@@ -65,6 +65,9 @@ func (h *hmac) Reset() {
 }
 
 // New returns a new HMAC hash using the given hash.Hash type and key.
+// Note that unlike other hash implementations in the standard library,
+// the returned Hash does not implement encoding.BinaryMarshaler
+// or encoding.BinaryUnmarshaler.
 func New(h func() hash.Hash, key []byte) hash.Hash {
        if boring.Enabled {
                hm := boring.NewHMAC(h, key)