Patent ID: 8599916

Claim:
A method in a receiver for processing a data stream comprising a header and an encrypted payload, the header comprising a first packet identifier, the method comprising: decrypting the encrypted payload to obtain a decrypted payload; receiving an encrypted second packet identifier and an encrypted first content type identifier; obtaining a second packet identifier from the encrypted second packet identifier within a secured environment; obtaining a first content type identifier associated with the second packet identifier from the encrypted first content type identifier within the secured environment; comparing the first packet identifier with the second packet identifier to obtain a first comparison result; and if the first comparison result matches a first predetermined condition, selecting a first decoding module based on the first content type identifier and routing the decrypted payload to the first decoding module for decoding the decrypted payload, receiving a clear text third packet identifier and a clear text second content type identifier associated with the third packet identifier; if the first comparison result matches a second predetermined condition, comparing the first packet identifier with the third packet identifier to obtain a second comparison result; and if the second comparison result matches a third predetermined condition, selecting a second decoding module based on the second content type identifier and routing the decrypted payload to the second decoding module for decoding the decrypted payload.