Documentation
¶
Index ¶
- func AssembleSignedRegistrationData(rpIDHash, tbsHash, credID []byte, pubKey models.PublicKey) ([]byte, error)
- func DecodeAttestationObject(rawAttObj string) (req.EncodedAuthData, error)
- func JSONResponse(w http.ResponseWriter, d interface{}, c int)
- func ParseAssertionData(assertionData []byte, hexSig string) (req.DecodedAssertionData, error)
- func ParseAttestationStatement(ead req.EncodedAttestationStatement) (req.DecodedAttestationStatement, error)
- func ParseAuthData(ead req.EncodedAuthData) (req.DecodedAuthData, error)
- func UnmarshallClientData(clientData string) (req.DecodedClientData, error)
- func VerifyAssertionData(clientData *req.DecodedClientData, authData *req.DecodedAssertionData, ...) (bool, models.Credential, error)
- func VerifyRegistrationData(clientData *req.DecodedClientData, authData *req.DecodedAuthData, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAttestationObject ¶
func DecodeAttestationObject(rawAttObj string) (req.EncodedAuthData, error)
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, d interface{}, c int)
func ParseAssertionData ¶
func ParseAssertionData(assertionData []byte, hexSig string) (req.DecodedAssertionData, error)
ParseAssertionData - Parses assertion data from byte array to a struct
func ParseAttestationStatement ¶
func ParseAttestationStatement( ead req.EncodedAttestationStatement) (req.DecodedAttestationStatement, error)
ParseAttestationStatement - parse the Attestation Certificate returned by the the authenticator
func ParseAuthData ¶
func ParseAuthData(ead req.EncodedAuthData) (req.DecodedAuthData, error)
ParseAuthData - Parses the AuthData returned from the authenticator from a byte array
func UnmarshallClientData ¶
func UnmarshallClientData(clientData string) (req.DecodedClientData, error)
UnmarshallClientData - Unmarshall the ClientDataJSON provided by the authenticator. It is Base 64 encoded before being sent up to the server, so we b6 decode it first.
func VerifyAssertionData ¶
func VerifyAssertionData( clientData *req.DecodedClientData, authData *req.DecodedAssertionData, sessionData *models.SessionData, credentialID string) (bool, models.Credential, error)
VerifyAssertionData - Verifies that the Assertion data provided is correct and valid
func VerifyRegistrationData ¶
func VerifyRegistrationData( clientData *req.DecodedClientData, authData *req.DecodedAuthData, sessionData *models.SessionData) (bool, error)
VerifyRegistrationData - Verify that the provided Authenticator and Client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.