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

@ -278,7 +278,7 @@ func TestMDCFailDecryption(t *testing.T) {
t.Fatal("Expected no error when unarmoring, got:", err)
}
split, err := pgpMessage.SeparateKeyAndData()
split, err := pgpMessage.SplitMessage()
if err != nil {
t.Fatal("Expected no error when splitting, got:", err)
}