secure

package
v0.0.0-...-4c84c97 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCBlockSize

func AESCBCBlockSize() int

func AESCBCDecryptNoPadding

func AESCBCDecryptNoPadding(ciphertext []byte) ([]byte, error)

不是整的blocksize时内部会增加padding

func AESCBCDecryptSetIV

func AESCBCDecryptSetIV(iv []byte)

func AESCBCEncryptNoPadding

func AESCBCEncryptNoPadding(plaintext []byte) ([]byte, error)

内部不会增加padding字段。

func AESCBCEncryptSetIV

func AESCBCEncryptSetIV(iv []byte)

func InitAESCBC

func InitAESCBC(key []byte) error

Types

type AESCBCInterface

type AESCBCInterface interface {
	cipher.BlockMode
	SetIV([]byte)
}

Jump to

Keyboard shortcuts

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