trsa

package
v0.0.0-...-6a56cfb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptOAEP

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

func DecryptPKCS1v15

func DecryptPKCS1v15(t testing.TB, rand io.Reader, priv *rsa.PrivateKey, ciphertext []byte) []byte

func DecryptPKCS1v15SessionKey

func DecryptPKCS1v15SessionKey(t testing.TB, rand io.Reader, priv *rsa.PrivateKey, ciphertext []byte, key []byte)

func EncryptOAEP

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

func EncryptPKCS1v15

func EncryptPKCS1v15(t testing.TB, rand io.Reader, pub *rsa.PublicKey, msg []byte) []byte

func GenerateKey

func GenerateKey(t testing.TB, random io.Reader, bits int) *rsa.PrivateKey

func GenerateMultiPrimeKey

func GenerateMultiPrimeKey(t testing.TB, random io.Reader, nprimes int, bits int) *rsa.PrivateKey

func SignPKCS1v15

func SignPKCS1v15(t testing.TB, rand io.Reader, priv *rsa.PrivateKey, hash crypto.Hash, hashed []byte) []byte

func SignPSS

func SignPSS(t testing.TB, rand io.Reader, priv *rsa.PrivateKey, hash crypto.Hash, digest []byte, opts *rsa.PSSOptions) []byte

func VerifyPKCS1v15

func VerifyPKCS1v15(t testing.TB, pub *rsa.PublicKey, hash crypto.Hash, hashed []byte, sig []byte)

func VerifyPSS

func VerifyPSS(t testing.TB, pub *rsa.PublicKey, hash crypto.Hash, digest []byte, sig []byte, opts *rsa.PSSOptions)

Types

This section is empty.

Jump to

Keyboard shortcuts

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