Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { GenerateIv(lengthBytes int) ([]byte, error) IncludeIvInEncryption() bool }
Generator Initialization Vector for security, it can contribute to encrypt the same plaintext produces different ciphertext each time
type RandomIvGenerator ¶
type RandomIvGenerator struct { }
func (RandomIvGenerator) GenerateIv ¶
func (g RandomIvGenerator) GenerateIv(lengthBytes int) ([]byte, error)
func (RandomIvGenerator) IncludeIvInEncryption ¶
func (g RandomIvGenerator) IncludeIvInEncryption() bool
Click to show internal directories.
Click to hide internal directories.