aes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecode

func AesDecode(cipherText []byte, encryptionKey []byte, iv []byte) (plaintext []byte, err error)

func AesEncode

func AesEncode(plaintext []byte, encryptionKey []byte, iv []byte) ([]byte, error)

AesEncode AES/CBC/PKCS5Padding

func PKCS5Padding

func PKCS5Padding(cipherText []byte) []byte

PKCS5Padding pkcs5作为pkcs7的子集算法,概念上没有什么区别,只是在blockSize上固定为 8 bytes

func PKCS7Padding

func PKCS7Padding(cipherText []byte, blockSize int) []byte

PKCS7Padding [PKCS7 / PKCS5 填充算法](https://segmentfault.com/a/1190000019793040) PKCS7Padding [三种填充模式的区别(PKCS7Padding/PKCS5Padding/ZeroPadding)](https://blog.csdn.net/xiongya8888/article/details/84947232)

func PKCS7UnPadding

func PKCS7UnPadding(plantText []byte) []byte

PKCS7UnPadding PKCS7 和 PKCS5 去重填充是一个规则

Types

This section is empty.

Jump to

Keyboard shortcuts

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