Documentation ¶
Index ¶
- func Decode(cipherText []byte, k *rsa.PrivateKey) ([]byte, error)
- func Encode(plainText []byte, k *rsa.PublicKey) ([]byte, error)
- func LoadFile(filename string) (*rsa.PrivateKey, error)
- func LoadPubKey(data []byte) (*rsa.PublicKey, error)
- func PubSha1(key *rsa.PrivateKey) string
- func RandKey() (*rsa.PrivateKey, error)
- func SaveFile(filePrefix string, key *rsa.PrivateKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PubSha1 ¶
func PubSha1(key *rsa.PrivateKey) string
func RandKey ¶
func RandKey() (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.