<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Deffie Hellman key exchange question in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/deffie-hellman-key-exchange-question/m-p/4124888#M1072277</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I understand that DH is used to generate a symmetric key over a unsecure channel, it is needed to send algorithm over a unsecure channel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my question:&lt;/P&gt;&lt;P&gt;R1------Internet------R2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For eg R1 &amp;amp; R2 negotiate on pre-defined key &lt;STRONG&gt;10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then &lt;STRONG&gt;R1&lt;/STRONG&gt; generate random &lt;STRONG&gt;secret number 5&lt;/STRONG&gt;(this will not be disclosed and it generated based on group number for eg group2, group5)&lt;/P&gt;&lt;P&gt;Now &lt;STRONG&gt;addition of pre-define key&lt;/STRONG&gt; &lt;STRONG&gt;10&lt;/STRONG&gt; &lt;STRONG&gt;and random secret no&lt;/STRONG&gt; &lt;STRONG&gt;5&lt;/STRONG&gt; =&lt;STRONG&gt;&amp;nbsp;15&lt;/STRONG&gt;--&amp;gt;this key is shared to R2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R2 does same thing, &lt;STRONG&gt;addition of pre-define 10 and here random secret 15=25&lt;/STRONG&gt;--&amp;gt;shares with R1.&lt;/P&gt;&lt;P&gt;Now when R1 will say whetever no i have received from R2, i will add my secret number to that.&lt;/P&gt;&lt;P&gt;i.e &lt;STRONG&gt;25+5=30--&amp;gt;&lt;/STRONG&gt;From this number they generate encryption &amp;amp; hashing algorithm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R2 does same process and gets same number i.e 30.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question here is in my vpn configuration i haven't defined any pre-share no. How does R1 &amp;amp; R2 negotites on number 10 ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;crypto isakmp policy 1&lt;/P&gt;&lt;P&gt;authentication pre-share----&amp;gt;only used for authentication&lt;/P&gt;&lt;P&gt;hash md5&lt;/P&gt;&lt;P&gt;encryption 3des&lt;/P&gt;&lt;P&gt;group 2&lt;/P&gt;&lt;P&gt;crypto isakmp key cisco 123 address 192.1.23.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phase 2&lt;/P&gt;&lt;P&gt;crypto ipsec transform-set TSET1 esp-3des esp-md5-hmac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;access-list 101 permit ip 10.1.1.0&amp;nbsp; 0.0.0.255 10.3.3.0&amp;nbsp; 0.0.0.255&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Crypto map CMAP 10 ipsec-isakmp&lt;/P&gt;&lt;P&gt;set peer 192.1.23.3&lt;/P&gt;&lt;P&gt;set transform-set TSET1&lt;/P&gt;&lt;P&gt;match address 101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int e0/0&lt;/P&gt;&lt;P&gt;crypto map CMAP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 10:18:04 GMT</pubDate>
    <dc:creator>23nick</dc:creator>
    <dc:date>2020-07-24T10:18:04Z</dc:date>
    <item>
      <title>Deffie Hellman key exchange question</title>
      <link>https://community.cisco.com/t5/network-security/deffie-hellman-key-exchange-question/m-p/4124888#M1072277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I understand that DH is used to generate a symmetric key over a unsecure channel, it is needed to send algorithm over a unsecure channel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my question:&lt;/P&gt;&lt;P&gt;R1------Internet------R2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For eg R1 &amp;amp; R2 negotiate on pre-defined key &lt;STRONG&gt;10.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then &lt;STRONG&gt;R1&lt;/STRONG&gt; generate random &lt;STRONG&gt;secret number 5&lt;/STRONG&gt;(this will not be disclosed and it generated based on group number for eg group2, group5)&lt;/P&gt;&lt;P&gt;Now &lt;STRONG&gt;addition of pre-define key&lt;/STRONG&gt; &lt;STRONG&gt;10&lt;/STRONG&gt; &lt;STRONG&gt;and random secret no&lt;/STRONG&gt; &lt;STRONG&gt;5&lt;/STRONG&gt; =&lt;STRONG&gt;&amp;nbsp;15&lt;/STRONG&gt;--&amp;gt;this key is shared to R2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R2 does same thing, &lt;STRONG&gt;addition of pre-define 10 and here random secret 15=25&lt;/STRONG&gt;--&amp;gt;shares with R1.&lt;/P&gt;&lt;P&gt;Now when R1 will say whetever no i have received from R2, i will add my secret number to that.&lt;/P&gt;&lt;P&gt;i.e &lt;STRONG&gt;25+5=30--&amp;gt;&lt;/STRONG&gt;From this number they generate encryption &amp;amp; hashing algorithm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R2 does same process and gets same number i.e 30.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question here is in my vpn configuration i haven't defined any pre-share no. How does R1 &amp;amp; R2 negotites on number 10 ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;crypto isakmp policy 1&lt;/P&gt;&lt;P&gt;authentication pre-share----&amp;gt;only used for authentication&lt;/P&gt;&lt;P&gt;hash md5&lt;/P&gt;&lt;P&gt;encryption 3des&lt;/P&gt;&lt;P&gt;group 2&lt;/P&gt;&lt;P&gt;crypto isakmp key cisco 123 address 192.1.23.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phase 2&lt;/P&gt;&lt;P&gt;crypto ipsec transform-set TSET1 esp-3des esp-md5-hmac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;access-list 101 permit ip 10.1.1.0&amp;nbsp; 0.0.0.255 10.3.3.0&amp;nbsp; 0.0.0.255&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Crypto map CMAP 10 ipsec-isakmp&lt;/P&gt;&lt;P&gt;set peer 192.1.23.3&lt;/P&gt;&lt;P&gt;set transform-set TSET1&lt;/P&gt;&lt;P&gt;match address 101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int e0/0&lt;/P&gt;&lt;P&gt;crypto map CMAP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 10:18:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deffie-hellman-key-exchange-question/m-p/4124888#M1072277</guid>
      <dc:creator>23nick</dc:creator>
      <dc:date>2020-07-24T10:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deffie Hellman key exchange question</title>
      <link>https://community.cisco.com/t5/network-security/deffie-hellman-key-exchange-question/m-p/4125209#M1072282</link>
      <description>&lt;P&gt;The way you described the calculation of diffie hellman doesn't sound like how the calculation is made.&amp;nbsp; The formula for calculating Diffie-Hellman is: (where p = prime number (public), g = random number (public), and a = secret number (private))&lt;/P&gt;
