Fix various keys issues (#117)

* Fix armouring headers for public keys
* Fix error for session key decryption failure
This commit is contained in:
wussler 2021-03-09 19:06:35 +01:00 committed by GitHub
parent 27efcb4627
commit ff54225384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 75 additions and 6 deletions

View file

@ -103,7 +103,7 @@ func TestAttachmentDecrypt(t *testing.T) {
assert.Exactly(t, message, redecData)
}
func TestAttachmentDecrypt2(t *testing.T) {
func TestAttachmentDecryptStatic(t *testing.T) {
passphrase := []byte("wUMuF/lkDPYWH/0ZqqY8kJKw7YJg6kS")
keyPacket, err := base64.StdEncoding.DecodeString(readTestFile("att_keypacket", false))
if err != nil {