summaryrefslogtreecommitdiff
path: root/ckcapi.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-03 00:20:13 +0000
committerStef Walter <stef@memberwebs.com>2008-12-03 00:20:13 +0000
commitb00eb56b7ffe5019bb33ad399d351b90f4715132 (patch)
tree0dbf8ab4425a6eb4f8cbc028556403515e516d68 /ckcapi.h
parent4b5eb21486d188f57f2bf7a91cd5da225dd3e0d1 (diff)
Add basic key object support. No support yet for actual crypto ops. Not tested. Wanted to check it in so it doesn't get lost as it represents a lot of work.
Diffstat (limited to 'ckcapi.h')
-rw-r--r--ckcapi.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/ckcapi.h b/ckcapi.h
index 707d7f8..18f304f 100644
--- a/ckcapi.h
+++ b/ckcapi.h
@@ -88,16 +88,22 @@ CK_RV ckcapi_winerr_to_ckr (DWORD werr);
* PKCS#11 codes when the buffer is too short, or the caller
* just wants to know the length, etc.
*/
-CK_RV ckcapi_return_data (CK_VOID_PTR dst, CK_ULONG_PTR dlen,
- CK_VOID_PTR src, DWORD slen);
+CK_RV ckcapi_return_data (CK_ATTRIBUTE_PTR attr,
+ CK_VOID_PTR src, DWORD slen);
/*
* This stores a string in the output buffer with appropriate
* PKCS#11 codes when the buffer is too short, or the caller
* just wants to know the length, etc.
*/
-CK_RV ckcapi_return_string (CK_VOID_PTR dst, CK_ULONG_PTR dlen,
- WCHAR* string);
+CK_RV ckcapi_return_string (CK_ATTRIBUTE_PTR attr,
+ WCHAR* string);
+
+CK_RV ckcapi_return_dword_as_bytes (CK_ATTRIBUTE_PTR attr,
+ DWORD value);
+
+CK_RV ckcapi_return_reversed_data (CK_ATTRIBUTE_PTR attr,
+ CK_VOID_PTR data, CK_ULONG length);
/* ------------------------------------------------------------------ */