DlmsFramesLengthGetProtectedDataLength Method

Calculates length of protected APDU form length of unprotected APDU.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
C#
public static int GetProtectedDataLength(
	int apduLength,
	bool ciphered,
	bool authentized
)

Parameters

apduLength  Int32
Length of unprotected APDU.
ciphered  Boolean
If the APDU will be ciphered.
authentized  Boolean
If the APDU will be authentized.

Return Value

Int32

See Also