Open dhui opened 7 years ago
PepperGrinder
Encrypt(dest, plaintext []byte) ([]byte, error)
Decrypt(dest, ciphertext []byte) ([]byte, error)
PepperGrinderAesGcm
Key []byte
nonce []byte
Peppers []PepperGrinder
Config
PepperVersion int
Credential
Config.Peppers
PepperGrinder
interface with methods:Encrypt(dest, plaintext []byte) ([]byte, error)
Decrypt(dest, ciphertext []byte) ([]byte, error)
PepperGrinderAesGcm
struct with fields:Key []byte
nonce []byte
- e.g. IVPeppers []PepperGrinder
field toConfig
structPepperVersion int
field toCredential
struct - index toConfig.Peppers