extra

package
v0.0.0-...-55de54f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRSAPKCS1PrivateKey

func BuildRSAPKCS1PrivateKey(privateKey []byte) (*rsa.PrivateKey, error)

func BuildRSAPKCS1PublicKey

func BuildRSAPKCS1PublicKey(publicKey []byte) (*rsa.PublicKey, error)

func BuildRSAPrivateKey

func BuildRSAPrivateKey(privateKey []byte) (*rsa.PrivateKey, error)

func BuildRSAPublicKey

func BuildRSAPublicKey(publicKey []byte) (*rsa.PublicKey, error)

func Decrypt

func Decrypt(privateKey, cipherText []byte) ([]byte, error)

func DecryptOAEP

func DecryptOAEP(privateKey, cipherText, label []byte) ([]byte, error)

func Encrypt

func Encrypt(publicKey, originText []byte) ([]byte, error)

func EncryptOAEP

func EncryptOAEP(publicKey, originText, label []byte) ([]byte, error)

func Sign

func Sign(privateKey, originText []byte) ([]byte, error)

func SignPass

func SignPass(privateKey, originText []byte, opts *rsa.PSSOptions) ([]byte, error)

func Verify

func Verify(publicKey, originText, signature []byte) error

func VerifyPass

func VerifyPass(publicKey, originText, signature []byte, opts *rsa.PSSOptions) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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