DlmsProtocolKeyAgreement Method

Uses key_agreement(data) method to create new global keys. If some new-key parameter is null, the corresponding key is not update. Otherwise parameter will containg a new key value after successfull call.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Protocols.Dlms (in OddPrg.Protocols.Dlms.dll) Version: 2.0.0.13 (2.0.0.13)
C#
public bool KeyAgreement(
	DlmsSecuritySetup obj,
	byte securitySuiteId,
	string clientSysTitle,
	ByteBuffer serverSysTitle,
	byte[] privateSigningKey,
	byte[] publicSigningKeyCertificate,
	ByteBuffer newGuek,
	ByteBuffer newGbek,
	ByteBuffer newGak,
	ByteBuffer newKek,
	CancellationToken cancellationToken
)

Parameters

obj  DlmsSecuritySetup
Security setup object whose method should be called to update keys.
securitySuiteId  Byte
Target security suite. It must correspond to the keys. It can be different to current security settings which is used for communication.
clientSysTitle  String
Target client system title.
serverSysTitle  ByteBuffer
Target server system title.
privateSigningKey  Byte
Key to sign request. The length must be 48 bytes.
publicSigningKeyCertificate  Byte
Server (meter) signing certificate in DER format.
newGuek  ByteBuffer
If the parameter is not null, it is filled with new GUEK.
newGbek  ByteBuffer
If the parameter is not null, it is filled with new GBEK.
newGak  ByteBuffer
If the parameter is not null, it is filled with new GAK.
newKek  ByteBuffer
If the parameter is not null, it is filled with new KEK.
cancellationToken  CancellationToken

Return Value

Boolean
Returns true if method call returs sucess, otherwise returns false.

See Also