rsa

package
v0.0.0-...-375d9ab Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:23 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptOAEP

func DecryptOAEP(hash hash.Hash, random io.Reader, priv *rsa.PrivateKey, ciphertext []byte, label []byte) ([]byte, error)

func EncryptOAEP

func EncryptOAEP(hash hash.Hash, random io.Reader, pub *rsa.PublicKey, msg []byte, label []byte) ([]byte, error)

func GenerateKey

func GenerateKey(random io.Reader, bits int) (*rsa.PrivateKey, error)

func GenerateMultiPrimeKey

func GenerateMultiPrimeKey(random io.Reader, nprimes int, bits int) (*rsa.PrivateKey, error)

func PSSOptionsHashFunc

func PSSOptionsHashFunc(pssOpts *rsa.PSSOptions) crypto.Hash

func PrivateKeyDecrypt

func PrivateKeyDecrypt(priv *rsa.PrivateKey, rand io.Reader, ciphertext []byte, opts crypto.DecrypterOpts) ([]byte, error)

func PrivateKeyPublic

func PrivateKeyPublic(priv *rsa.PrivateKey) crypto.PublicKey

func PrivateKeySign

func PrivateKeySign(priv *rsa.PrivateKey, rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)

func PrivateKeyValidate

func PrivateKeyValidate(priv *rsa.PrivateKey) error

func PublicKeySize

func PublicKeySize(pub *rsa.PublicKey) int

func SignPSS

func SignPSS(rand io.Reader, priv *rsa.PrivateKey, hash crypto.Hash, hashed []byte, opts *rsa.PSSOptions) ([]byte, error)

func VerifyPSS

func VerifyPSS(pub *rsa.PublicKey, hash crypto.Hash, hashed []byte, sig []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