Пример #1
0
        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();
        }
Пример #2
0
        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);
        }