types

package
v0.0.0-...-2e485aa Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 HTTPError

type HTTPError struct {
	Err  error
	Code int
}

func NewHTTPError

func NewHTTPError(code int, e error) *HTTPError

func (*HTTPError) Error

func (e *HTTPError) Error() string

func (*HTTPError) StatusCode

func (e *HTTPError) StatusCode() int

func (*HTTPError) ToEcho

func (e *HTTPError) ToEcho() *echo.HTTPError

func (*HTTPError) Unwrap

func (e *HTTPError) Unwrap() error

type OprfBlindedInput

type OprfBlindedInput [32]byte

type OprfBlindedResult

type OprfBlindedResult [32]byte

type OprfPrivateKey

type OprfPrivateKey [32]byte

type OprfProof

type OprfProof struct {
	C     [32]byte `cbor:"c"`
	BetaZ [32]byte `cbor:"beta_z"`
}

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 Policy

type Policy struct {
	NumGuesses uint16 `cbor:"num_guesses"`
}

type ProviderName

type ProviderName int
const (
	GCP ProviderName = iota
	AWS
	Mongo
	Memory
)

type ProviderOptions

type ProviderOptions struct {
	Config interface{}
}

type RealmID

type RealmID [16]byte

func (RealmID) String

func (id RealmID) String() string

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

Jump to

Keyboard shortcuts

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