public void Test_Sessionkeys() { TritonCryptography terminalCrypto = new TritonCryptography(); Dictionary <String, String> response = terminalCrypto.GenerateTerminalSessionKeys("UF0C85E08A34581A140FB2744BD6F98FF"); // TMK in db if (response.ContainsKey("ErrorCode")) { Assert.AreEqual((response["ErrorCode"]), "00"); } }
public void CreateSessionKeys() { Sessions_Triton_TMK tmkInfo; using (TerminalData data = new TerminalData()) { tmkInfo = data.GetTMKByTerminalId(_terminalId); _log.Debug(string.Format("Get TMK for Terminal Id: {0}", _terminalId)); } _log.Debug(string.Format("Create session key and tak for Terminal Id: {0}", _terminalId)); _sessionKeys = _crypt.GenerateTerminalSessionKeys(tmkInfo.TMK); _takInfo = _crypt.GenerateKeys_TAK(); }