Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pkcs11 ¶
type Pkcs11 interface { GenerateXpriv( ctx context.Context, seedByteLength uint, seedLabel, xprivLabel string, canExport bool, ) error ImportXprivFromSeed( ctx context.Context, seed []byte, xprivLabel string, canExport bool, ) error ImportXpriv( ctx context.Context, xpriv string, xprivLabel string, canExport bool, ) error ExportXpriv( ctx context.Context, xprivLabel string, ) (xpriv string, err error) FindKeyByLabel( ctx context.Context, xprivLabel string, ) error SignByDeriveKey( ctx context.Context, xprivLabel string, path string, message []byte, ) (signature []byte, err error) GetPublicKeyByDeriveKey( ctx context.Context, xprivLabel string, path string, ) (publicKey []byte, err error) VerifyByDeriveKey( ctx context.Context, xprivLabel string, path string, message []byte, signature []byte, ) (err error) DeriveKeysByLabel( ctx context.Context, xprivLabel string, basePath string, count uint32, ) error }
Click to show internal directories.
Click to hide internal directories.