Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RsaKey ¶
type RsaKey struct { // Rsa private key PrivateKey *rsa.PrivateKey // Rsa private key PrivateKeyBytes []byte // Rsa public key PublicKey *RsaPublicKey }
func NewRsaPrivateKey ¶
type RsaPublicKey ¶
type RsaPublicKey struct { // Rsa public key RsaPublicKey *rsa.PublicKey // Rsa public key RsaPublicKeyBytes []byte }
func NewRsaPublicKey ¶
func NewRsaPublicKey(bs []byte) (*RsaPublicKey, error)
func (*RsaPublicKey) RsaEncrypt ¶
func (ks *RsaPublicKey) RsaEncrypt(origData []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.