summaryrefslogtreecommitdiff
path: root/ckcapi.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-04 18:59:50 +0000
committerStef Walter <stef@memberwebs.com>2008-12-04 18:59:50 +0000
commitd611032e1e5b4e2261625ee924071e9713320837 (patch)
tree66683785a16c02975b675017f460eb9ed14e799d /ckcapi.h
parentb00eb56b7ffe5019bb33ad399d351b90f4715132 (diff)
Implement RSA Sign and Decrypt operations. Not tested.
Diffstat (limited to 'ckcapi.h')
-rw-r--r--ckcapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ckcapi.h b/ckcapi.h
index 18f304f..54929bc 100644
--- a/ckcapi.h
+++ b/ckcapi.h
@@ -91,6 +91,9 @@ CK_RV ckcapi_winerr_to_ckr (DWORD werr);
CK_RV ckcapi_return_data (CK_ATTRIBUTE_PTR attr,
CK_VOID_PTR src, DWORD slen);
+CK_RV ckcapi_return_data_raw (CK_VOID_PTR output, CK_ULONG_PTR n_output,
+ CK_VOID_PTR input, CK_ULONG n_input);
+
/*
* This stores a string in the output buffer with appropriate
* PKCS#11 codes when the buffer is too short, or the caller
@@ -107,6 +110,8 @@ CK_RV ckcapi_return_reversed_data (CK_ATTRIBUTE_PTR attr,
/* ------------------------------------------------------------------ */
+typedef void (*CkCapiDestroyFunc)(void* data);
+
#ifndef ASSERT
#include "assert.h"
#define ASSERT assert