Commit 4f656178 authored by mullers's avatar mullers
Browse files

e_null uses padding

parent 558ee17f
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -276,7 +276,9 @@ group rfc2460Root_Functions {
					v_activeIpv6Packet.ipv6Hdr.hopLimit := 0;

					//compute icv
					if (vc_sad[0].icvLen != 0) {
						p_ipv6Packet.extHdrList[i].authHeader.icv := fx_mac( vc_sad[0].ahIntegrityAlgo , vc_sad[0].ahIntegrityKey, fx_encodeMessage(v_activeIpv6Packet));
					}					

					v_loop := false;				
				}				
@@ -1116,7 +1118,8 @@ group rfc4303Esp_ExtHdrFunctions {
			return 4;
		}
		else if(p_integrityAlgo == e_null) {
			return 0;	
			//ICV is omit, but padding is needed
			return 4;	
		}
	
		return 0;