Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crypto/message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"io"
"os"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -151,7 +152,7 @@ func TestTextMessageEncryptionWithNonCanonicalLinebreak(t *testing.T) {

func TestTextMessageEncryptionWithCompression(t *testing.T) {
var message = NewPlainMessageFromString(
"The secret code is... 1, 2, 3, 4, 5. I repeat: the secret code is... 1, 2, 3, 4, 5",
strings.Repeat("The secret code is... 1, 2, 3, 4, 5. ", 20),
)

ciphertext, err := keyRingTestPublic.EncryptWithCompression(message, nil)
Expand Down
3 changes: 2 additions & 1 deletion crypto/sessionkey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/hex"
"errors"
"os"
"strings"
"testing"

"github.com/ProtonMail/gopenpgp/v2/constants"
Expand Down Expand Up @@ -320,7 +321,7 @@ func TestSessionKeyClear(t *testing.T) {

func TestDataPacketEncryptionWithCompression(t *testing.T) {
var message = NewPlainMessageFromString(
"The secret code is... 1, 2, 3, 4, 5. I repeat: the secret code is... 1, 2, 3, 4, 5",
strings.Repeat("The secret code is... 1, 2, 3, 4, 5. ", 20),
)

// Encrypt data with session key
Expand Down
Loading