Exemplo n.º 1
0
        public static RSACryptoServiceProvider GetIroncladPublicKey(UdpClient client)
        {
            GetQuoteRequest getQuoteRequest = new GetQuoteRequest();

            byte[]           request          = getQuoteRequest.GetPacket();
            byte[]           response         = CommonRoutines.SendRequest(client, request, "GetIroncladPublicKey");
            GetQuoteResponse getQuoteResponse = new GetQuoteResponse(response);

            return(getQuoteResponse.PublicKey);
        }
Exemplo n.º 2
0
 public static RSACryptoServiceProvider GetIroncladPublicKey(UdpClient client)
 {
     GetQuoteRequest getQuoteRequest = new GetQuoteRequest();
     byte[] request = getQuoteRequest.GetPacket();
     byte[] response = CommonRoutines.SendRequest(client, request, "GetIroncladPublicKey");
     GetQuoteResponse getQuoteResponse = new GetQuoteResponse(response);
     return getQuoteResponse.PublicKey;
 }