Documentation
¶
Overview ¶
Package alg_rsa provides signers and verifiers rsa-pss-sha512 and rsa-v1_5-sha256.
Index ¶
Constants ¶
View Source
const RSASSA_PKCS1_1_5_SHA256 = `rsa-v1_5-sha256`
View Source
const RSASSA_PSS_SHA512 = `rsa-pss-sha512`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RSAPKCS256 ¶
type RSAPKCS256 struct {
PrivateKey *rsa.PrivateKey
PublicKey *rsa.PublicKey
Attrs any
}
func NewRSAPKCS256Signer ¶
func NewRSAPKCS256Signer(key *rsa.PrivateKey) *RSAPKCS256
NewRSAPKCS256Signer returns a signing algorithm based on the provided rsa private key.
func NewRSAPKCS256Verifier ¶
func NewRSAPKCS256Verifier(key *rsa.PublicKey) *RSAPKCS256
NewRSAPKCS256Verifier returns a verification algorithm based on the provided rsa public key.
func (RSAPKCS256) Attributes ¶
func (a RSAPKCS256) Attributes() any
Attributes returns server-side attributes associated with the key.
func (RSAPKCS256) ContentDigest ¶
func (a RSAPKCS256) ContentDigest() contentdigest.Digester
func (RSAPKCS256) Type ¶
func (a RSAPKCS256) Type() string
type RSAPSS512 ¶
type RSAPSS512 struct {
PrivateKey *rsa.PrivateKey
PublicKey *rsa.PublicKey
Attrs any
}
func NewRSAPSS512Signer ¶
func NewRSAPSS512Signer(key *rsa.PrivateKey) *RSAPSS512
NewRSAPSS512Signer returns a signing algorithm based on the provided rsa private key.
func NewRSAPSS512Verifier ¶
NewRSAPSS512Verifier returns a verification algorithm based on the provided rsa public key.
func (RSAPSS512) Attributes ¶
Attributes returns server-side attributes associated with the key.
func (RSAPSS512) ContentDigest ¶
func (a RSAPSS512) ContentDigest() contentdigest.Digester
Click to show internal directories.
Click to hide internal directories.