Documentation ¶
Index ¶
- func GenRsaKey(bits int) error
- func GetFileContent(certFile string) (data []byte, err error)
- func GetPrivateKey(keyData []byte) (priv *rsa.PrivateKey, err error)
- func GetPublicKey(certData []byte) (pub *rsa.PublicKey, err error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRsaKey ¶
GenRsaKey return generate public and public key file
func GetFileContent ¶
GetFileContent return file content from filepath
func GetPrivateKey ¶
func GetPrivateKey(keyData []byte) (priv *rsa.PrivateKey, err error)
GetPrivateKey return private key
func GetPublicKey ¶
GetPublicKey return public key
func PKCS5Padding ¶
PKCS5Padding return padding data
func PKCS5UnPadding ¶
PKCS5UnPadding return unpadding data
func ZeroPadding ¶
ZeroPadding return padding data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.