-
Notifications
You must be signed in to change notification settings - Fork 113
API XMLSec MSCng KeysStore
API Group: xmlsec_mscng_keysstore
MsCng-specific key store implementation.
Keys store implementation for Microsoft Cryptography API: Next Generation (CNG).
Defined as: xmlSecMSCngKeysStoreGetKlass()
Source: include/xmlsec/mscng/keysstore.h
A MSCng keys store klass id.
xmlSecKeyStoreId xmlSecMSCngKeysStoreGetKlass(void);Source: include/xmlsec/mscng/keysstore.h
The MSCng list based keys store klass.
Returns: MSCng list based keys store klass.
int xmlSecMSCngKeysStoreAdoptKey(xmlSecKeyStorePtr store, xmlSecKeyPtr key);Source: include/xmlsec/mscng/keysstore.h
Adds key to the store.
Parameters:
-
store— the pointer to MSCng keys store. -
key— the pointer to key.
Returns: 0 on success or a negative value if an error occurs.
int xmlSecMSCngKeysStoreLoad(xmlSecKeyStorePtr store, const char *uri, xmlSecKeysMngrPtr keysMngr);Source: include/xmlsec/mscng/keysstore.h
Reads keys from an XML file.
Parameters:
-
store— the pointer to MSCng keys store. -
uri— the filename. -
keysMngr— the pointer to associated keys manager.
Returns: 0 on success or a negative value if an error occurs.
int xmlSecMSCngKeysStoreSave(xmlSecKeyStorePtr store, const char *filename, xmlSecKeyDataType type);Source: include/xmlsec/mscng/keysstore.h
Writes keys from store to an XML file.
Parameters:
-
store— the pointer to MSCng keys store. -
filename— the filename. -
type— the saved keys type (public, private, ...).
Returns: 0 on success or a negative value if an error occurs.