Documentation
¶
Index ¶
- Constants
- type CBOR_MSG
- type CTAP
- func (c *CTAP) ClientPIN_GetKeyAgreement() (*pin.AuthenticatorClientPIN_Answer, error)
- func (c *CTAP) ClientPIN_GetPinToken(curPin string) (*pin.AuthenticatorClientPIN_Answer, error)
- func (c *CTAP) ClientPIN_GetRetries() (*pin.AuthenticatorClientPIN_Answer, error)
- func (c *CTAP) ClientPIN_Set(newPin string) (*pin.AuthenticatorClientPIN_Answer, error)
- func (c *CTAP) GetAssertion(rpId string, cdh []byte, allowList [][]byte, pinAuth []byte, withHMAC bool, ...) (*assertion.AssertionReplyObjectParsed, error)
- func (c *CTAP) GetInfoCbor() (*info.AuthenticatorGetInfo, error)
- func (c *CTAP) MakeCredential(cdh []byte, rp_ID, rp_name string, user_Name, user_DisplayName string, ...) (*credentials.AttestationObject, error)
- func (c *CTAP) MakeSharedSecret() (*credentials.SharedSecret, error)
- func (c *CTAP) SendInitCommand() (*INIT_INFO, error)
- func (c *CTAP) Send_CBOR(cmd uint8, data interface{}) ([]byte, error)
- func (c *CTAP) SetDevice(dev *hidraw.HidDevice)
- func (c *CTAP) Wink() error
- type Capability_flags
- type INIT_INFO
Constants ¶
View Source
const CMD_CBOR uint8 = 0x10
View Source
const CMD_INIT uint8 = 0x06
View Source
const CMD_WINK uint8 = 0x08
View Source
const CMD_authenticatorMakeCredential = 0x01
View Source
const (
CMD_authenticatorReset = 0x07
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CTAP ¶
type CTAP struct {
// contains filtered or unexported fields
}
func (*CTAP) ClientPIN_GetKeyAgreement ¶
func (c *CTAP) ClientPIN_GetKeyAgreement() (*pin.AuthenticatorClientPIN_Answer, error)
func (*CTAP) ClientPIN_GetPinToken ¶
func (c *CTAP) ClientPIN_GetPinToken(curPin string) (*pin.AuthenticatorClientPIN_Answer, error)
func (*CTAP) ClientPIN_GetRetries ¶
func (c *CTAP) ClientPIN_GetRetries() (*pin.AuthenticatorClientPIN_Answer, error)
func (*CTAP) ClientPIN_Set ¶
func (c *CTAP) ClientPIN_Set(newPin string) (*pin.AuthenticatorClientPIN_Answer, error)
func (*CTAP) GetAssertion ¶
func (*CTAP) GetInfoCbor ¶
func (c *CTAP) GetInfoCbor() (*info.AuthenticatorGetInfo, error)
func (*CTAP) MakeCredential ¶
func (c *CTAP) MakeCredential(cdh []byte, rp_ID, rp_name string, user_Name, user_DisplayName string, user_ID []byte, pinToken []byte, rk, withHMAC bool) (*credentials.AttestationObject, error)
func (*CTAP) MakeSharedSecret ¶
func (c *CTAP) MakeSharedSecret() (*credentials.SharedSecret, error)
func (*CTAP) SendInitCommand ¶
type Capability_flags ¶
Click to show internal directories.
Click to hide internal directories.