Documentation
¶
Index ¶
- Constants
- func SignDataLocal(signatureData []byte, base64PrivateKey string) ([]byte, error)
- type Assertions
- type AuthenticatorSignAssertion
- func NewFidoAuthenticationSignedAssertions(aaid string, pubKeyBas64Encoded string, privKeyBase64Encoded string, ...) (*AuthenticatorSignAssertion, error)
- func NewFidoRegistrationSignedAssertions(aaid string, signatureSignedData string, pubKeyBas64Encoded string, ...) (*AuthenticatorSignAssertion, error)
- type ECDSASignature
- type FidoAuthenticationResponse
- type FidoAuthenticationResponseBuilder
- type FidoAuthenticationSignedAssertionsBuilder
- type FidoRegistrationResponse
- type FidoRegistrationResponseBuilder
- type FidoRegistrationSignedAssertionsBuilder
- type FidoResponseEntry
- type FidoUafTlvObject
- func (t *FidoUafTlvObject) GetByteArray() []byte
- func (t *FidoUafTlvObject) PutInt16(value int16) *FidoUafTlvObject
- func (t *FidoUafTlvObject) PutInt32(value int32) *FidoUafTlvObject
- func (t *FidoUafTlvObject) PutInt8(value int8) *FidoUafTlvObject
- func (t *FidoUafTlvObject) PutInt8Array(value []byte) *FidoUafTlvObject
- type FinalChallengeParams
- type Header
- type K6Fido
- func (k6fido *K6Fido) GenerateAuthenticationResponse(aaid string, uafRequest string, trustedFacetId string, ...) (string, error)
- func (k6fido *K6Fido) GenerateKeyPair() (string, string, error)
- func (k6fido *K6Fido) GenerateRegistrationResponse(aaid string, uafRequest string, trustedFacetId string, ...) (string, error)
- func (k6fido *K6Fido) SignData(signatureData string, base64PrivateKey string) (string, error)
- type MatchCriteria
- type Operation
- type Policy
- type RegRequestEntry
- type ReturnUafRequest
- type SendUafResponse
- type SignedAssertionsBuilder
- type Transaction
- type UafStatusCode
- type Upv
Constants ¶
View Source
const ( OK = 1200 ACCEPTED = 1202 )
View Source
const ( Reg = iota Auth Dereg )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assertions ¶
type Assertions struct {
// contains filtered or unexported fields
}
type AuthenticatorSignAssertion ¶
type AuthenticatorSignAssertion struct { Assertion string `json:"assertion"` AssertionScheme string `json:"assertionScheme"` }
type ECDSASignature ¶
Conventional format of the ECDSA signature
type FidoAuthenticationResponse ¶
type FidoAuthenticationResponse struct {
// contains filtered or unexported fields
}
type FidoAuthenticationSignedAssertionsBuilder ¶
type FidoAuthenticationSignedAssertionsBuilder struct {
// contains filtered or unexported fields
}
func (*FidoAuthenticationSignedAssertionsBuilder) Build ¶
func (fra *FidoAuthenticationSignedAssertionsBuilder) Build(privKeyStr string, pubKeyStr string, keyId string) (*AuthenticatorSignAssertion, error)
type FidoRegistrationResponse ¶
type FidoRegistrationResponse struct {
// contains filtered or unexported fields
}
type FidoRegistrationSignedAssertionsBuilder ¶
type FidoRegistrationSignedAssertionsBuilder struct {
// contains filtered or unexported fields
}
func (*FidoRegistrationSignedAssertionsBuilder) Build ¶
func (fra *FidoRegistrationSignedAssertionsBuilder) Build(privKeyStr string, pubKeyStr string, keyId string) (*AuthenticatorSignAssertion, error)
type FidoResponseEntry ¶
type FidoResponseEntry struct { Header Header `json:"header"` Assertions []AuthenticatorSignAssertion `json:"assertions"` Base64FcParams string `json:"fcParams"` }
type FidoUafTlvObject ¶
type FidoUafTlvObject struct {
// contains filtered or unexported fields
}
func NewFidoUafTlvObject ¶
func NewFidoUafTlvObject(tag int16, value []byte) *FidoUafTlvObject
func NewFidoUafTlvObjectFromArray ¶
func NewFidoUafTlvObjectFromArray(tag int16, values ...*FidoUafTlvObject) *FidoUafTlvObject
func NewFidoUafTlvObjectWithSize ¶
func NewFidoUafTlvObjectWithSize(tag int16, contentSize int16) *FidoUafTlvObject
func (*FidoUafTlvObject) GetByteArray ¶
func (t *FidoUafTlvObject) GetByteArray() []byte
func (*FidoUafTlvObject) PutInt16 ¶
func (t *FidoUafTlvObject) PutInt16(value int16) *FidoUafTlvObject
func (*FidoUafTlvObject) PutInt32 ¶
func (t *FidoUafTlvObject) PutInt32(value int32) *FidoUafTlvObject
func (*FidoUafTlvObject) PutInt8 ¶
func (t *FidoUafTlvObject) PutInt8(value int8) *FidoUafTlvObject
func (*FidoUafTlvObject) PutInt8Array ¶
func (t *FidoUafTlvObject) PutInt8Array(value []byte) *FidoUafTlvObject
type FinalChallengeParams ¶
type K6Fido ¶
type K6Fido struct { }
func (*K6Fido) GenerateAuthenticationResponse ¶
func (k6fido *K6Fido) GenerateAuthenticationResponse(aaid string, uafRequest string, trustedFacetId string, overriddenSignature string, signatureSignData string, privKey string, pubKey string, username string, keyId string) (string, error)
Externally visible: Generates Fido Authentication Response
func (*K6Fido) GenerateKeyPair ¶
Externally visible: Generates an ECDSA DER formatted key pair
func (*K6Fido) GenerateRegistrationResponse ¶
func (k6fido *K6Fido) GenerateRegistrationResponse(aaid string, uafRequest string, trustedFacetId string, overriddenSignature string, signatureSignData string, privKey string, pubKey string, keyId string) (string, error)
Externally visible: Generates Fido Registration Response
type MatchCriteria ¶
type Operation ¶
type Operation int
Operation An enum used to define FIDO operation which a user requests
type Policy ¶
type Policy struct {
Accepted [][]MatchCriteria `json:"accepted"`
}
type RegRequestEntry ¶
type RegRequestEntry struct { Header Header `json:"header"` Challenge string `json:"challenge"` Username string `json:"username"` Policy Policy `json:"policy"` Transaction []Transaction `json:"transaction"` }
type ReturnUafRequest ¶
type ReturnUafRequest struct { StatusCode UafStatusCode `json:"statusCode"` UafRequest string `json:"uafRequest"` Op Operation `json:"op"` LifetimeMillis int64 `json:"lifetimeMillis"` }
func NewFidoAuthenticationReturnUafRequest ¶
func NewFidoAuthenticationReturnUafRequest(uafRequest string) *ReturnUafRequest
func NewFidoRegistrationReturnUafRequest ¶
func NewFidoRegistrationReturnUafRequest(uafRequest string) *ReturnUafRequest
type SendUafResponse ¶
type SignedAssertionsBuilder ¶
type SignedAssertionsBuilder interface {
Build(string, string) (*AuthenticatorSignAssertion, error)
}
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.