aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc/security/parc_KeyStore.h
diff options
context:
space:
mode:
authorDevel <acompagn+fdio@cisco.com>2018-04-12 18:07:08 +0200
committerDevel <acompagn+fdio@cisco.com>2018-04-12 18:07:08 +0200
commit75a923f0ee362a039b51a141a719ce50597ca233 (patch)
treedf1b4e1d70db7fada07861dab3eb42c12edb70cb /libparc/parc/security/parc_KeyStore.h
parentabf52b860efb2cc0a247ab498cc962851e72c1ee (diff)
Added signature calculation and verification for ECDSA
Change-Id: I946e146b9a6ae33ee294a09417e8366853faa502 Signed-off-by: Devel <acompagn+fdio@cisco.com>
Diffstat (limited to 'libparc/parc/security/parc_KeyStore.h')
-rwxr-xr-xlibparc/parc/security/parc_KeyStore.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/libparc/parc/security/parc_KeyStore.h b/libparc/parc/security/parc_KeyStore.h
index 03be78af..253505d5 100755
--- a/libparc/parc/security/parc_KeyStore.h
+++ b/libparc/parc/security/parc_KeyStore.h
@@ -30,6 +30,7 @@
#include <parc/algol/parc_Object.h>
#include <parc/algol/parc_Buffer.h>
#include <parc/security/parc_CryptoHash.h>
+#include <parc/security/parc_SigningAlgorithm.h>
struct parc_key_store;
typedef struct parc_key_store PARCKeyStore;
@@ -105,6 +106,15 @@ typedef PARCBuffer *(PARCKeyStoreGetDEREncodedPublicKey)(const void *interfaceCo
*/
typedef PARCBuffer *(PARCKeyStoreGetDEREncodedPrivateKey)(const void *interfaceContext);
+/**
+ * Returns the signing algorithm from the key type store in the keystore
+ *
+ *
+ * @param [in] interfaceContextPtr A pointer to a concrete PARCKeyStore instance.
+ *
+ * @return A pointer to a PARCBuffer containing the encoded private key.
+ */
+typedef PARCSigningAlgorithm (PARCKeyStoreGetSigningAlgorithm)(const void *interfaceContext);
typedef struct parc_keystore_interface {
/**
@@ -177,6 +187,16 @@ typedef struct parc_keystore_interface {
* @return A pointer to a PARCBuffer containing the encoded private key.
*/
PARCKeyStoreGetDEREncodedPrivateKey *getDEREncodedPrivateKey;
+
+ /**
+ * Returns the signing algorithm from the key type store in the keystore
+ *
+ *
+ * @param [in] interfaceContextPtr A pointer to a concrete PARCKeyStore instance.
+ *
+ * @return A pointer to a PARCBuffer containing the encoded private key.
+ */
+ PARCKeyStoreGetSigningAlgorithm *getSigningAlgorithm;
} PARCKeyStoreInterface;
/**
@@ -345,4 +365,14 @@ PARCBuffer *parcKeyStore_GetDEREncodedPublicKey(const PARCKeyStore *interfaceCon
* @endcode
*/
PARCBuffer *parcKeyStore_GetDEREncodedPrivateKey(const PARCKeyStore *interfaceContext);
+
+/**
+ * Returns the signing algorithm from the key type store in the keystore
+ *
+ *
+ * @param [in] interfaceContextPtr A pointer to a concrete PARCKeyStore instance.
+ *
+ * @return A pointer to a PARCBuffer containing the encoded private key.
+ */
+PARCSigningAlgorithm parcKeyStore_getSigningAlgorithm(const PARCKeyStore *interfaceContext);
#endif // libparc_parc_KeyStore_h