boojum

package
v0.0.0-...-7bb13b1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const I_LOCATION = 1031 * 281 // location of xor'ed i
View Source
const MAX_LENGTH_BYTES = 1024
View Source
const RANDOM_SPACE_LENGTH = 1024 * 2048
View Source
const R_LOCATION = 1031 * 1279 // location of first to hash
View Source
const S_LOCATION = 1031 * 1987 // location of second to hash

Variables

This section is empty.

Functions

This section is empty.

Types

type Boojum

type Boojum interface {
	Set([]byte) error
	Get() ([]byte, error)
	Cleanup() error
}

func CreateNaiveBoojum

func CreateNaiveBoojum(f ErrorHandler) Boojum

func Init

func Init(f ErrorHandler) Boojum

type ErrorHandler

type ErrorHandler func(error)

type NaiveBoojum

type NaiveBoojum struct {
	// contains filtered or unexported fields
}

func (*NaiveBoojum) Cleanup

func (b *NaiveBoojum) Cleanup() error

func (*NaiveBoojum) Get

func (b *NaiveBoojum) Get() ([]byte, error)

func (*NaiveBoojum) Set

func (b *NaiveBoojum) Set(ba []byte) error

Jump to

Keyboard shortcuts

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