Documentation ¶
Index ¶
- func BuildRSAPKCS1PrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
- func BuildRSAPKCS1PublicKey(publicKey []byte) (*rsa.PublicKey, error)
- func BuildRSAPrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
- func BuildRSAPublicKey(publicKey []byte) (*rsa.PublicKey, error)
- func Decrypt(privateKey, cipherText []byte) ([]byte, error)
- func DecryptOAEP(privateKey, cipherText, label []byte) ([]byte, error)
- func Encrypt(publicKey, originText []byte) ([]byte, error)
- func EncryptOAEP(publicKey, originText, label []byte) ([]byte, error)
- func Sign(privateKey, originText []byte) ([]byte, error)
- func SignPass(privateKey, originText []byte, opts *rsa.PSSOptions) ([]byte, error)
- func Verify(publicKey, originText, signature []byte) error
- func VerifyPass(publicKey, originText, signature []byte, opts *rsa.PSSOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRSAPKCS1PrivateKey ¶
func BuildRSAPKCS1PrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
func BuildRSAPrivateKey ¶
func BuildRSAPrivateKey(privateKey []byte) (*rsa.PrivateKey, error)
func DecryptOAEP ¶
func EncryptOAEP ¶
func VerifyPass ¶
func VerifyPass(publicKey, originText, signature []byte, opts *rsa.PSSOptions) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.