Documentation ¶
Index ¶
- func AesCryptCTR(plainText []byte, key []byte) (dst []byte, err error)
- func AesDecryptCBC(encrypted []byte, key []byte) (decrypted []byte, err error)
- func AesDecryptCFB(encrypted []byte, key []byte) (decrypted []byte, err error)
- func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte, err error)
- func AesDecryptOFB(encrypted []byte, key []byte) (decrypted []byte, err error)
- func AesEncryptCBC(origData []byte, key []byte) (encrypted []byte, err error)
- func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte, err error)
- func AesEncryptECB(origData []byte, key []byte) (encrypted []byte, err error)
- func AesEncryptOFB(origData []byte, key []byte) (encrypted []byte, err error)
- func GenRSAPrivateKey(bits int) (key *rsa.PrivateKey, err error)
- func GetRSAKey(bits int) (privateKey, publicKey string, err error)
- func GetRSAPrivateKey(key *rsa.PrivateKey) (privateKey []byte, err error)
- func GetRSAPublicKey(key *rsa.PrivateKey) (publicKey []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRSAPrivateKey ¶
func GenRSAPrivateKey(bits int) (key *rsa.PrivateKey, err error)
func GetRSAPrivateKey ¶
func GetRSAPrivateKey(key *rsa.PrivateKey) (privateKey []byte, err error)
func GetRSAPublicKey ¶
func GetRSAPublicKey(key *rsa.PrivateKey) (publicKey []byte, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.