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 ChallengeHashForSignIn(userId string) [32]byte
- func ChallengeToApiType(input u2f.Challenge) apitypes.U2FChallenge
- func GetAppIdHostname() string
- func GrabUsersU2FTokenByKeyHandle(userStorage *state.UserStorage, keyHandle string) *state.U2FToken
- func GrabUsersU2FTokens(userStorage *state.UserStorage) []u2f.Registration
- func InjectCommonNameFromSslCertificate(cert *x509.Certificate)
- func MakeChallengeBundle(challengeHash [32]byte, userData *state.UserStorage) (*apitypes.U2FChallengeBundle, error)
- func MakeTrustedFacets() []string
- func NewU2FCustomChallenge(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 SignatureOk(response apitypes.U2FResponseBundle, expectedHash [32]byte, ...) (*domain.UserU2FTokenUsed, error)
- 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 ChallengeHashForSignIn ¶
func ChallengeToApiType ¶
func ChallengeToApiType(input u2f.Challenge) apitypes.U2FChallenge
func GetAppIdHostname ¶
func GetAppIdHostname() string
func GrabUsersU2FTokenByKeyHandle ¶
func GrabUsersU2FTokenByKeyHandle(userStorage *state.UserStorage, keyHandle string) *state.U2FToken
func GrabUsersU2FTokens ¶
func GrabUsersU2FTokens(userStorage *state.UserStorage) []u2f.Registration
func InjectCommonNameFromSslCertificate ¶
func InjectCommonNameFromSslCertificate(cert *x509.Certificate)
func MakeChallengeBundle ¶
func MakeChallengeBundle( challengeHash [32]byte, userData *state.UserStorage, ) (*apitypes.U2FChallengeBundle, error)
func MakeTrustedFacets ¶
func MakeTrustedFacets() []string
func NewU2FCustomChallenge ¶
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 SignatureOk ¶
func SignatureOk( response apitypes.U2FResponseBundle, expectedHash [32]byte, userStorage *state.UserStorage, ) (*domain.UserU2FTokenUsed, error)
func U2ftokenToRegistration ¶
func U2ftokenToRegistration(u2ftoken *state.U2FToken) *u2f.Registration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.