summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-23 09:19:36 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-23 09:19:36 +0200
commitd3d66b196cda9b100f3e3e0e742e0c2a76f2751a (patch)
tree8a5dff291fc5a3433f3b2d29894e749a1aaddfb2
parent6fbb3400ff70070dc12460c5336b201cfa275ab4 (diff)
downloadkernel-crypto-d3d66b196cda9b100f3e3e0e742e0c2a76f2751a.tar.gz
kernel-crypto-d3d66b196cda9b100f3e3e0e742e0c2a76f2751a.tar.xz
kernel-crypto-d3d66b196cda9b100f3e3e0e742e0c2a76f2751a.zip
No need for type of params.
-rw-r--r--ncr.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/ncr.h b/ncr.h
index 47c0a041a38..f6c8f9ff43a 100644
--- a/ncr.h
+++ b/ncr.h
@@ -137,16 +137,12 @@ typedef enum {
RSA_PKCS1_PSS, /* for signatures only */
} ncr_rsa_type_t;
-typedef enum {
- NCR_KEY_PARAMS_CIPHER,
- NCR_KEY_PARAMS_DH,
- NCR_KEY_PARAMS_RSA
-} ncr_key_params_type_t;
-
/* used in derivation/encryption
*/
struct ncr_key_params_st {
- ncr_key_params_type_t type;
+ /* this structure always corresponds to a key. Hence the
+ * parameters of the union selected are based on the corresponding
+ * key */
union {
struct {
uint8_t iv[NCR_CIPHER_MAX_BLOCK_LEN];