1
0
Fork 0
forked from External/grumble

pkg/cryptstate: add NULL crypto mode.

This commit is contained in:
Mikkel Krautz 2012-12-09 12:58:59 +01:00
parent edf98fa75f
commit cbe2ffea3d
3 changed files with 75 additions and 3 deletions

View file

@ -55,6 +55,8 @@ 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")
}