Class: Toybox.Ant.CryptoConfig
- Inherits:
-
Toybox.Lang.Object
Overview
A class to handle encryption of ANT wireless data.
See Also:
Constant Summary
Constant Variables
Type | Name | Value | Since | Description |
---|---|---|---|---|
Type | DEFAULT_ENCRYPTION_ID | 0 | API Level 2.3.0 |
|
Type | DEFAULT_USER_INFO_STRING | 0 | API Level 2.3.0 |
|
Type | ENCRYPTION_KEY_LENGTH | 16 | API Level 2.3.0 |
|
Type | USER_INFO_STRING_LENGTH | 19 | API Level 2.3.0 |
Typedef Summary collapse
- EncryptionKey as [ Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number ]
- UserInfoString as [ Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number, Lang.Number ]
Instance Member Summary collapse
-
decimationRate as Lang.Number
The division factor of the encryption counter.
-
encryptionId as Lang.Number
The unique 4 byte identifier of the encrypted master or the negotiating slave.
-
encryptionKey as CryptoConfig.EncryptionKey
The 128-bit encryption key used to encrypt/decrypt ANT packets.
-
userInfoString as CryptoConfig.UserInfoString or Null
The (optional) user information String to be sent to the master channel on successful negotiation of encryption (Slave channels only).
Instance Method Summary collapse
-
initialize(options as { :encryptionId as Lang.Number, :encryptionKey as CryptoConfig.EncryptionKey, :userInfoString as CryptoConfig.UserInfoString, :decimationRate as Lang.Number })
Constructor.
Instance Attribute Details
var decimationRate as Lang.Number
The division factor of the encryption counter
var encryptionId as Lang.Number
The unique 4 byte identifier of the encrypted master or the negotiating slave.
var encryptionKey as CryptoConfig.EncryptionKey
The 128-bit encryption key used to encrypt/decrypt ANT packets.
var userInfoString as CryptoConfig.UserInfoString or Null
The (optional) user information String to be sent to the master channel on successful negotiation of encryption (Slave channels only).
Instance Method Details
initialize(options as { :encryptionId as Lang.Number, :encryptionKey as CryptoConfig.EncryptionKey, :userInfoString as CryptoConfig.UserInfoString, :decimationRate as Lang.Number })
Constructor