ebc_nopadding

package
v0.0.0-...-ce51046 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesCombine

func BytesCombine(pBytes ...[]byte) []byte

BytesCombine 多个[]byte数组合并成一个[]byte

func TestEncryptDecrypt

func TestEncryptDecrypt()

测试AES ECB 加密解密

func TestEncryptDecrypt_v2

func TestEncryptDecrypt_v2()

测试AES ECB 加密解密

func TestPadding

func TestPadding()

测试padding unpadding

Types

type AesTool

type AesTool struct {
	//128 192  256位的其中一个 长度 对应分别是 16 24  32字节长度
	Key       []byte
	BlockSize int
}

AES ECB模式的加密解密

func NewAesTool

func NewAesTool(key []byte, blockSize int) *AesTool

func (*AesTool) Decrypt

func (this *AesTool) Decrypt(src []byte) ([]byte, error)

func (*AesTool) Encrypt

func (this *AesTool) Encrypt(src []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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