Fix authentication key length 17/14517/1
authorwootak.jung <wootak.jung@samsung.com>
Wed, 11 Dec 2013 00:10:09 +0000 (09:10 +0900)
committeru <u@u-Samsung-DeskTop-System.(none)>
Tue, 7 Jan 2014 01:57:01 +0000 (10:57 +0900)
3GPP TS 133.102
6.3.7 Length of authentication parameters
authentication keys have a length of 128 bits.
so, we should define this length 16 bytes.

Change-Id: I629215b3825255a24259a8d82eeb129102954868

include/TelSim.h

index 8fdaf5d..69284ed 100644 (file)
@@ -53,10 +53,10 @@ extern "C"
 #define TAPI_SIM_CPHS_CUSTOMER_SERVICE_PROFILE_ENTRY_COUNT_MAX 11
 
 /** Authentication code max length */
-#define TAPI_SIM_AUTH_MAX_REQ_DATA_LEN 256
+#define TAPI_SIM_AUTH_MAX_REQ_DATA_LEN 16
 
 /** Authentication response data max length */
-#define TAPI_SIM_AUTH_MAX_RESP_DATA_LEN 128
+#define TAPI_SIM_AUTH_MAX_RESP_DATA_LEN 16
 
 /** SAP APDU max length */
 #define TAPI_SIM_APDU_MAX_LEN 256+2 // to be fine tuned according to lower layers, 2bytes for SW1 & SW2 should be added