summaryrefslogtreecommitdiffstats
path: root/ncr.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-25 17:47:55 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-25 17:52:40 +0200
commite8372045818cb278ad2fe05ab64d3a76990cd1ed (patch)
tree4bb6a3dd05728ee9622b1eabecb7ba8c6beff15f /ncr.h
parent68c4e5ec42e1151591aee19ba36a4dbe22715a91 (diff)
downloadcryptodev-linux-e8372045818cb278ad2fe05ab64d3a76990cd1ed.tar.gz
cryptodev-linux-e8372045818cb278ad2fe05ab64d3a76990cd1ed.tar.xz
cryptodev-linux-e8372045818cb278ad2fe05ab64d3a76990cd1ed.zip
Added ENCRYPT, UNWRAPPING and VERIFY key flags
Diffstat (limited to 'ncr.h')
-rw-r--r--ncr.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ncr.h b/ncr.h
index c3850e4..701210e 100644
--- a/ncr.h
+++ b/ncr.h
@@ -70,10 +70,13 @@ typedef int ncr_key_t;
*/
#define NCR_KEY_FLAG_DECRYPT (1<<2)
#define NCR_KEY_FLAG_SIGN (1<<3)
-/* This flag can only be set by administrator, to prevent
+#define NCR_KEY_FLAG_ENCRYPT (1<<4)
+#define NCR_KEY_FLAG_VERIFY (1<<5)
+/* These flags can only be set by administrator, to prevent
* adversaries exporting wrappable keys with random ones.
*/
-#define NCR_KEY_FLAG_WRAPPING (1<<4)
+#define NCR_KEY_FLAG_WRAPPING (1<<6)
+#define NCR_KEY_FLAG_UNWRAPPING (1<<7)
struct ncr_key_generate_params_st {
ncr_algorithm_t algorithm; /* just a cipher algorithm when