DlmsProtocolTransferKeys Method
Updates global keys by calling method key_transfer(data) of object security setup. If some new-key parameter is null or empty,
the corresponding key is not updated.
Namespace: OddPrg.Protocols.DLMSAssembly: OddPrg.Protocols.Dlms (in OddPrg.Protocols.Dlms.dll) Version: 2.0.0.13 (2.0.0.13)
public bool TransferKeys(
DlmsSecuritySetup obj,
byte securitySuiteId,
ByteBuffer kek,
ByteBuffer newGuek,
ByteBuffer newGbek,
ByteBuffer newGak,
ByteBuffer newKek,
CancellationToken cancellationToken
)
- 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.
- kek ByteBuffer
- Current master key used to encrypt new keys. This object must not be null and must contain valid key.
- newGuek ByteBuffer
- New GUEK or null or empty if GUEK is not about to be updated
- newGbek ByteBuffer
- New GBEK or null or empty if GBEK is not about to be updated
- newGak ByteBuffer
- New GAK or null or empty if GAK is not about to be updated
- newKek ByteBuffer
- New KEK or null or empty if KEK is not about to be updated
- cancellationToken CancellationToken
BooleanReturns true if method call returs sucess, otherwise returns false.