insecurecrypto

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

Insecure Crypto

Go Reference Go

WARNING. Please do not use this package for anything other than explaining insecure cryptography.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPadding added in v0.1.5

func AddPadding(input []byte, blockSize byte) ([]byte, error)

Adds PKCS7 padding.

func Aes128CBCDecrypt

func Aes128CBCDecrypt(ct, key []byte) ([]byte, error)

func Aes128CBCEncrypt

func Aes128CBCEncrypt(pt, key, iv []byte) ([]byte, error)

func Aes128CBCPaddingOracle

func Aes128CBCPaddingOracle(ct, key []byte) (bool, error)

func Aes128CbcMacHash added in v0.1.5

func Aes128CbcMacHash(key, message []byte) ([]byte, error)

func Aes128ECBDecrypt

func Aes128ECBDecrypt(ct, key []byte) ([]byte, error)

func Aes128ECBEncrypt

func Aes128ECBEncrypt(pt, key []byte) ([]byte, error)

func RemovePadding added in v0.1.5

func RemovePadding(input []byte) ([]byte, error)

Removes PKCS7 padding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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