forked from External/grumble
pkg/cryptstate: remove NULL crypto mode.
It's not too sensible to have a NULL mode in the first place, and the CryptState code expects non-0 IVs and keys. Drop it.
This commit is contained in:
parent
4388e682ab
commit
b871d9c092
2 changed files with 0 additions and 28 deletions
|
|
@ -58,8 +58,6 @@ func createMode(mode string) (CryptoMode, error) {
|
|||
return &ocb2Mode{}, nil
|
||||
case "XSalsa20-Poly1305":
|
||||
return &secretBoxMode{}, nil
|
||||
case "NULL":
|
||||
return &nullMode{}, nil
|
||||
}
|
||||
return nil, errors.New("cryptstate: no such CryptoMode")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue