From 475db8b1cb71b05757325f9438b429fa0f3af797 Mon Sep 17 00:00:00 2001 From: marinthiercelin Date: Wed, 26 Aug 2020 11:06:50 +0200 Subject: [PATCH] Correction to README.md (#71) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a3a6cb..2c5e854 100644 --- a/README.md +++ b/README.md @@ -340,7 +340,7 @@ sessionKey, err := crypto.GenerateSessionKey() keyPacket, err := publicKeyRing.EncryptSessionKey(sessionKey) // Will encrypt to all the keys in the keyring keyPacketSymm, err := crypto.EncryptSessionKeyWithPassword(sessionKey, password) ``` -`KeyPacket` is a `[]byte` containing the session key encrypted with the private key or password. +`KeyPacket` is a `[]byte` containing the session key encrypted with the public key or password. ```go decodedKeyPacket, err := privateKeyRing.DecryptSessionKey(keyPacket) // Will decode with the first valid key found