rsa

package
v0.3.0 Latest Latest
Warning

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

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

README

<!-- 
  SPDX-FileCopyrightText: 2020 Google LLC
  SPDX-License-Identifier: Apache-2.0
-->

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