Versions in this module Expand all Collapse all v0 v0.1.1 Oct 31, 2026 v0.1.0 Oct 31, 2026 Changes in this version + type Cipher struct + func NewCipher(cipherFunc func([]byte) (cipher.Block, error), key []byte) (*Cipher, error) + func (c *Cipher) Decrypt(plaintext, ciphertext []byte, sectorNum uint64) + func (c *Cipher) Encrypt(ciphertext, plaintext []byte, sectorNum uint64)