public static void UpdateChecksum(Card C) /* Creates and updates Checksum */ { ACLsum s = new ACLsum(C.W9L); for (int i = 2; i < 24; i++) { s.ACL(C.C[i]); } C.W9R = s.Get(); }
public static bool VerifyChecksum(Card C) /* Verifies Checksum. return value true if checksum OK */ { ACLsum s = new ACLsum(C.W9L); for (int i = 2; i < 24; i++) { s.ACL(C.C[i]); } return(s.Get().LW == C.W9R.LW); }