[pisa-src] r1475 - in trunk/libpisa: util.c util.h

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 02 Nov 2009 12:28:49 +0100

Author: tjansen
Date: Mon Nov  2 12:28:48 2009
New Revision: 1475

Log:
Removed unused function pisa_hmac_key_length.

Modified:
   trunk/libpisa/util.c
   trunk/libpisa/util.h

Modified: trunk/libpisa/util.c
==============================================================================
--- trunk/libpisa/util.c        Mon Nov  2 12:26:11 2009        (r1474)
+++ trunk/libpisa/util.c        Mon Nov  2 12:28:48 2009        (r1475)
@@ -201,29 +201,6 @@
 }
 
 /**
-TODO: TH: possible preauth remnant - check dependencies and remove if possible
-**/
-int pisa_hmac_key_length(int tid){
-       int ret = -1;
-       switch(tid) {
-               case PISA_ESP_AES_SHA1:
-       case PISA_ESP_3DES_SHA1:
-       case PISA_ESP_NULL_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        Mon Nov  2 12:26:11 2009        (r1474)
+++ trunk/libpisa/util.h        Mon Nov  2 12:28:48 2009        (r1475)
@@ -108,7 +108,6 @@
 int pisa_build_digest(const int type, const void *in, int in_len, void *out);
 #endif
 
-int pisa_hmac_key_length(int tid);
 int pisa_enc_key_length(int tid);
 void pisa_get_random_bytes(void *buf, int n);
 

Other related posts:

  • » [pisa-src] r1475 - in trunk/libpisa: util.c util.h - Thomas Jansen