Commit 702833a5 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #64 from libp2p/fix/remove-sha1

feat: remove sha1 hmac
parents cf5f8d2f e5b5458b
......@@ -8,7 +8,6 @@ import (
"crypto/aes"
"crypto/cipher"
"crypto/hmac"
"crypto/sha1"
"crypto/sha512"
"hash"
......@@ -72,8 +71,6 @@ func (e *encParams) makeMacAndCipher() error {
func newMac(hashType string, key []byte) (HMAC, error) {
switch hashType {
case "SHA1":
return HMAC{hmac.New(sha1.New, key), sha1.Size}, nil
case "SHA512":
return HMAC{hmac.New(sha512.New, key), sha512.Size}, nil
case "SHA256":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment