You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
234 B
Go

package sodium
import "testing"
import "log"
func TestGenerateKey(t *testing.T) {
k := GenerateKey()
if len(k) != KeyLen {
t.Errorf("Wrong keylen %d instead of %d", len(k), KeyLen)
}
log.Printf("Generated Key: %v", k)
}