Documentation
¶
Index ¶
- Constants
- type AuthKeyAlgorithm
- type AuthKeyDataEncoding
- type AuthKeyJSON
- type EncryptedSecret
- type EncryptedSecretCommitment
- type EncryptionKeyScalarShare
- type HTTPError
- type OprfBlindedInput
- type OprfBlindedResult
- type OprfPrivateKey
- type OprfProof
- type OprfPublicKey
- type OprfSignedPublicKey
- type Policy
- type ProviderName
- type ProviderOptions
- type RealmID
- type RegistrationVersion
- type UnlockKeyCommitment
- type UnlockKeyTag
Constants ¶
View Source
const JuiceboxRealmDatabasePrefix string = "jb-sw-realm-"
View Source
const JuiceboxTenantSecretPrefix string = "jb-sw-tenant-"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthKeyAlgorithm ¶
type AuthKeyAlgorithm string
const ( /// RSASSA-PKCS1-v1_5 using SHA-256 RS256 AuthKeyAlgorithm = "RsaPkcs1Sha256" /// HMAC using SHA-256 HS256 AuthKeyAlgorithm = "HmacSha256" /// Edwards-curve 25519 Digital Signature Algorithm EdDSA AuthKeyAlgorithm = "Edwards25519" )
func (AuthKeyAlgorithm) Matches ¶
func (aka AuthKeyAlgorithm) Matches(alg string) bool
type AuthKeyDataEncoding ¶
type AuthKeyDataEncoding string
const ( Hex AuthKeyDataEncoding = "Hex" UTF8 AuthKeyDataEncoding = "UTF8" )
type AuthKeyJSON ¶
type AuthKeyJSON struct { Data string `json:"data"` Encoding AuthKeyDataEncoding `json:"encoding"` Algorithm AuthKeyAlgorithm `json:"algorithm"` }
type EncryptedSecret ¶
type EncryptedSecret [145]byte
type EncryptedSecretCommitment ¶
type EncryptedSecretCommitment [16]byte
type EncryptionKeyScalarShare ¶
type EncryptionKeyScalarShare [32]byte
type OprfBlindedInput ¶
type OprfBlindedInput [32]byte
type OprfBlindedResult ¶
type OprfBlindedResult [32]byte
type OprfPrivateKey ¶
type OprfPrivateKey [32]byte
type OprfPublicKey ¶
type OprfPublicKey [32]byte
type OprfSignedPublicKey ¶
type OprfSignedPublicKey struct { PublicKey OprfPublicKey `cbor:"public_key"` VerifyingKey [32]byte `cbor:"verifying_key"` Signature [64]byte `cbor:"signature"` }
type ProviderOptions ¶
type ProviderOptions struct {
Config interface{}
}
type RegistrationVersion ¶
type RegistrationVersion [16]byte
type UnlockKeyCommitment ¶
type UnlockKeyCommitment [32]byte
type UnlockKeyTag ¶
type UnlockKeyTag [16]byte
func (UnlockKeyTag) ConstantTimeCompare ¶
func (x UnlockKeyTag) ConstantTimeCompare(y UnlockKeyTag) int
Click to show internal directories.
Click to hide internal directories.