DlmsDataSecuritySettingsSetupKeys Method
Sets necessary keys for the current security settings.
Namespace: OddPrg.Protocols.DLMSAssembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
public void SetupKeys(
Func<byte[]> getAk,
Func<byte[]> getEkGlobal,
Func<byte[]> getEkDedicated,
Func<byte[]> getPrivatesigningKey,
Func<byte[]> getMeterSigningCertificate,
Func<byte[]> getMetersigningCa,
Func<byte[]> getClientSigningCertificate
)
Parameters
- getAk FuncByte
- Method for obtaining AK. If returns null, NullReferenceException will be thrown.
- getEkGlobal FuncByte
- Method for obtaining EK global. If returns null, NullReferenceException will be thrown.
- getEkDedicated FuncByte
- Method for obtaining EK dedicated. If returns null, NullReferenceException will be thrown.
- getPrivatesigningKey FuncByte
- Method for obtaining ECDSA private signing key. If returns null, NullReferenceException will be thrown.
- getMeterSigningCertificate FuncByte
- Method for obtaining meter certificate used to verify ECDSA signature. If returns null, NullReferenceException will be thrown.
- getMetersigningCa FuncByte
- Method for obtaining root certificate for meter signing certificate. Method may return null if certificate should not be checked.
- getClientSigningCertificate FuncByte
- Method for obtaining meter certificate used to verify ECDSA signature. If returns null, NullReferenceException will be thrown.