Documentation ¶
Index ¶
- Constants
- func EncodeURIComponent(uriString string, isForPath bool, usePercentEncoding bool) (string, error)
- type Key
- func (k *Key) Certificate() (*x509.Certificate, error)
- func (k *Key) Close()
- func (k *Key) PublicKey(opts ...signature.PublicKeyOption) (crypto.PublicKey, error)
- func (k *Key) Sign(ctx context.Context, rawPayload []byte) ([]byte, []byte, error)
- func (k *Key) SignMessage(message io.Reader, opts ...signature.SignOption) ([]byte, error)
- func (k *Key) SignerVerifier() (signature.SignerVerifier, error)
- func (k *Key) Verifier() (signature.Verifier, error)
- func (k *Key) VerifySignature(signature, message io.Reader, opts ...signature.VerifyOption) error
- type Pkcs11UriConfig
Constants ¶
View Source
const (
ReferenceScheme = "pkcs11:"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Key ¶
type Key struct{}
func GetKeyWithURIConfig ¶
func GetKeyWithURIConfig(config *Pkcs11UriConfig, askForPinIfNeeded bool) (*Key, error)
func (*Key) Certificate ¶
func (k *Key) Certificate() (*x509.Certificate, error)
func (*Key) SignMessage ¶
func (*Key) SignerVerifier ¶
func (k *Key) SignerVerifier() (signature.SignerVerifier, error)
func (*Key) VerifySignature ¶
type Pkcs11UriConfig ¶
type Pkcs11UriConfig struct { ModulePath string SlotID *int TokenLabel string KeyLabel []byte KeyID []byte Pin string // contains filtered or unexported fields }
func NewPkcs11UriConfig ¶
func NewPkcs11UriConfig() *Pkcs11UriConfig
func (*Pkcs11UriConfig) Construct ¶
func (conf *Pkcs11UriConfig) Construct() (string, error)
func (*Pkcs11UriConfig) Parse ¶
func (conf *Pkcs11UriConfig) Parse(uriString string) error
Click to show internal directories.
Click to hide internal directories.