rsa

package
v0.0.0-...-bd860cc Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PS256Verifier

type PS256Verifier struct{}

PS256Verifier verifies a rsa signature taking RSA public key bytes as input.

func NewPS256

func NewPS256() *PS256Verifier

NewPS256 creates a new PS256Verifier.

func (*PS256Verifier) SupportedKeyType

func (sv *PS256Verifier) SupportedKeyType(keyType kms.KeyType) bool

SupportedKeyType checks if verifier supports given key.

func (*PS256Verifier) Verify

func (sv *PS256Verifier) Verify(signature, msg []byte, key *pubkey.PublicKey) error

Verify verifies the signature.

type RS256Verifier

type RS256Verifier struct {
}

RS256Verifier verifies a rsa signature taking RSA public key bytes as input.

func NewRS256

func NewRS256() *RS256Verifier

NewRS256 creates a new RS256Verifier.

func (*RS256Verifier) SupportedKeyType

func (sv *RS256Verifier) SupportedKeyType(keyType kms.KeyType) bool

SupportedKeyType checks if verifier supports given key.

func (*RS256Verifier) Verify

func (sv *RS256Verifier) Verify(signature, msg []byte, key *pubkey.PublicKey) error

Verify verifies the signature.

Jump to

Keyboard shortcuts

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