Documentation ¶
Index ¶
- func Decrypt(source, priKey []byte) ([]byte, error)
- func Encrypt(source, pubKey []byte) ([]byte, error)
- func FileLoad(path string) (data []byte, err error)
- type Crypto
- func (t *Crypto) GetDecrypt(sourceByte []byte) (tragetByte []byte, err error)
- func (t *Crypto) GetEncrypt(sourceByte []byte) (tragetByte []byte, err error)
- func (t *Crypto) GetPKCS1PriKey(priPEMData []byte) (err error)
- func (t *Crypto) GetPKIXPubKey(pubPEMData []byte) (err error)
- func (t *Crypto) LoadPKCS1PriKey(path string) (err error)
- func (t *Crypto) LoadPKIXPubKey(path string) (err error)
- func (t *Crypto) PriLoad() bool
- func (t *Crypto) PubLoad() bool
- type Gcm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
func (*Crypto) GetDecrypt ¶
func (*Crypto) GetEncrypt ¶
func (*Crypto) GetPKCS1PriKey ¶
func (*Crypto) GetPKIXPubKey ¶
func (*Crypto) LoadPKCS1PriKey ¶
func (*Crypto) LoadPKIXPubKey ¶
Click to show internal directories.
Click to hide internal directories.