Documentation
¶
Index ¶
- Constants
- func GenerateSecret(prv crypto.PrivateKey, pub crypto.PublicKey) ([]byte, error)
- func MarshalPublicKeyX(k crypto.PublicKey) []byte
- func MarshalPublicKeyXY(k crypto.PublicKey) []byte
- func NewSmpFactory(bm hci.BondManager) *factory
- func NewSmpManager(config hci.SmpConfig, bm hci.BondManager, l ble.Logger) *manager
- func NewSmpTransport(ctx *pairingContext, bm hci.BondManager, e hci.Encrypter, ...) *transport
- func UnmarshalPublicKey(b []byte) (crypto.PublicKey, bool)
- type ECDHKeys
- type PairingState
Constants ¶
View Source
const ( JustWorks = iota NumericComp Passkey Oob )
Variables ¶
This section is empty.
Functions ¶
func GenerateSecret ¶
func MarshalPublicKeyX ¶
func MarshalPublicKeyXY ¶
func NewSmpFactory ¶
func NewSmpFactory(bm hci.BondManager) *factory
func NewSmpManager ¶
todo: need to have on instance per connection which requires a mutex in the bond manager todo: remove bond manager from input parameters?
func NewSmpTransport ¶
Types ¶
type ECDHKeys ¶
type ECDHKeys struct {
// contains filtered or unexported fields
}
func GenerateKeys ¶
type PairingState ¶
type PairingState int
const ( Init PairingState = iota WaitPairingResponse WaitPublicKey WaitConfirm WaitRandom WaitDhKeyCheck Finished Error )
Click to show internal directories.
Click to hide internal directories.