Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultEncryptionBits = 2048
)
Variables ¶
This section is empty.
Functions ¶
func BytesToPrivateKey ¶
func BytesToPrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
func PrivateKeyToBytes ¶
func PrivateKeyToBytes(priv *rsa.PrivateKey) []byte
Types ¶
type RSA ¶
type RSA struct {
Bits int
}
func NewRSAHandler ¶
func (*RSA) DecryptWithPrivateKey ¶
func (*RSA) EncryptWithPublicKey ¶
Click to show internal directories.
Click to hide internal directories.