Commit 4973cc8b authored by schmitting's avatar schmitting
Browse files

minor changes in f_sndAuthReqAndWaitForRsp_forAh

parent 6a5f7c57
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -1886,20 +1886,13 @@ group establishSAFns_active {
		if (v_ret != e_success) { return v_ret;}
		
		//fill keyLen
		vc_sad[c_saOut].espEncrKeyLen := 0;
		v_ret := f_getEncrKeyLen(vc_sad[c_saOut].espEncryptionAlgo, vc_sad[c_saOut].espEncrKeyLen);
		if (v_ret != e_success) { return v_ret;}
		vc_sad[c_saOut].espIntegrKeyLen := 0;
		v_ret := f_getIntegrKeyLen(vc_sad[c_saOut].espIntegrityAlgo, vc_sad[c_saOut].espIntegrKeyLen);
		vc_sad[c_saOut].ahIntegrKeyLen := 0;
		v_ret := f_getIntegrKeyLen(vc_sad[c_saOut].ahIntegrityAlgo, vc_sad[c_saOut].ahIntegrKeyLen);
		if (v_ret != e_success) { return v_ret;}

		//fill iv and block sizes
		v_ret := f_getIv(vc_sad[c_saOut].espEncryptionAlgo, vc_sad[c_saOut].espIv);
		if (v_ret != e_success) { return v_ret;}
		v_ret := f_getEncrBlockSize(vc_sad[c_saOut].espEncryptionAlgo, vc_sad[c_saOut].espEncrBlockSize);
		if (v_ret != e_success) { return v_ret;}
		v_ret := f_getIntegrBlockSize(vc_sad[c_saOut].espIntegrityAlgo, vc_sad[c_saOut].espIntegrBlockSize);
		if (v_ret != e_success) { return v_ret;}
		//fill icv and pad length
		vc_sad[c_saOut].ahIcvLen := f_getIcvLen(vc_sad[c_saOut].ahIntegrityAlgo);
		vc_sad[c_saOut].ahIcvPadLen := f_getIcvPadLen(vc_sad[c_saOut].ahIntegrityAlgo);

		v_ret := fx_setSecurityParameters(vc_sad);