Documentation ¶ Index ¶ func New(pubKey, priKey string, signTyp ...cpt.Hash) *rsa type Ret func KeyPair(bits int) (pubPem, priPem *Ret, err error) func (r *Ret) Base64() string func (r *Ret) Byte() []byte func (r *Ret) Error() error func (r *Ret) Hex() string func (r *Ret) Result() ([]byte, error) func (r *Ret) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(pubKey, priKey string, signTyp ...cpt.Hash) *rsa Types ¶ type Ret ¶ type Ret struct { // contains filtered or unexported fields } func KeyPair ¶ func KeyPair(bits int) (pubPem, priPem *Ret, err error) 获取密钥对 func (*Ret) Base64 ¶ func (r *Ret) Base64() string func (*Ret) Byte ¶ func (r *Ret) Byte() []byte func (*Ret) Error ¶ func (r *Ret) Error() error func (*Ret) Hex ¶ func (r *Ret) Hex() string func (*Ret) Result ¶ func (r *Ret) Result() ([]byte, error) func (*Ret) String ¶ func (r *Ret) String() string Source Files ¶ View all Source files keys.gorsa.gostrc.go Click to show internal directories. Click to hide internal directories.