Versions in this module Expand all Collapse all v0 v0.2.0 Nov 15, 2024 v0.1.0 Oct 6, 2024 Changes in this version + var ErrHashUnavailable = errors.New("rsa: requested hash function is unavailable") + type PKCSSigner struct + Rand io.Reader + func NewPKCSSigner(priv *rsa.PrivateKey, hash crypto.Hash) (*PKCSSigner, error) + func (s *PKCSSigner) Sign(message []byte) ([]byte, error) + type PKCSVerifier struct + func NewPKCSVerifier(pub *rsa.PublicKey, hash crypto.Hash) (*PKCSVerifier, error) + func (v *PKCSVerifier) Verify(message []byte, signature []byte) (bool, error) + type PSSSigner struct + Rand io.Reader + func NewPSSSigner(priv *rsa.PrivateKey, opts *rsa.PSSOptions) (*PSSSigner, error) + func (s *PSSSigner) Sign(message []byte) ([]byte, error) + type PSSVerifier struct + func NewPSSVerifier(pub *rsa.PublicKey, opts *rsa.PSSOptions) (*PSSVerifier, error) + func (v *PSSVerifier) Verify(message []byte, signature []byte) (bool, error)