Commit e5b5458b authored by Steven Allen's avatar Steven Allen

feat: remove sha1 hmac

This hasn't been enabled since 2014 but we might as well completely remove it to
remove any confusion.
parent f1c541ba
......@@ -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