mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 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 BCCSP

type BCCSP struct {
	mock.Mock
}

func (*BCCSP) Decrypt

func (m *BCCSP) Decrypt(k bccsp.Key, ciphertext []byte, opts bccsp.DecrypterOpts) (plaintext []byte, err error)

func (*BCCSP) Encrypt

func (m *BCCSP) Encrypt(k bccsp.Key, plaintext []byte, opts bccsp.EncrypterOpts) (ciphertext []byte, err error)

func (*BCCSP) GetHash

func (m *BCCSP) GetHash(opts bccsp.HashOpts) (h hash.Hash, err error)

func (*BCCSP) GetKey

func (m *BCCSP) GetKey(ski []byte) (bccsp.Key, error)

func (*BCCSP) Hash

func (m *BCCSP) Hash(msg []byte, opts bccsp.HashOpts) (hash []byte, err error)

func (*BCCSP) KeyDeriv

func (m *BCCSP) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (dk bccsp.Key, err error)

func (*BCCSP) KeyGen

func (m *BCCSP) KeyGen(opts bccsp.KeyGenOpts) (k bccsp.Key, err error)

func (*BCCSP) KeyImport

func (m *BCCSP) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error)

func (*BCCSP) Sign

func (m *BCCSP) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error)

func (*BCCSP) Verify

func (m *BCCSP) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (valid bool, err error)

type Key

type Key struct{}

func (*Key) Bytes

func (t *Key) Bytes() ([]byte, error)

func (*Key) Private

func (t *Key) Private() bool

func (*Key) PublicKey

func (t *Key) PublicKey() (bccsp.Key, error)

func (*Key) SKI

func (t *Key) SKI() []byte

func (*Key) Symmetric

func (t *Key) Symmetric() bool

Jump to

Keyboard shortcuts

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