u2futil

package
v0.0.0-...-5dc20d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChallengeFromApiType

func ChallengeFromApiType(input apitypes.U2FChallenge) u2f.Challenge

func ChallengeHashForAccountSecrets

func ChallengeHashForAccountSecrets(account apitypes.Account) [32]byte

func ChallengeHashForKeylistKey

func ChallengeHashForKeylistKey(accountId, secretId, keylistKey string) [32]byte

func ChallengeToApiType

func ChallengeToApiType(input u2f.Challenge) apitypes.U2FChallenge

func GetAppIdHostname

func GetAppIdHostname() string

func GetTrustedFacets

func GetTrustedFacets() []string

func GrabUsersU2FTokenByKeyHandle

func GrabUsersU2FTokenByKeyHandle(st *state.AppState, userId string, keyHandle string) *state.U2FToken

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL