Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RSADecrypt ¶
func RSADecrypt(privateKey *rsa.PrivateKey, ciphertext []byte) []byte
Types ¶
type CacheState ¶
type CacheState struct { // w RegisteredPassword string // F TypoCacheFrequency []int // M WaitListFrequency map[string]int // U TypoIndexPairs []TypoIndexPair }
CacheState represents the state of the cache
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker represents a typtop checker service...
func NewChecker ¶
func NewChecker(typtopConfig *config.TypTopChecker, typoFrequency map[string]int) (checker *Checker)
NewChecker initialises the Checker
type State ¶
type State struct { Publickey *rsa.PublicKey `json:"publicKey"` CipheredCacheState []byte `json:"cipheredCacheState"` TypoCache [][]byte `json:"typoCache"` WaitList [][]byte `json:"waitList"` Gamma int `json:"gamma"` }
State represents the server state in Chatterjee et al. typo correction paper
type TypoIndexPair ¶
type TypoIndexPair struct {
// contains filtered or unexported fields
}
TypoIndexPair represents a typo and the index of that typo in the typo cache
Click to show internal directories.
Click to hide internal directories.