cipher

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCCM

func NewCCM(cipher stdCipher.Block) (stdCipher.AEAD, error)

func NewCCMWithNonceAndTagSize

func NewCCMWithNonceAndTagSize(cipher stdCipher.Block, nonceSize, tagSize int) (stdCipher.AEAD, error)

func NewCCMWithNonceSize

func NewCCMWithNonceSize(cipher stdCipher.Block, size int) (stdCipher.AEAD, error)

func NewCCMWithTagSize

func NewCCMWithTagSize(cipher stdCipher.Block, tagSize int) (stdCipher.AEAD, error)

func NewECBDecryptor

func NewECBDecryptor(b goCipher.Block) goCipher.BlockMode

func NewECBEncryptor

func NewECBEncryptor(b goCipher.Block) goCipher.BlockMode

Types

type Creator

type Creator func([]byte) (stdCipher.Block, error)

type XTSBlockMode

type XTSBlockMode interface {
	BlockSize() int
	Encrypt(dst, src []byte, sectorNum uint64)
	Decrypt(dst, src []byte, sectorNum uint64)
}

func NewXTS

func NewXTS(cipherFunc Creator, key []byte) (XTSBlockMode, error)

Jump to

Keyboard shortcuts

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