Documentation ¶
Index ¶
- type RSA
- func (s *RSA) GenerateKeyPair(bits int) *RSA
- func (s *RSA) InputFromBase64String(data string) *RSA
- func (s *RSA) InputFromBytes(data []byte) *RSA
- func (s *RSA) InputFromHexString(data string) *RSA
- func (s *RSA) InputFromString(data string) *RSA
- func (s *RSA) PrivateKeyFromPEM(data []byte) *RSA
- func (s *RSA) ToBase64String() (string, error)
- func (s *RSA) ToBytes() ([]byte, error)
- func (s *RSA) ToHexString() (string, error)
- func (s *RSA) ToString() (string, error)
- type Standard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RSA ¶
type RSA struct { PrivateKey *rsa.PrivateKey PublicKey *rsa.PublicKey Key []byte InputData []byte OutputData []byte Standard Standard Errors error }
func (*RSA) GenerateKeyPair ¶
GenerateKeyPair set public key and private key for RSA struct.
func (*RSA) InputFromBase64String ¶
InputFromBase64String set input data from base64 string.
func (*RSA) InputFromBytes ¶
InputFromBytes set input data from byte slice.
func (*RSA) InputFromHexString ¶
InputFromHexString set input data from hex string.
func (*RSA) InputFromString ¶
InputFromString set input data from string.
func (*RSA) PrivateKeyFromPEM ¶
PrivateKeyFromPEM gets private key from a PEM byte slice.
func (*RSA) ToBase64String ¶
ToBase64String output data with base64 string.
func (*RSA) ToHexString ¶
ToHexString output data with hex string.
Click to show internal directories.
Click to hide internal directories.