Author: tjansen Date: Mon Nov 2 12:32:03 2009 New Revision: 1476 Log: Removed unused function pisa_enc_key_length. Modified: trunk/libpisa/util.c trunk/libpisa/util.h Modified: trunk/libpisa/util.c ============================================================================== --- trunk/libpisa/util.c Mon Nov 2 12:28:48 2009 (r1475) +++ trunk/libpisa/util.c Mon Nov 2 12:32:03 2009 (r1476) @@ -169,38 +169,6 @@ } /** - * pisa_enc_key_length - get encryption key length of a transform - * @param tid transform - * - * @return the encryption key length based on the chosen transform, - * otherwise < 0 on error. - * - * TODO: TH: possible preauth remnant - check dependencies and remove if possible - */ -int pisa_enc_key_length(int tid){ - int ret = -1; - - switch(tid) { - case PISA_ESP_AES_SHA1: - ret = 16; - break; - case PISA_ESP_3DES_SHA1: - ret = 24; - break; - case PISA_ESP_NULL_SHA1: - case PISA_ESP_NULL_NULL: - ret = 0; - break; - default: - PISA_ERROR("unknown tid=%d\n", tid); - PISA_ASSERT(0); - break; - } - - return ret; -} - -/** * Generate arbitrary random data with the given length. * This is a simple wrapper of RAND_bytes() in OpenSSL. * Modified: trunk/libpisa/util.h ============================================================================== --- trunk/libpisa/util.h Mon Nov 2 12:28:48 2009 (r1475) +++ trunk/libpisa/util.h Mon Nov 2 12:32:03 2009 (r1476) @@ -108,7 +108,6 @@ int pisa_build_digest(const int type, const void *in, int in_len, void *out); #endif -int pisa_enc_key_length(int tid); void pisa_get_random_bytes(void *buf, int n); int pisa_make_hipd_run(void);