From 1f3b16cbe8d4e8bddeb6a6f0757e179d11a09753 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Tue, 28 Aug 2007 22:49:34 +0000 Subject: * changed cypher.* * checkin for testing --- anytun.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'anytun.cpp') diff --git a/anytun.cpp b/anytun.cpp index f01d998..aca8fa0 100644 --- a/anytun.cpp +++ b/anytun.cpp @@ -89,8 +89,14 @@ void* sender(void* p) param->kd.generate(label_satp_salt, seq, tmp_salt, tmp_salt.getLength()); param->c.setKey(tmp_key); param->c.setSalt(tmp_salt); + + std::cout << "seq: " << seq << std::endl << "sID: " << param->opt.getSenderId() << std::endl; + std::cout << "bevore cipher: " << std::endl << pack.getBuf() << std::endl; + param->c.cypher(pack, seq, param->opt.getSenderId()); + std::cout << "after cipher: " << std::endl << pack.getBuf() << std::endl; + // add header to packet pack.addHeader(seq, param->opt.getSenderId()); seq++; -- cgit v1.2.3