Documentation
¶
Index ¶
Constants ¶
View Source
const DEKSize = 32
View Source
const MaxRefBinaryLen = cadata.IDSize + DEKSize
Variables ¶
This section is empty.
Functions ¶
func DeriveKey ¶
DeriveKey uses the blake2b XOF to fill out. The input to the XOF is additional and secret is used to key the XOF.
func DeriveStream ¶
DeriveStream returns a cryptographically secure psuedorandom stream derived from a high entropy secret, and arbitrary additional bytes.
func MarshalRef ¶
Types ¶
type DEK ¶
func Convergent ¶
Convergent generates a DEK depending only on ptextHash
type KeyFunc ¶
KeyFunc produces a key for a given blob
func SaltedConvergent ¶
SaltedConvergent uses salt to generate convergent keys for each blob.
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func NewOperator ¶
type Ref ¶
func (Ref) MarshalBinary ¶
func (Ref) MarshalText ¶
func (*Ref) UnmarshalBinary ¶
func (*Ref) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.