Beispiel #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);
        }
Beispiel #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;
 }