PubSub with UADP message mapping - determine size of the block to decrypt|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
PubSub with UADP message mapping - determine size of the block to decrypt
Avatar
Zbynek Zahradnik
Member
Members
Forum Posts: 62
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
1
12/04/2018 - 05:33
sp_Permalink sp_Print

Referring to Figure 27 and Table 73 (UADP Network Message) in 1.04 Part 14, when parsing the incoming NetworkMessage, how to determine the size of the block of data to decrypt when I have made it past SecurityHeader? I do not see any field that tells me the size of the encryopted data that follows. 

Is it the right approach then to take the size of the whole received NetworkMessage, minus the length of the Signature, minus the position where the Payload starts?

Thank you

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
12/05/2018 - 15:43
sp_Permalink sp_Print

The size of the message read from the network is known.

Go to the end, extract the signature.

What is left is encrypted.

Avatar
Zbynek Zahradnik
Member
Members
Forum Posts: 62
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
3
12/05/2018 - 21:58
sp_Permalink sp_Print

Thank you. Yeah, I kind of expected that. 

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 38
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855