Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNonce ¶
func Sha1Digest ¶
func Sha256Digest ¶
Types ¶
type AES256IGECryptor ¶
type AES256IGECryptor struct {
// contains filtered or unexported fields
}
func NewAES256IGECryptor ¶
func NewAES256IGECryptor(aesKey, aesIV []byte) *AES256IGECryptor
type AesCTR128Encrypt ¶
type AesCTR128Encrypt struct {
// contains filtered or unexported fields
}
func NewAesCTR128Encrypt ¶
func NewAesCTR128Encrypt(key []byte, iv []byte) (*AesCTR128Encrypt, error)
key长度必须为16、24或32
func (*AesCTR128Encrypt) Encrypt ¶
func (this *AesCTR128Encrypt) Encrypt(plaintext []byte) []byte
type AesCTR128KeySizeError ¶
type AesCTR128KeySizeError int
func (AesCTR128KeySizeError) Error ¶
func (k AesCTR128KeySizeError) Error() string
type RSACryptor ¶
type RSACryptor struct {
// contains filtered or unexported fields
}
func (*RSACryptor) Decrypt ¶
func (m *RSACryptor) Decrypt(b []byte) []byte
func (*RSACryptor) Encrypt ¶
func (m *RSACryptor) Encrypt(b []byte) []byte
Click to show internal directories.
Click to hide internal directories.