Versions in this module Expand all Collapse all v1 v1.0.0 Dec 15, 2023 Changes in this version + const AlgorithmECDSAP256 + const AlgorithmECDSAP384 + const AlgorithmECDSAP521 + const AlgorithmED25519 + const AlgorithmRSA2048 + const AlgorithmRSA3072 + const AlgorithmRSA4096 + const ReferenceScheme + func ValidReference(ref string) error + type SignerVerifier struct + func LoadSignerVerifier(referenceStr string, hashFunc myhash.Hash, opts ...signature.RPCOption) (*SignerVerifier, error) + func (h *SignerVerifier) CryptoSigner(ctx context.Context, errFunc func(error)) (myhash.Signer, myhash.SignerOpts, error) + func (h *SignerVerifier) DefaultAlgorithm() string + func (h *SignerVerifier) SupportedAlgorithms() []string + func (h SignerVerifier) CreateKey(_ context.Context, algorithm string) (crypto.PublicKey, error) + func (h SignerVerifier) PublicKey(_ ...signature.PublicKeyOption) (crypto.PublicKey, error) + func (h SignerVerifier) SignMessage(message io.Reader, opts ...signature.SignOption) ([]byte, error) + func (h SignerVerifier) VerifySignature(sig, message io.Reader, opts ...signature.VerifyOption) error