diff options
| author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-25 17:47:55 +0200 |
|---|---|---|
| committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-25 17:52:40 +0200 |
| commit | e8372045818cb278ad2fe05ab64d3a76990cd1ed (patch) | |
| tree | 4bb6a3dd05728ee9622b1eabecb7ba8c6beff15f /ncr.h | |
| parent | 68c4e5ec42e1151591aee19ba36a4dbe22715a91 (diff) | |
| download | cryptodev-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.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |
