Пример #1
0
        public void StoreAcquirerRow(int number, int cryptographyMethod, int keyIndex, byte[] sessionKey)
        {
            AcquirerEntry entry = new AcquirerEntry {
                Number             = number,
                CryptographyMethod = cryptographyMethod,
                KeyIndex           = keyIndex,
                SessionKey         = Encoding.ASCII.GetString(sessionKey, 0, 32),
            };

            db.Insert(entry);
        }
Пример #2
0
                public Acquirer(AcquirerEntry e)
                {
                    Number             = e.Number;
                    CryptographyMethod = e.CryptographyMethod;
                    KeyIndex           = e.KeyIndex;

                    if (e.SessionKey != null)
                    {
                        SessionKey = GetHexBytes(e.SessionKey, 32);
                    }
                    else
                    {
                        SessionKey = GetHexBytes("", 32);
                    }
                }