Fix receive issue for long APDUs >= 254 bytes).
Fix receive issue for long APDUs >= 254 bytes).

This version is confirmed to work for APDUs with
up to 32767 bytes of data (both cAPDU and rAPDU).

Signed-off-by: Christoph Müllner <a5d225a1160170157d2efb6ceb19cc9ac620c91b@gmail.com>

cmuellner/libifdkerkey