Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeDecode ¶
func TestKeyStore ¶ added in v2.2.0
func TestKeyStore(t *testing.T, factory func(t *testing.T) KeyStoreTester)
TestKeyStore executes the complete encid.KeyStore test suite against the KeyStoreTester produced by factory.
Types ¶
type KeyStore ¶
type KeyStore struct {
NumTypes, Ver int
}
func (KeyStore) DecoderByID ¶
func (KeyStore) EncoderByType ¶
type KeyStoreTester ¶ added in v2.2.0
type KeyStoreTester interface {
encid.KeyStore
NewKey(ctx context.Context, typ, keysize int) (int64, error)
}
KeyStoreTester is implemented by keystore implementations or fixtures that can be tested with TestKeyStore.
Click to show internal directories.
Click to hide internal directories.