Documentation ¶
Index ¶
- func ChallengeFromApiType(input apitypes.U2FChallenge) u2f.Challenge
- func ChallengeHashForAccountSecrets(account apitypes.Account) [32]byte
- func ChallengeHashForKeylistKey(accountId, secretId, keylistKey string) [32]byte
- func ChallengeToApiType(input u2f.Challenge) apitypes.U2FChallenge
- func GetAppIdHostname() string
- func GetTrustedFacets() []string
- func GrabUsersU2FTokenByKeyHandle(st *state.AppState, userId string, keyHandle string) *state.U2FToken
- func GrabUsersU2FTokens(st *state.AppState, userId string) []u2f.Registration
- func InjectCommonNameFromSslCertificate(cert *x509.Certificate)
- func NewU2FCustomChallenge(appID string, trustedFacets []string, challenge [32]byte) (*u2f.Challenge, error)
- func RegisteredKeyFromRegistration(registration u2f.Registration) u2f.RegisteredKey
- func RegisteredKeysToApiType(input []u2f.RegisteredKey) []apitypes.U2FRegisteredKey
- func SignRequestToApiType(input u2f.WebSignRequest) apitypes.U2FSignRequest
- func SignResponseFromApiType(input apitypes.U2FSignResult) u2f.SignResponse
- func U2ftokenToRegistration(u2ftoken *state.U2FToken) u2f.Registration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChallengeFromApiType ¶
func ChallengeFromApiType(input apitypes.U2FChallenge) u2f.Challenge
func ChallengeToApiType ¶
func ChallengeToApiType(input u2f.Challenge) apitypes.U2FChallenge
func GetAppIdHostname ¶
func GetAppIdHostname() string
func GetTrustedFacets ¶
func GetTrustedFacets() []string
func GrabUsersU2FTokens ¶
func GrabUsersU2FTokens(st *state.AppState, userId string) []u2f.Registration
func InjectCommonNameFromSslCertificate ¶
func InjectCommonNameFromSslCertificate(cert *x509.Certificate)
func NewU2FCustomChallenge ¶
func NewU2FCustomChallenge(appID string, trustedFacets []string, challenge [32]byte) (*u2f.Challenge, error)
this API should be offered by tstranex/u2f
func RegisteredKeyFromRegistration ¶
func RegisteredKeyFromRegistration(registration u2f.Registration) u2f.RegisteredKey
this ugly hack because the API is so lacking
func RegisteredKeysToApiType ¶
func RegisteredKeysToApiType(input []u2f.RegisteredKey) []apitypes.U2FRegisteredKey
func SignRequestToApiType ¶
func SignRequestToApiType(input u2f.WebSignRequest) apitypes.U2FSignRequest
func SignResponseFromApiType ¶
func SignResponseFromApiType(input apitypes.U2FSignResult) u2f.SignResponse
func U2ftokenToRegistration ¶
func U2ftokenToRegistration(u2ftoken *state.U2FToken) u2f.Registration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.