signingmgr

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 4 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 NewSigningManager

func NewSigningManager(cryptoProvider apicryptosuite.CryptoSuite, config apiconfig.Config) (*SigningManager, error)

NewSigningManager 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 apicryptosuite.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