Versions in this module Expand all Collapse all v1 v1.0.0 Mar 12, 2025 Changes in this version + func NewKeyPair(bits int) (*PrivateKey, *PublicKey, error) + func NewKeyPair1024() (*PrivateKey, *PublicKey, error) + func NewKeyPair2048() (*PrivateKey, *PublicKey, error) + func NewKeyPair4096() (*PrivateKey, *PublicKey, error) + type PrivateKey struct + RawKey *rsa.PrivateKey + func NewPrivateFromPEM(pemStr string) (*PrivateKey, error) + func (k *PrivateKey) BitsSize() int + func (k *PrivateKey) BytesSize() int + func (k *PrivateKey) PEM() string + func (k *PrivateKey) Public() *PublicKey + type PublicKey struct + RawKey *rsa.PublicKey + func NewPublicFromPEM(pemStr string) (*PublicKey, error) + func (k *PublicKey) BitsSize() int + func (k *PublicKey) BytesSize() int + func (k *PublicKey) PEM() string