Versions in this module Expand all Collapse all v0 v0.4.3 Jun 30, 2023 v0.4.2 Jun 30, 2023 v0.4.1 Jun 30, 2023 v0.4.0 Jun 30, 2023 Changes in this version + const ChallengeLength + const CryptogramLength + const DerivationConstantDeviceCryptogram + const DerivationConstantEncKey + const DerivationConstantHostCryptogram + const DerivationConstantMACKey + const DerivationConstantRMACKey + const KeyLength + const MACLength + const MaxMessagesPerSession + const MessageTypeCommand + const MessageTypeResponse + const SecurityLevelAuthenticated + const SecurityLevelUnauthenticated + var ErrAuthCryptogram = errors.New("authentication failed: device sent wrong cryptogram") + type KeyChain struct + EncKey []byte + MACKey []byte + RMACKey []byte + type KeyDerivationConstant byte + type MessageType byte + type SecureChannel struct + AuthKey authkey.AuthKey + Counter uint32 + DeviceChallenge []byte + HostChallenge []byte + ID uint8 + MACChainValue []byte + SecurityLevel SecurityLevel + func NewSecureChannel(connector connector.Connector, authKeySlot uint16, password string) (*SecureChannel, error) + func (s *SecureChannel) Authenticate() error + func (s *SecureChannel) Close() error + func (s *SecureChannel) SendCommand(c *commands.CommandMessage) (commands.Response, error) + func (s *SecureChannel) SendEncryptedCommand(c *commands.CommandMessage) (commands.Response, error) + type SecurityLevel byte