package
1.4.3
Repository: https://github.com/hduhelp/go-zero.git
Documentation: pkg.go.dev

# Functions

ComputeKey returns a key from public key and private key.
EcbDecrypt decrypts src with the given key.
EcbDecryptBase64 decrypts base64 encoded src with the given base64 encoded key.
EcbEncrypt encrypts src with the given key.
EcbEncryptBase64 encrypts base64 encoded src with the given base64 encoded key.
GenerateKey returns a Diffie Hellman key.
Gunzip uncompresses bs.
Gzip compresses bs.
Hmac returns HMAC bytes for body with the given key.
HmacBase64 returns the base64 encoded string of HMAC for body with the given key.
NewECBDecrypter returns an ECB decrypter.
NewECBEncrypter returns an ECB encrypter.
NewPublicKey returns a public key from the given bytes.
NewRsaDecrypter returns a RsaDecrypter with the given file.
NewRsaEncrypter returns a RsaEncrypter with the given key.

# Variables

ErrInvalidPriKey indicates the invalid private key.
ErrInvalidPubKey indicates the invalid public key.
ErrNotRsaKey indicates the invalid RSA key.
ErrPaddingSize indicates bad padding size.
ErrPrivateKey indicates the invalid private key.
ErrPubKeyOutOfBound indicates the public key is out of bound.
ErrPublicKey indicates the invalid public key.

# Structs

DhKey defines the Diffie Hellman key.

# Interfaces

No description provided by the author
No description provided by the author