This implements the so called "XOR" sim cards. I don't know of any official specs, it's just how they work as tested on one of those SIMs
Maybe he askes because the loop for setting Kc should probably start with 4 instead of 8 ?
/me slaps himself.
Duh indeed :) I don't have such a test card so I never tested it myself ... Apparently nobody else has either.
Sylvain