Versions in this module Expand all Collapse all v0 v0.0.16 Aug 7, 2022 v0.0.15 Mar 25, 2022 v0.0.14 Mar 25, 2022 v0.0.13 Mar 25, 2022 Changes in this version type Universe + func UniformOfPrimes(N int64) *Universe v0.0.12 Mar 25, 2022 Changes in this version type DirectoryGraph + func (e DirectoryGraph) Flatten() []*FileNode + func (e DirectoryGraph) Open() []*os.File type Universe + func Uniform(N int64) *Universe + func UniformByExp(N, S int64) *Universe + func UniformByPow(N, S int64) *Universe + func (u *Universe) Sample() *Set v0.0.9 Sep 23, 2021 Changes in this version type Set + func (s *Set) Split() (*Set, *Set) + func (set *Set) Flipflop() *Set v0.0.7 Sep 16, 2021 Changes in this version + const Library + func R(n int) *big.Int + func Rb() uint + func Ri(n *big.Int) *big.Int type Bit + func AbsEq(x, y *big.Int) Bit type Set + func Sf(b int, raw []byte) *Set + func (s *Set) Bitsize() int + func (s *Set) Buffer() *bytes.Buffer + func (s *Set) Bytesize() int + func (s *Set) Expand(to []byte) []byte + func (s *Set) LShift() *Set + func (s *Set) Out() + func (s *Set) Permutate() *Universe + func (s *Set) PermutateBy(n uint) *Universe + func (s *Set) Permute(bit int) (*Set, *Set, *Set) + func (s *Set) RShift() *Set + func (s *Set) Set(buff []byte) *Set + func (s *Set) String() string + func (s *Set) Sum() *Set + func (s *Set) T(t Transform) *Set + func (s *Set) Write(f *os.File) (int, error) + func (s *Set) WriteAs(base int, f *os.File) (int, error) type Universe + func UniformRange(n, N int64) *Universe + func (u *Universe) Expand() *Universe + func (u *Universe) Push(set *Set) *Universe v0.0.6 Sep 8, 2021 Changes in this version + const Application + const BitFlagAlias0 + const BitFlagAlias1 + const BitFlagAlias2 + const BitFlagAlias3 + const BitFlagShort + const BitFlagUse + const One + const Probility + const Zero + var ErrExcessInput = errors.New("invalid: Excess") + var ErrFutureTimestamp = errors.New("invalid: Timestamp in the future") + var ErrInvalidHeader = errors.New("invalid: PEM Header") + var ErrMismatchedVersion = errors.New("invalid: Mismatched Version") + var ErrNotPEMEncoded = errors.New("invalid: Not PEM Encoded") + var ErrServerPublicKey = errors.New("client: could not get serverkey") + var ErrUnknownHash = errors.New("invalid: Unknown Hash Type") + var ErrUnknownHeader = errors.New("invalid: Unknown Header Type") + var Major string + var Minor string + var Release string + var Version string + func Any(b ...bool) bool + func Context(purpose string) string + func Counter(arr []byte) (map[byte]int, map[int]byte, int) + func DecodeBase64(arr []byte) chan []byte + func DecodeHex(src []byte) chan []byte + func DeriveCA(sk ed25519.PrivateKey, req *x509.CertificateRequest, parent *x509.Certificate) (*x509.Certificate, error) + func Empty(arr []byte) chan []byte + func EncodeBase64(arr []byte) chan []byte + func EncodeHex(src []byte) chan []byte + func Even(i uint64) uint64 + func Expand(k []byte, toSize int) []byte + func F_ALL(s *Set) bool + func F_LSB0(s *Set) bool + func F_MSB0(s *Set) bool + func FmtLetsEncrypt(domain string) (string, string) + func Freq(arr []byte) map[byte]int + func GetMajor() int + func GetMinor() int + func Ham(t0, t1 []byte) int + func Max(x, y int) int + func MaxEq(x, y int) int + func MaxR() []byte + func Min(x, y int) int + func MinEq(x, y int) int + func NewCName(commonName string) pkix.Name + func NewCsr(sk ed25519.PrivateKey, name pkix.Name) (*x509.CertificateRequest, error) + func NewEndEntityCert(sk ed25519.PrivateKey, req *x509.CertificateRequest, parent *x509.Certificate) (*x509.Certificate, error) + func NewName(commonName, country, org string) pkix.Name + func Nor(err error) bool + func Outln(ifces ...interface{}) error + func Outlnh(ifces ...interface{}) error + func Outlnp(ifces ...interface{}) error + func ParseURI(u *url.URL) map[string]string + func PemDecodeCRL(rawPemBytes []byte) (*pkix.CertificateList, error) + func PemDecodeCRT(rawCRT []byte) (*x509.Certificate, error) + func PemDecodeCSR(rawCSR []byte) (*x509.CertificateRequest, error) + func PemEncodeCRL(rawCRL []byte) []byte + func PemEncodeCRT(rawCRT []byte) []byte + func PemEncodeCSR(rawCSR []byte) []byte + func RandXor(a *big.Int, b uint64) *big.Int + func RedirectServer() *http.Server + func Rp(s int) *big.Int + func Rpb(s int) []byte + func SelfSignedCA(sk ed25519.PrivateKey, req *x509.CertificateRequest) (*x509.Certificate, error) + func Sock(at string, with []byte) error + func Split(k []byte, p int) ([][]byte, int) + func Sum(x []byte) int + func ToBase(raw []byte, base int) []byte + func TransformRange(value, xMin, xMax, nMin, nMax float64) float64 + func Xor(x, y *big.Int) *big.Int + func XorK(x []byte, k byte) []byte + func XorY(x, y []byte) []byte + type Alg struct + func Establish(t, n string) *Alg + type Bit uint8 + type Bitflag uint8 + func New(u uint8) *Bitflag + func (fg *Bitflag) IsOn() bool + func (fg *Bitflag) Toggle() *Bitflag + type DirectoryGraph struct + Node *ring.Ring + func NewDirectoryGraph(root string) DirectoryGraph + func NewGraphRing(roots ...string) DirectoryGraph + func (e DirectoryGraph) FilterFor(exts ...FileExtension) ExtToFileNode + func (e DirectoryGraph) InvertByExt() ExtToFileNode + func (e DirectoryGraph) OpenAll(exts ...FileExtension) []*os.File + type EncodingSet [2]Transform + type ExtToFileNode map[FileExtension][]FileNode + func FindKeys(filepaths ...string) ExtToFileNode + func InitExtMap(exts ...FileExtension) ExtToFileNode + func (e ExtToFileNode) Add(ext FileExtension) ExtToFileNode + func (e ExtToFileNode) Exists(ext FileExtension) bool + func (e ExtToFileNode) Flatten() []FileNode + func (e ExtToFileNode) OpenAll() []*os.File + type FileExtension string + const EXT_AGE + const EXT_C + const EXT_CERT + const EXT_CRT + const EXT_CSR + const EXT_CSV + const EXT_GIF + const EXT_GO + const EXT_JPEG + const EXT_JPG + const EXT_JS + const EXT_JSON + const EXT_MD + const EXT_MOV + const EXT_NOEXT + const EXT_PEM + const EXT_PNG + const EXT_PY + const EXT_SH + const EXT_TXT + const EXT_WAV + type FileNode struct + Dir fs.DirEntry + Ext FileExtension + Path string + Sys SysInfo + TarHeader *tar.Header + type FlagToEncodingSet map[string]EncodingSet + func GenEncSet() FlagToEncodingSet + func (set FlagToEncodingSet) GetOrDefault(flag string) (Transform, Transform) + type LClient struct + API string + PublicKey *age.X25519Recipient + ServerKey *age.X25519Recipient + User string + func NewClient(api, user string, key *age.X25519Identity) (*LClient, error) + func NewClientFromFile(api, user string, f *os.File) (*LClient, error) + func NewClientFromPath(api, user, path string) (*LClient, error) + func (c *LClient) Decrypt(dst, src *bytes.Buffer) (*bytes.Buffer, error) + func (c *LClient) Encrypt(dst, src *bytes.Buffer) (*bytes.Buffer, error) + func (c *LClient) FmtRequest(endpoint ValidEndpoint, args ...string) *bytes.Buffer + func (c *LClient) Get(key string) ([]byte, error) + func (c *LClient) GetKey() ([]byte, error) + func (c *LClient) GetServerKey() (*age.X25519Recipient, error) + func (c *LClient) Home() ([]byte, error) + func (c *LClient) Set(key, val string) ([]byte, error) + func (c *LClient) SetKey() ([]byte, error) + type Linker struct + ID *age.X25519Identity + RC *redis.Client + S *http.Server + SM map[string]func(rw http.ResponseWriter, r *http.Request) + func NewLinker(domain string, keypath string) (*Linker, error) + func (l *Linker) AddRoute(route string, f func(rw http.ResponseWriter, r *http.Request)) + func (l *Linker) Kill() error + func (l *Linker) Serve(cert, key string) error + type Mode string + const DEBUG + func (m Mode) Is(mode Mode) bool + type Set struct + P float64 + V *big.Int + func S(i *big.Int) *Set + func Sb(raw []byte) *Set + func Si(i int) *Set + func Ss(s string) *Set + func (s *Set) Bytes() []byte + func (s *Set) Clear() *Set + func (s *Set) Gt(set *Set) bool + func (s *Set) Ham(set *Set) *Set + func (s *Set) Lt(set *Set) bool + func (s *Set) MaxEq(set *Set) *Set + func (s *Set) MinEq(set *Set) *Set + func (s *Set) Reader() *bytes.Reader + func (s *Set) Scanner() *bufio.Scanner + func (s *Set) Weight() *Set + func (s *Set) Xor(set *Set) *Set + func (set *Set) Base(base int) []byte + func (set *Set) Eq(x *Set) bool + func (set *Set) Lsb() Bit + func (set *Set) Lsbs(last uint) []Bit + func (set *Set) Msb() Bit + func (set *Set) Msbs(last uint) []Bit + type SysInfo struct + Atim Tsec + Blksize int + Blocks int + Ctim Tsec + Dev int + Gid int + Ino int + Mode int + Mtim Tsec + Nlink int + Rdev int + Size int + Uid int + X__pad0 int + X__unused [3]int + type Transform func([]byte) chan []byte + type Tsec struct + Nsec int + Sec int + type Universe struct + func DecodePEM(raw []byte) (*Universe, error) + func DecodePEMFile(path string) (*Universe, error) + func PointDistribution(bits int) *Universe + func UniformDistribution(N int64) *Universe + func UniformDistributionRp(N int64, Z int) *Universe + func UniformFrom(bytes ...[]byte) *Universe + func UniformOver(sets ...*Set) *Universe + func (u *Universe) Add(y *Set) *Universe + func (u *Universe) Apply(t func(*Set, *Set) *Set, z *Set) *Universe + func (u *Universe) Bdp() int + func (u *Universe) Collect() map[string]int + func (u *Universe) Div(y *Set) *Universe + func (u *Universe) EncodePEM() []byte + func (u *Universe) Factorial() *Set + func (u *Universe) Filter(f func(s *Set) bool) *Universe + func (u *Universe) Headers() map[string]string + func (u *Universe) Insert(set *Set) *Universe + func (u *Universe) Intersection(U *Universe) *Universe + func (u *Universe) Inverse(f func(s *Set) bool) *Universe + func (u *Universe) Join(together ...*Universe) *Universe + func (u *Universe) Mul(y *Set) *Universe + func (u *Universe) P() float64 + func (u *Universe) Size() int + func (u *Universe) SizeF() float64 + func (u *Universe) Slice(f func(s *Set) bool) (*Universe, *Universe) + func (u *Universe) Sqrt() float64 + func (u *Universe) Sum() *Set + func (u *Universe) Union(U *Universe) *Universe + func (u *Universe) Write(f *os.File, base int) + func (u *Universe) WritePEM(f *os.File) (int, error) + func (u *Universe) Xor(y *Set) *Universe + type ValidEndpoint string + const GET_KEY + const HOME + const SET_KEY