ISO 9797-1 Algorithm 1 [CBC-MAC] in C#
It seems that there're 6 variations to CBC-MAC algorithm. I've been trying to match the MAC algorithm on the PINPad 1000SE [which per manual is ISO 9797-1 Algorithm 1]. I got an excellent start from here. And I coded the algorithm as below: public static byte[] CalculateMAC(this IPinPad pinpad, byte[] message, byte[] key) { //Div...