Project

General

Profile

Actions

Bug #6059

closed

Patchs for long CAPMTs

Added by Enigma131 enig almost 4 years ago. Updated almost 4 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Descrambling
Target version:
-
Start date:
2021-05-30
Due date:
% Done:

0%

Estimated time:
Found in version:
actual git, but seems since long time
Affected Versions:

Description

Hi,
I have discover errors for long CAPMTs (> 256 Bytes) when decrypting via PCMCIA.

First one concerns en50221_send_capmt in files en50221_apps.c and en50221.h :

(en50221_slot_t *slot, const uint8_t *capmt, uint8_t capmtlen);
must be modified to :
(en50221_slot_t *slot, const uint8_t *capmt, uint16_t capmtlen);

Second one concerns en50221_app_pdu_send in file en50221.c :
} else if (datalen < 0x100) {
buf7 = 0x82;
must be modified to :
} else if (datalen < 0x100) {
buf7 = 0x81;

and
} else if (datalen < 0x10000) {
buf7 = 0x83;
must be modified to :
} else if (datalen < 0x10000) {
buf7 = 0x82;

originally posted here : https://tvheadend.org/boards/13/topics/44611?r=44615

Actions

Also available in: Atom PDF