signingmgr

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SigningManager

type SigningManager struct {
	// contains filtered or unexported fields
}

SigningManager is used for signing objects with private key

func New

func New(cryptoProvider core.CryptoSuite) (*SigningManager, error)

New Constructor for a signing manager. @param {BCCSP} cryptoProvider - crypto provider @param {Config} config - configuration provider @returns {SigningManager} new signing manager

func (*SigningManager) Sign

func (mgr *SigningManager) Sign(object []byte, key core.Key) ([]byte, error)

Sign will sign the given object using provided key

Jump to

Keyboard shortcuts

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