&lt;P&gt;Site1: A = (g^a) mod p&lt;/P&gt;
&lt;P&gt;Site2: B = (g^a) mod p&lt;/P&gt;
&lt;P&gt;Then A and B are exchanged between the two sites where the message is decrypted by inserting A and B respectively into the equation along with using their own private number and both sides will come to the same answer.&lt;/P&gt;
&lt;P&gt;p and g are random positive numbers that are generated (I assume by the initiator...though this I am not certain of) and agreed upon by both sides.&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;p = 33&lt;BR /&gt;g = 14&lt;/P&gt;
&lt;P&gt;Site 1:&lt;BR /&gt;a = 6&lt;BR /&gt;A = (14^6) mod 33 = 25&lt;BR /&gt;B = (5^6) mod 33 = 16&lt;/P&gt;
&lt;P&gt;Site 2:&lt;BR /&gt;a = 3&lt;BR /&gt;B = (14^3) mod 33 = 5&lt;BR /&gt;A = (25^3) mod 33 = 16&lt;/P&gt;
&lt;P&gt;Then once the calculations are completed, the number 16 can be used to secure the exchange of security associations which will be used to encrypt traffic.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 21:00:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deffie-hellman-key-exchange-question/m-p/4125209#M1072282</guid>
      <dc:creator>Marius Gunnerud</dc:creator>
      <dc:date>2020-07-24T21:00:58Z</dc:date>
    </item>
  </channel>
</rss>

