Versions in this module Expand all Collapse all v0 v0.1.0 Jan 24, 2026 Changes in this version + const Base64Alphabet + const DEKSize + const RefSize + func AppendRef(out []byte, x Ref) []byte + func Copy(ctx context.Context, src stores.Reading, dst stores.Writing, ref *Ref) error + func DeriveKey(out []byte, secret *[32]byte, additional []byte) + func DeriveStream(secret *[32]byte, additional []byte) io.Reader + func Equal(a, b Ref) bool + func Hash(x []byte) blobcache.CID + type DEK [DEKSize]byte + func Convergent(ptextHash blobcache.CID) DEK + func (*DEK) String() string + func (dek *DEK) UnmarshalText(data []byte) error + func (dek DEK) MarshalText() ([]byte, error) + type KeyFunc func(ptextHash blobcache.CID) DEK + func SaltedConvergent(salt *[32]byte) KeyFunc + type Machine struct + func NewMachine(opts ...Option) *Machine + func (a *Machine) GetF(ctx context.Context, s stores.Reading, ref Ref, fn func(data []byte) error) error + func (a *Machine) Post(ctx context.Context, s stores.Writing, data []byte) (*Ref, error) + func (a *Machine) Read(ctx context.Context, s stores.Reading, ref Ref, buf []byte) (int, error) + type Option = func(*Machine) + func WithCacheSize(n int) Option + func WithSalt(salt *[32]byte) Option + type Ref struct + CID blobcache.CID + DEK DEK + func ParseRef(x []byte) (ret Ref, _ error) + func (r *Ref) Marshal() []byte + func (r *Ref) Unmarshal(data []byte) error + func (r *Ref) UnmarshalText(data []byte) error + func (r Ref) IsZero() bool + func (r Ref) MarshalBinary() ([]byte, error) + func (r Ref) MarshalText() ([]byte, error) + func (r Ref) String() string + func (ref *Ref) UnmarshalBinary(x []byte) error