1)in GXDLMSAssociationLogicalName.class we have logical name as "0.0.40.0.0.255" can we change this another association??
2)if we want to provide key then can we use setKek for giving the key??
1. 0.0.40.0.0.255 is default association. Different associations have different OBIS codes.
2. KEK is the master key that is used to update authentication or block cipher key. KEK can be updated using the Security Setup object.
hi Mikko, now the data transfer we do consist only of plain data, can we encrypt the data and also decrypt , for that can we set key using the setKek()
OK Mikko, I see that ciphering key is in class GXDLMSSecureServer2.class it is already hardcoded, but i was not able to find authentication key and security, can you guide where are these values so that i could manipulate and test
You can use this for the client and server.
getCiphering().setSecurity(Security.AUTHENTICATION_ENCRYPTION);
getCiphering().setSystemTitle(GXCommon.hexToBytes("HEX value"));
getCiphering().setAuthenticationKey(GXCommon.hexToBytes("HEX value"));
getCiphering().setBlockCipherKey(GXCommon.hexToBytes("HEX value"));
getCiphering().setDedicatedKey(GXCommon.hexToBytes("HEX value"));
Hi,
Hi,
1. 0.0.40.0.0.255 is default association. Different associations have different OBIS codes.
2. KEK is the master key that is used to update authentication or block cipher key. KEK can be updated using the Security Setup object.
BR,
Mikko
yes i want to use another
yes i want to use another obis code for association,so we can we change it in that particular file was my doubt thats all
hi Mikko, now the data
hi Mikko, now the data transfer we do consist only of plain data, can we encrypt the data and also decrypt , for that can we set key using the setKek()
Hi,
Hi,
If you want to cipher (encrypt and decrypt) the data you need to set authentication key, block cipher key and Security.
BR,
Mikko
OK Mikko, I see that
OK Mikko, I see that ciphering key is in class GXDLMSSecureServer2.class it is already hardcoded, but i was not able to find authentication key and security, can you guide where are these values so that i could manipulate and test
Hi,
Hi,
You can use this for the client and server.
getCiphering().setSecurity(Security.AUTHENTICATION_ENCRYPTION);
getCiphering().setSystemTitle(GXCommon.hexToBytes("HEX value"));
getCiphering().setAuthenticationKey(GXCommon.hexToBytes("HEX value"));
getCiphering().setBlockCipherKey(GXCommon.hexToBytes("HEX value"));
getCiphering().setDedicatedKey(GXCommon.hexToBytes("HEX value"));
BR,
Mikko
thanks Mikko
thanks Mikko