summaryrefslogtreecommitdiffstats
path: root/lib/internal.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-11-02 19:58:05 +0100
committerMiloslav Trmač <mitr@redhat.com>2010-11-02 19:58:05 +0100
commitfd80d48ded8f550f9d2853721b5200bde0d951fa (patch)
tree4ee240597bf82fd4945a645756e4786b3c648bf6 /lib/internal.h
parent843862b7ce325e70a0ff715006fb29fffd81e0a6 (diff)
downloadncrypto-fd80d48ded8f550f9d2853721b5200bde0d951fa.tar.gz
ncrypto-fd80d48ded8f550f9d2853721b5200bde0d951fa.tar.xz
ncrypto-fd80d48ded8f550f9d2853721b5200bde0d951fa.zip
Add symmetric key extraction support
Also allow marking keys as "sensitive" (= CKA_SENSITIVE = non-extractable), which is an API change.
Diffstat (limited to 'lib/internal.h')
-rw-r--r--lib/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal.h b/lib/internal.h
index 97fb77d..8b6d25b 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -29,12 +29,14 @@ Red Hat author: Miloslav Trmač <mitr@redhat.com> */
#include <config.h>
+#include <stdbool.h>
#include <stdint.h>
#include <ncrypto/ncrypto.h>
struct ncr_symm_key
{
CK_KEY_TYPE type;
+ bool sensitive;
size_t size;
uint8_t value[];
};