static void TestSecretKey() { Console.WriteLine("TestSecretKey"); SecretKey sec = new SecretKey(); sec.SetHexStr("ff"); assert("GetHexStr()", sec.GetHexStr() == "ff"); { SecretKey sec2 = new SecretKey(); sec.SetHexStr("321"); sec2.SetHexStr("4000"); sec.Add(sec2); assert("sec.Add", sec.GetHexStr() == "4321"); sec.SetByCSPRNG(); Console.WriteLine("sec.Init={0}", sec.GetHexStr()); } }