Create SplitMessage() to replace SeparateKeyAndData(...int)

Keep SeparateKeyAndData(_ int, _ int) for backwards compatibility
with go-mobile bindings.
Deprecate SeparateKeyAndData in favor of SplitMessage.
This commit is contained in:
Daniel Huigens 2022-02-28 18:46:48 +01:00
parent 34904b7f9f
commit e1f6ea603a
4 changed files with 15 additions and 8 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()
split, err := ciphertext.SplitMessage()
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()
split, err := ciphertext.SplitMessage()
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()
split, err := ciphertext.SplitMessage()
if err != nil {
t.Fatal("Expected no error when splitting, got:", err)
}