DecryptSessionKey returns no error if the input packet stream only contains a SymmetricallyEncrypted packet although no session key is found. The issue is that errors.Wrap returns nil if err is nil.
This pull request ensures that an error is returned if no session key is found.
DecryptSessionKey
returns no error if the input packet stream only contains aSymmetricallyEncrypted
packet although no session key is found. The issue is thaterrors.Wrap
returnsnil
iferr
isnil
.This pull request ensures that an error is returned if no session key is found.