Documentation
¶
Index ¶
- func DecryptWithOAEP(s string, label []byte, key *rsa.PrivateKey, h hash.Hash) ([]byte, error)
- func DecryptWithPKCS1v15(data []byte, prikey *rsa.PrivateKey) (string, error)
- func EncryptWithOAEP(src, label []byte, key *rsa.PublicKey, h hash.Hash) (string, error)
- func EncryptWithPKCS1v15(data []byte, pubkey *rsa.PublicKey) (string, error)
- func ParsePKCS1PrivateKey(key string) (*rsa.PrivateKey, error)
- func ParsePKCS1PublicKey(key string) (*rsa.PublicKey, error)
- func ParsePKCS8PrivateKey(key string) (*rsa.PrivateKey, error)
- func ParsePKCS8PublicKey(key string) (*rsa.PublicKey, error)
- func SignWithPKCS1v15(data []byte, prikey *rsa.PrivateKey, hash crypto.Hash) (string, error)
- func SignWithPSS(data []byte, prikey *rsa.PrivateKey, hash crypto.Hash) (string, error)
- func VerifySignWithPKCS1v15(data, sign string, pubkey *rsa.PublicKey, hash crypto.Hash) error
- func VerifySignWithPSS(data, sign string, pubkey *rsa.PublicKey, hash crypto.Hash) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithOAEP ¶
func DecryptWithPKCS1v15 ¶
func DecryptWithPKCS1v15(data []byte, prikey *rsa.PrivateKey) (string, error)
func EncryptWithOAEP ¶
func EncryptWithPKCS1v15 ¶
func ParsePKCS1PrivateKey ¶
func ParsePKCS1PrivateKey(key string) (*rsa.PrivateKey, error)
func ParsePKCS8PrivateKey ¶
func ParsePKCS8PrivateKey(key string) (*rsa.PrivateKey, error)
func SignWithPKCS1v15 ¶
func SignWithPSS ¶
func VerifySignWithPKCS1v15 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.