-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(v2): Implement feedback for key operations
- Loading branch information
Showing
5 changed files
with
22 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,8 @@ package openpgp | |
|
||
import ( | ||
"bytes" | ||
"io/ioutil" | ||
"strings" | ||
"testing" | ||
|
||
"github.com/ProtonMail/go-crypto/openpgp/armor" | ||
) | ||
|
||
var foreignKeys = []string{ | ||
|
@@ -23,6 +20,8 @@ func TestReadPrivateForeignV5Key(t *testing.T) { | |
} | ||
} | ||
|
||
// Deprecated | ||
/* | ||
// TODO: Replace message with a correctly generated one. | ||
func testV5ForeignSignedMessage(t *testing.T) { | ||
kring, err := ReadArmoredKeyRing(strings.NewReader(v5PrivKey)) | ||
|
@@ -58,8 +57,6 @@ func testV5ForeignSignedMessage(t *testing.T) { | |
} | ||
} | ||
// Depricated | ||
/* | ||
func TestReadPrivateEncryptedV5Key(t *testing.T) { | ||
c := &packet.Config{V5Keys: true} | ||
e, err := NewEntity("V5 Key Owner", "V5 Key", "[email protected]", c) | ||
|
@@ -116,7 +113,7 @@ func TestReadPrivateSerializeForeignV5Key(t *testing.T) { | |
} | ||
} | ||
|
||
// Depricated | ||
// Deprecated | ||
/* | ||
func TestNewEntitySerializeV5Key(t *testing.T) { | ||
c := &packet.Config{V5Keys: true} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,8 @@ package v2 | |
|
||
import ( | ||
"bytes" | ||
"io/ioutil" | ||
"strings" | ||
"testing" | ||
|
||
"github.com/ProtonMail/go-crypto/openpgp/armor" | ||
) | ||
|
||
var foreignKeys = []string{ | ||
|
@@ -23,7 +20,8 @@ func TestReadPrivateForeignV5Key(t *testing.T) { | |
} | ||
} | ||
|
||
// TODO: Replace message with a correctly generated one. | ||
// Deprecated | ||
/* | ||
func testV5ForeignSignedMessage(t *testing.T) { | ||
kring, err := ReadArmoredKeyRing(strings.NewReader(v5PrivKey)) | ||
if err != nil { | ||
|
@@ -61,8 +59,6 @@ func testV5ForeignSignedMessage(t *testing.T) { | |
} | ||
} | ||
// Depricated | ||
/* | ||
func TestReadPrivateEncryptedV5Key(t *testing.T) { | ||
c := &packet.Config{V5Keys: true} | ||
e, err := NewEntity("V5 Key Owner", "V5 Key", "[email protected]", c) | ||
|
@@ -119,7 +115,7 @@ func TestReadPrivateSerializeForeignV5Key(t *testing.T) { | |
} | ||
} | ||
|
||
// Depricated | ||
// Deprecated | ||
/* | ||
func TestNewEntitySerializeV5Key(t *testing.T) { | ||
c := &packet.Config{V5Keys: true} | ||
|