rsa

package
v0.0.0-...-91fa366 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0, BSD-3-Clause Imports: 5 Imported by: 0

README

This directory contains a fork of internal crypto/rsa logic to allow computation
of PSS padding.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EMSAPSSEncode

func EMSAPSSEncode(mHash []byte, pub *rsa.PublicKey, salt []byte, hash hash.Hash) ([]byte, error)

EMSAPSSEncode is extracted from SignPSS, and is used to generate a EM value for a PSS signature operation.

func NewSalt

func NewSalt(rand io.Reader, pub *rsa.PublicKey, hash crypto.Hash, opts *rsa.PSSOptions) ([]byte, error)

NewSalt is extracted from SignPSS and is used to generate a salt value for a PSS signature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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