Author: tjansen Date: Mon Nov 2 12:26:11 2009 New Revision: 1474 Log: Removed unused function pisa_auth_key_length_esp. Modified: trunk/libpisa/util.c trunk/libpisa/util.h Modified: trunk/libpisa/util.c ============================================================================== --- trunk/libpisa/util.c Sun Nov 1 23:12:37 2009 (r1473) +++ trunk/libpisa/util.c Mon Nov 2 12:26:11 2009 (r1474) @@ -223,39 +223,6 @@ return ret; } - -/** - * pisa_auth_key_length_esp - get authentication key length of a transform - * @param tid transform - * - * @return the authentication key length based on the chosen transform. - * otherwise < 0 on error. - * - * TODO: TH: possible preauth remnant - check dependencies and remove if possible - */ -int pisa_auth_key_length_esp(int tid){ - int ret = -1; - - switch(tid) { - case PISA_ESP_AES_SHA1: - //ret = 16; - //break; - case PISA_ESP_NULL_SHA1: - case PISA_ESP_3DES_SHA1: - ret = 20; - break; - 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 Sun Nov 1 23:12:37 2009 (r1473) +++ trunk/libpisa/util.h Mon Nov 2 12:26:11 2009 (r1474) @@ -108,7 +108,6 @@ int pisa_build_digest(const int type, const void *in, int in_len, void *out); #endif -int pisa_auth_key_length_esp(int tid); int pisa_hmac_key_length(int tid); int pisa_enc_key_length(int tid); void pisa_get_random_bytes(void *buf, int n);