From d3d66b196cda9b100f3e3e0e742e0c2a76f2751a Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 23 Jul 2010 09:19:36 +0200 Subject: No need for type of params. --- ncr.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ncr.h b/ncr.h index 47c0a04..f6c8f9f 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]; -- cgit