Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IHSMAdapter ¶
type IHSMAdapter interface {
// for PKCS11
PKCS11_GetSM2KeyId(keyIdex int, isPrivate bool) (string, error)
PKCS11_GetRSAKeyId(keyIdex int, isPrivate bool) (string, error)
PKCS11_GetECCKeyId(keyIdex int, isPrivate bool) (string, error)
PKCS11_GetSM4KeyId(keyIdex int) (string, error)
PKCS11_GetAESKeyId(keyIdex int) (string, error)
PKCS11_GetSM3SM2CKM() uint
// For SDF
SDF_GetSM2KeyAccessRight(keyIdex int) (newKeyIdex int, need bool)
SDF_GetSM4KeyAccessRight(keyIdex int) (newKeyIdex int, need bool)
SDF_GetRSAKeyAccessRight(keyIdex int) (newKeyIdex int, need bool)
SDF_GetAESKeyAccessRight(keyIdex int) (newKeyIdex int, need bool)
}
func GetHSMAdapter ¶
func GetHSMAdapter(pluginPath string) IHSMAdapter
func Load ¶
func Load(pluginPath string) (IHSMAdapter, error)
Source Files
¶
- dummy.go
- hsm_adapter.go
- plugin.go
Click to show internal directories.
Click to hide internal directories.