diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-23 09:19:36 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-23 09:19:36 +0200 |
commit | d3d66b196cda9b100f3e3e0e742e0c2a76f2751a (patch) | |
tree | 8a5dff291fc5a3433f3b2d29894e749a1aaddfb2 | |
parent | 6fbb3400ff70070dc12460c5336b201cfa275ab4 (diff) | |
download | cryptodev-linux-d3d66b196cda9b100f3e3e0e742e0c2a76f2751a.tar.gz cryptodev-linux-d3d66b196cda9b100f3e3e0e742e0c2a76f2751a.tar.xz cryptodev-linux-d3d66b196cda9b100f3e3e0e742e0c2a76f2751a.zip |
No need for type of params.
-rw-r--r-- | ncr.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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]; |