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