Versions in this module Expand all Collapse all v1 v1.0.2 Apr 12, 2022 Changes in this version + type ContextHandle struct + func LoadContextAndLogin(lib, pin, label string) (*ContextHandle, error) + func LoadPKCS11ContextHandle(lib, label, pin string, opts ...Options) (*ContextHandle, error) + func ReloadPKCS11ContextHandle(lib, label, pin string, opts ...Options) (*ContextHandle, error) + func (handle *ContextHandle) CloseSession(session mPkcs11.SessionHandle) error + func (handle *ContextHandle) CopyObject(sh mPkcs11.SessionHandle, o mPkcs11.ObjectHandle, temp []*mPkcs11.Attribute) (mPkcs11.ObjectHandle, error) + func (handle *ContextHandle) CreateObject(session mPkcs11.SessionHandle, temp []*mPkcs11.Attribute) (mPkcs11.ObjectHandle, error) + func (handle *ContextHandle) Decrypt(session mPkcs11.SessionHandle, cypher []byte) ([]byte, error) + func (handle *ContextHandle) DecryptInit(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, o mPkcs11.ObjectHandle) error + func (handle *ContextHandle) DestroyObject(sh mPkcs11.SessionHandle, oh mPkcs11.ObjectHandle) error + func (handle *ContextHandle) Encrypt(session mPkcs11.SessionHandle, message []byte) ([]byte, error) + func (handle *ContextHandle) EncryptInit(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, o mPkcs11.ObjectHandle) error + func (handle *ContextHandle) FindKeyPairFromSKI(session mPkcs11.SessionHandle, ski []byte, keyType bool) (*mPkcs11.ObjectHandle, error) + func (handle *ContextHandle) FindObjects(session mPkcs11.SessionHandle, max int) ([]mPkcs11.ObjectHandle, bool, error) + func (handle *ContextHandle) FindObjectsFinal(session mPkcs11.SessionHandle) error + func (handle *ContextHandle) FindObjectsInit(session mPkcs11.SessionHandle, temp []*mPkcs11.Attribute) error + func (handle *ContextHandle) GenerateKey(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, ...) (mPkcs11.ObjectHandle, error) + func (handle *ContextHandle) GenerateKeyPair(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, ...) (mPkcs11.ObjectHandle, mPkcs11.ObjectHandle, error) + func (handle *ContextHandle) GetAttributeValue(session mPkcs11.SessionHandle, objectHandle mPkcs11.ObjectHandle, ...) ([]*mPkcs11.Attribute, error) + func (handle *ContextHandle) GetSession() (session mPkcs11.SessionHandle) + func (handle *ContextHandle) Login(session mPkcs11.SessionHandle) error + func (handle *ContextHandle) NotifyCtxReload(ch chan struct{}) + func (handle *ContextHandle) OpenSession() (mPkcs11.SessionHandle, error) + func (handle *ContextHandle) ReturnSession(session mPkcs11.SessionHandle) + func (handle *ContextHandle) SetAttributeValue(session mPkcs11.SessionHandle, objectHandle mPkcs11.ObjectHandle, ...) error + func (handle *ContextHandle) Sign(session mPkcs11.SessionHandle, message []byte) ([]byte, error) + func (handle *ContextHandle) SignInit(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, o mPkcs11.ObjectHandle) error + func (handle *ContextHandle) Verify(session mPkcs11.SessionHandle, data []byte, signature []byte) error + func (handle *ContextHandle) VerifyInit(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, ...) error + type Options func(opts *ctxOpts) + func WithConnectionName(name string) Options + func WithOpenSessionRetry(count int) Options + func WithSessionCacheSize(size int) Options v1.0.0-alpha5 Mar 27, 2019