rsax

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWithOAEP

func DecryptWithOAEP(s string, label []byte, key *rsa.PrivateKey, h hash.Hash) ([]byte, error)

func DecryptWithPKCS1v15

func DecryptWithPKCS1v15(data []byte, prikey *rsa.PrivateKey) (string, error)

func EncryptWithOAEP

func EncryptWithOAEP(src, label []byte, key *rsa.PublicKey, h hash.Hash) (string, error)

func EncryptWithPKCS1v15

func EncryptWithPKCS1v15(data []byte, pubkey *rsa.PublicKey) (string, error)

func ParsePKCS1PrivateKey

func ParsePKCS1PrivateKey(key string) (*rsa.PrivateKey, error)

func ParsePKCS1PublicKey

func ParsePKCS1PublicKey(key string) (*rsa.PublicKey, error)

func ParsePKCS8PrivateKey

func ParsePKCS8PrivateKey(key string) (*rsa.PrivateKey, error)

func ParsePKCS8PublicKey

func ParsePKCS8PublicKey(key string) (*rsa.PublicKey, error)

func SignWithPKCS1v15

func SignWithPKCS1v15(data []byte, prikey *rsa.PrivateKey, hash crypto.Hash) (string, error)

func SignWithPSS

func SignWithPSS(data []byte, prikey *rsa.PrivateKey, hash crypto.Hash) (string, error)

func VerifySignWithPKCS1v15

func VerifySignWithPKCS1v15(data, sign string, pubkey *rsa.PublicKey, hash crypto.Hash) error

func VerifySignWithPSS

func VerifySignWithPSS(data, sign string, pubkey *rsa.PublicKey, hash crypto.Hash) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL