Debian Codegraph @

pkclient/pkclient_stub.go

raw
1 //go:build !cgo || !pkcs11
2
3 package pkclient
4
5 import "errors"
6
7 type PKClient struct {
8 }
9
10 var notImplemented = errors.New("not implemented")
11
12 func New(hsmPath string, slotId uint, pin string, id string, label string) (*PKClient, error) {
13 return nil, notImplemented
14 }
15
16 func (c *PKClient) Close() error {
17 return nil
18 }
19
20 func (c *PKClient) SignASN1(data []byte) ([]byte, error) {
21 return nil, notImplemented
22 }
23
24 func (c *PKClient) DeriveNoise(_ []byte) ([]byte, error) {
25 return nil, notImplemented
26 }
27
28 func (c *PKClient) GetPubKey() ([]byte, error) {
29 return nil, notImplemented
30 }