Versions in this module Expand all Collapse all v0 v0.0.0 Sep 23, 2018 Changes in this version + func Bench(t time.Duration) (iter int) + func Gen(p *passbuf.Password, iv *buf.Unsafe, iterations int) (C *buf.Fenced, IV *buf.Unsafe, err error) + type Cipher struct + func New(r ...*Cipher) *Cipher + func (r *Cipher) Arm() *Cipher + func (r *Cipher) Cipher() *buf.Unsafe + func (r *Cipher) Ciphertext() *buf.Fenced + func (r *Cipher) Decrypt(b *buf.Unsafe) *buf.Fenced + func (r *Cipher) Disarm() *Cipher + func (r *Cipher) Encrypt(lb *buf.Fenced) *buf.Unsafe + func (r *Cipher) Error() string + func (r *Cipher) Generate(p *passbuf.Password) *Cipher + func (r *Cipher) IV() *buf.Unsafe + func (r *Cipher) IsArmed() bool + func (r *Cipher) IsLoaded() bool + func (r *Cipher) IsUnlocked() bool + func (r *Cipher) Load(b *buf.Unsafe) *Cipher + func (r *Cipher) Lock() *Cipher + func (r *Cipher) MarshalJSON() ([]byte, error) + func (r *Cipher) Null() *Cipher + func (r *Cipher) Password() *passbuf.Password + func (r *Cipher) SetError(s string) *Cipher + func (r *Cipher) SetIV(b *buf.Unsafe) *Cipher + func (r *Cipher) SetRandomIV() *Cipher + func (r *Cipher) String() string + func (r *Cipher) Unlock(p *passbuf.Password) *Cipher + type Crypt interface + Arm func() Crypt + Ciphertext func() *buf.Fenced + Disarm func() Crypt + IV func() *buf.Unsafe + IsArmed func() bool + IsSecure func() bool + IsUnlocked func() bool + Lock func() Crypt + Password func() *passbuf.Password + Secure func(*buf.Fenced, *passbuf.Password, *buf.Unsafe) Crypt + SetIV func(b *buf.Unsafe) Crypt + SetRandomIV func() Crypt + Unlock func(p *passbuf.Password) Crypt + Unsecure func() Crypt