iv

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL