Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type CipherMode ¶
type CipherMode interface { Encrypt(plainText []byte, puk *rsa.PublicKey) ([]byte, error) Decrypt(cipherText []byte, prk *rsa.PrivateKey) ([]byte, error) }
func NewPKCS1v15Cipher ¶
func NewPKCS1v15Cipher() CipherMode
type Key ¶
type Key interface { PublicKey() *rsa.PublicKey PrivateKey() *rsa.PrivateKey Modulus() int }
func LoadKeyFromPEMFile ¶
func ParsePKCS1Key ¶
func ParsePKCS8Key ¶
Click to show internal directories.
Click to hide internal directories.