ecb

package
v0.0.0-...-6fab2fb Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ecb implements the electronic codebook (ECB) block cipher mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindCiphertext

func FindCiphertext(cts [][]byte) []byte

FindCiphertext finds the first ciphertext likely to be ECB-encrypted. If none of the ciphertexts are candidates, it returns nil.

func NewDecrypter

func NewDecrypter(b cipher.Block) cipher.BlockMode

NewDecrypter returns a cipher.BlockMode which decrypts in electronic codebook mode, using the given cipher.Block.

func NewEncrypter

func NewEncrypter(b cipher.Block) cipher.BlockMode

NewEncrypter returns a cipher.BlockMode which encrypts in electronic codebook mode, using the given cipher.Block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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