Documentation ¶
Index ¶
- type BLECrypto
- func (b *BLECrypto) DecryptMessage(msg []byte) ([]byte, error)
- func (b *BLECrypto) Encrypt(msg []byte) ([]byte, error)
- func (b *BLECrypto) GetRemotePublicKey() [32]uint8
- func (b *BLECrypto) SetNonces(msg *rts.RtsNonceMessage) error
- func (b *BLECrypto) SetPin(pin string) error
- func (b *BLECrypto) SetRemotePublicKey(msg *rts.RtsConnRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLECrypto ¶
type BLECrypto struct {
// contains filtered or unexported fields
}
BLECrypto is a container for all of the BLE crypto
func (*BLECrypto) DecryptMessage ¶
DecryptMessage decrypts an incoming message
func (*BLECrypto) GetRemotePublicKey ¶
GetRemotePublicKey returns the public key
func (*BLECrypto) SetNonces ¶
func (b *BLECrypto) SetNonces(msg *rts.RtsNonceMessage) error
SetNonces populates the nonces
func (*BLECrypto) SetRemotePublicKey ¶
func (b *BLECrypto) SetRemotePublicKey(msg *rts.RtsConnRequest) error
SetRemotePublicKey populates the remote public key
Click to show internal directories.
Click to hide internal directories.