You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
256 B
12 lines
256 B
3 years ago
|
package encryption
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestGenerate32AESkey(t *testing.T) {
|
||
|
generatedKey := Generate32AESkey()
|
||
|
|
||
|
if len(generatedKey) != int(KEYLEN) {
|
||
|
t.Errorf("Generate32AESkey failed: generated key`s length does not equal KEYLEN const (32)")
|
||
|
}
|
||
|
}
|