Exemplo n.º 1
0
        public static NetworkSessionKey CreateNetworkSessionKey(ulong hi, ulong low)
        {
            var data128 = new Data128(hi, low);
            var buffer  = new byte[Data128.Size];

            _ = data128.Write(buffer);
            return(NetworkSessionKey.Read(buffer));
        }
Exemplo n.º 2
0
 public static NetworkSessionKey CalculateNetworkSessionKey(AppNonce appNonce, NetId netId, DevNonce devNonce, AppKey appKey) =>
 NetworkSessionKey.Read(CalculateKey(SessionKeyType.Network, appNonce, netId, devNonce, appKey));