Versions in this module Expand all Collapse all v0 v0.7.2 Sep 5, 2024 Changes in this version + var ErrInvalidKey = errors.New("crypto: invalid key for encryption. Must be even, odd, or both") + var ErrInvalidWrap = errors.New("crypto: the un/wrapped key has the wrong length") + type Crypto interface + EncryptOrDecryptPayload func(data []byte, key packet.PacketEncryption, packetSequenceNumber uint32, ...) error + GenerateSEK func(key packet.PacketEncryption) error + MarshalKM func(km *packet.CIFKeyMaterialExtension, passphrase string, ...) error + UnmarshalKM func(km *packet.CIFKeyMaterialExtension, passphrase string) error + func New(keyLength int) (Crypto, error)