Generic implementation of splitting messages

This commit is contained in:
Daniel Huigens 2022-02-11 14:21:06 +01:00 committed by Aron Wussler
parent 0ad4b054c7
commit 7103bdf2a5
4 changed files with 25 additions and 106 deletions

View file

@ -96,7 +96,7 @@ func TestTextMessageEncryption(t *testing.T) {
t.Fatal("Expected no error when encrypting, got:", err)
}
split, err := ciphertext.SeparateKeyAndData(1024, 0)
split, err := ciphertext.SeparateKeyAndData()
if err != nil {
t.Fatal("Expected no error when splitting, got:", err)
}
@ -120,7 +120,7 @@ func TestTextMessageEncryptionWithCompression(t *testing.T) {
t.Fatal("Expected no error when encrypting, got:", err)
}
split, err := ciphertext.SeparateKeyAndData(1024, 0)
split, err := ciphertext.SeparateKeyAndData()
if err != nil {
t.Fatal("Expected no error when splitting, got:", err)
}
@ -252,7 +252,7 @@ func TestDummy(t *testing.T) {
t.Fatal("Expected no error when encrypting, got:", err)
}
split, err := ciphertext.SeparateKeyAndData(1024, 0)
split, err := ciphertext.SeparateKeyAndData()
if err != nil {
t.Fatal("Expected no error when splitting, got:", err)
}