xcrypto

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(cipherText, key, iv []byte) ([]byte, error)

AesCBCDecrypt 解密

func AesCBCEncrypt

func AesCBCEncrypt(originText, key, iv []byte) ([]byte, error)

AesCBCEncrypt 加密

func AesCFBDecrypt

func AesCFBDecrypt(cipherText, key, iv []byte) ([]byte, error)

AesCFBDecrypt 解密

func AesCFBEncrypt

func AesCFBEncrypt(originText, key, iv []byte) ([]byte, error)

AesCFBEncrypt 加密

func AesCTRDecrypt

func AesCTRDecrypt(cipherText, key, iv []byte) ([]byte, error)

AesCTRDecrypt 解密

func AesCTREncrypt

func AesCTREncrypt(originText, key, iv []byte) ([]byte, error)

AesCTREncrypt 加密

func AesGCMDecrypt

func AesGCMDecrypt(cipherText, key, nonce []byte) ([]byte, error)

AesGCMDecrypt 解密

func AesGCMEncrypt

func AesGCMEncrypt(originText, key, nonce []byte) ([]byte, error)

AesGCMEncrypt 加密

func AesOFBDecrypt

func AesOFBDecrypt(cipherText, key, iv []byte) ([]byte, error)

AesOFBDecrypt 解密

func AesOFBDecryptStreamWriter

func AesOFBDecryptStreamWriter(cipherText, key, iv []byte) ([]byte, error)

AesOFBDecryptStreamWriter 解密

func AesOFBEncrypt

func AesOFBEncrypt(originText, key, iv []byte) ([]byte, error)

AesOFBEncrypt 加密

func AesOFBEncryptStreamReader

func AesOFBEncryptStreamReader(originText, key, iv []byte) ([]byte, error)

AesOFBEncryptStreamReader 加密

func BuildRSAPKCS1PrivateKey

func BuildRSAPKCS1PrivateKey(privateKey []byte) (*rsa.PrivateKey, error)

BuildRSAPKCS1PrivateKey build PrivateKey

func BuildRSAPKCS1PublicKey

func BuildRSAPKCS1PublicKey(publicKey []byte) (*rsa.PublicKey, error)

BuildRSAPKCS1PublicKey build PublicKey

func BuildRSAPrivateKey

func BuildRSAPrivateKey(privateKey []byte) (*rsa.PrivateKey, error)

BuildRSAPrivateKey build PrivateKey

func BuildRSAPublicKey

func BuildRSAPublicKey(publicKey []byte) (*rsa.PublicKey, error)

BuildRSAPublicKey build PublicKey

func DesCBCDecrypt

func DesCBCDecrypt(cipherText, key, iv []byte) ([]byte, error)

DesCBCDecrypt 解密

func DesCBCEncrypt

func DesCBCEncrypt(originText, key, iv []byte) ([]byte, error)

DesCBCEncrypt 加密

func DesCFBDecrypt

func DesCFBDecrypt(cipherText, key, iv []byte) ([]byte, error)

DesCFBDecrypt 解密

func DesCFBEncrypt

func DesCFBEncrypt(originText, key, iv []byte) ([]byte, error)

DesCFBEncrypt 加密

func DesCTRDecrypt

func DesCTRDecrypt(cipherText, key, iv []byte) ([]byte, error)

DesCTRDecrypt 解密

func DesCTREncrypt

func DesCTREncrypt(originText, key, iv []byte) ([]byte, error)

DesCTREncrypt 加密

func DesOFBDecrypt

func DesOFBDecrypt(cipherText, key, iv []byte) ([]byte, error)

DesOFBDecrypt 解密

func DesOFBDecryptStreamWriter

func DesOFBDecryptStreamWriter(cipherText, key, iv []byte) ([]byte, error)

DesOFBDecryptStreamWriter 解密

func DesOFBEncrypt

func DesOFBEncrypt(originText, key, iv []byte) ([]byte, error)

DesOFBEncrypt 加密

func DesOFBEncryptStreamReader

func DesOFBEncryptStreamReader(originText, key, iv []byte) ([]byte, error)

DesOFBEncryptStreamReader 加密

func RsaDecrypt

func RsaDecrypt(privateKey, cipherText []byte) ([]byte, error)

RsaDecrypt 解密

func RsaDecryptOAEP

func RsaDecryptOAEP(privateKey, cipherText, label []byte) ([]byte, error)

RsaDecryptOAEP 解密

func RsaEncrypt

func RsaEncrypt(publicKey, originText []byte) ([]byte, error)

RsaEncrypt 加密

func RsaEncryptOAEP

func RsaEncryptOAEP(publicKey, originText, label []byte) ([]byte, error)

RsaEncryptOAEP 加密

func RsaSign

func RsaSign(privateKey, originText []byte) ([]byte, error)

RsaSign 签名

func RsaSignPass

func RsaSignPass(privateKey, originText []byte, opts *rsa.PSSOptions) ([]byte, error)

RsaSignPass 签名

func RsaVerify

func RsaVerify(publicKey, originText, signature []byte) error

RsaVerify 验签

func RsaVerifyPass

func RsaVerifyPass(publicKey, originText, signature []byte, opts *rsa.PSSOptions) error

RsaVerifyPass 验签

Types

This section is empty.

Jump to

Keyboard shortcuts

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