crypto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package crypto provides ...

Package crypto provides ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDecrypt

func AESCBCDecrypt(crypted, key []byte) ([]byte, error)

AESCBCDecrypt decrypt cipher

func AESCBCEncrypt

func AESCBCEncrypt(plaintext, key []byte) ([]byte, error)

AESCBCEncrypt AES-128。key长度:16, 24, 32 bytes 对应 AES-128, AES-192, AES-256

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

PKCS5Padding pkcs5 padding

func PKCS5Unpadding

func PKCS5Unpadding(origData []byte) []byte

PKCS5Unpadding pkcs5 unpadding

func PKCS7Padding

func PKCS7Padding(data []byte) []byte

PKCS7Padding pkcs7 padding

func PKCS7Unpadding

func PKCS7Unpadding(data []byte) []byte

PKCS7Unpadding pkcs7 unpadding

func ZeroPadding

func ZeroPadding(ciphertext []byte, blockSize int) []byte

ZeroPadding padding with zero

func ZeroUnpadding

func ZeroUnpadding(origData []byte) []byte

ZeroUnpadding unpadding zero

Types

This section is empty.

Jump to

Keyboard shortcuts

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