Rename PmCrypto to GopenPGP
This commit is contained in:
parent
37cbb276fd
commit
bb1be4a43b
19 changed files with 125 additions and 126 deletions
|
|
@ -53,17 +53,17 @@ func TestDecrypt(t *testing.T) {
|
|||
|
||||
privateKeyUnarmored, _ := ioutil.ReadAll(block.Body)
|
||||
|
||||
pmCrypto.DecryptMIMEMessage(
|
||||
pgp.DecryptMIMEMessage(
|
||||
readTestFile("mime_pgpMessage", false),
|
||||
pmCrypto.BuildKeyRingNoError(publicKeyUnarmored),
|
||||
pmCrypto.BuildKeyRingNoError(privateKeyUnarmored),
|
||||
pgp.BuildKeyRingNoError(publicKeyUnarmored),
|
||||
pgp.BuildKeyRingNoError(privateKeyUnarmored),
|
||||
privateKeyPassword,
|
||||
&callbacks,
|
||||
pmCrypto.GetTimeUnix())
|
||||
pgp.GetTimeUnix())
|
||||
}
|
||||
|
||||
func TestParse(t *testing.T) {
|
||||
body, _, atts, attHeaders, err := pmCrypto.parseMIME(readTestFile("mime_testMessage", false), nil)
|
||||
body, _, atts, attHeaders, err := pgp.parseMIME(readTestFile("mime_testMessage", false), nil)
|
||||
|
||||
if err != nil {
|
||||
t.Error("Expected no error while parsing message, got:", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue