pkclient_stub.go 577 B

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