autograph: Index | Files

package rsapss

import ""


Package Files



const (
    // Type of this signer is "rsapss"
    Type = "rsapss"

func Unmarshal Uses

func Unmarshal(sigstr string) (signer.Signature, error)

Unmarshal decodes a base64 signature string into a Signature

func VerifySignature Uses

func VerifySignature(pubKey *rsa.PublicKey, digest, sigBytes []byte) error

VerifySignature verifies a rsapss signature for the given SHA1 digest for the given RSA public and signature bytes

func VerifySignatureFromB64 Uses

func VerifySignatureFromB64(b64Digest, b64Signature, b64PubKey string) error

VerifySignatureFromB64 verifies a signature from base64 encoded digest, signature, and public key as autograph returns from its API used in the client and monitor

type Options Uses

type Options struct {

Options are not implemented for this signer

type RSAPSSSigner Uses

type RSAPSSSigner struct {
    // contains filtered or unexported fields

RSAPSSSigner holds the configuration of the signer

func New Uses

func New(conf signer.Configuration) (s *RSAPSSSigner, err error)

New initializes a rsapss signer using a configuration

func (*RSAPSSSigner) Config Uses

func (s *RSAPSSSigner) Config() signer.Configuration

Config returns the configuration of the current signer

func (*RSAPSSSigner) GetDefaultOptions Uses

func (s *RSAPSSSigner) GetDefaultOptions() interface{}

GetDefaultOptions returns default options of the signer

func (*RSAPSSSigner) SignData Uses

func (s *RSAPSSSigner) SignData(data []byte, options interface{}) (signer.Signature, error)

SignData takes data, hashes it and returns a signed base64 encoded hash

func (*RSAPSSSigner) SignHash Uses

func (s *RSAPSSSigner) SignHash(digest []byte, options interface{}) (signer.Signature, error)

SignHash takes an input hash and returns a signed base64 encoded hash

type Signature Uses

type Signature struct {
    Data []byte

Signature is a rsapss signature

func (*Signature) Marshal Uses

func (sig *Signature) Marshal() (string, error)

Marshal returns the base64 representation of a signature

Package rsapss imports 9 packages (graph) and is imported by 2 packages. Updated 2019-09-20. Refresh now. Tools for package owners.