* Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not @ 2012-03-02 10:41 satpal parmar 2012-03-02 13:57 ` [Openswan Users] " Paul Wouters 2012-03-03 3:58 ` C.J. Adams-Collier KF7BMP 0 siblings, 2 replies; 5+ messages in thread From: satpal parmar @ 2012-03-02 10:41 UTC (permalink / raw) To: users, linux-crypto Hi All ! I recently ported Openswan on ARM cortex based SOC running linux 2.6.37 (ipsec netkey stack) and openswan 2.6.23. On this board I have H/W accelerator support for AES/DES/SHA. (http://processors.wiki.ti.com/index.php/Installing_AM387x_C6A814x_DM814x_Crypto_Support). AES/DES crypto operation are working fine and I am able to ping through IPsec tunnel from my board to PC and vice versa. However when I am trying ping with SHA-MD5 I am not able to ping to and from Ubuntu machine . My ubuntu machine details: root@vnl-desktop:~# uname -a Linux vnl-desktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 UTC 2011 i686 GNU/Linux MYost probably it could be a IPsec configuration issue on Ubuntu machine but I am not able to locate what configuration could affect behavior of only one crypto algorithm. Since I am using same configuration for IPsec for testing all Crypto algo supported in H/W (DES/AES/SHA-MD5 )and I am successfully able to ping through IPSec tunnel for DES and AES. Just wondering if any one came across any such issue before. Do we have separate config for SHA-MD5? Appreciate any help /pointer reagrading this issue. -SP ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Openswan Users] Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not 2012-03-02 10:41 Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not satpal parmar @ 2012-03-02 13:57 ` Paul Wouters 2012-03-05 2:51 ` satpal parmar 2012-03-03 3:58 ` C.J. Adams-Collier KF7BMP 1 sibling, 1 reply; 5+ messages in thread From: Paul Wouters @ 2012-03-02 13:57 UTC (permalink / raw) To: satpal parmar; +Cc: users, linux-crypto On Fri, 2 Mar 2012, satpal parmar wrote: > > I recently ported Openswan on ARM cortex based SOC running linux > 2.6.37 (ipsec netkey stack) and openswan 2.6.23. On this board I have > H/W accelerator support for AES/DES/SHA. > (http://processors.wiki.ti.com/index.php/Installing_AM387x_C6A814x_DM814x_Crypto_Support). > AES/DES crypto operation are working fine and I am able to ping > through IPsec tunnel from my board to PC and vice versa. Did you need to patch anything for openswan? Can you share your patches with us? > However when > I am trying ping with SHA-MD5 I am not able to ping to and from > Ubuntu machine . > My ubuntu machine details: > root@vnl-desktop:~# uname -a > Linux vnl-desktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 > UTC 2011 i686 GNU/Linux > > MYost probably it could be a IPsec configuration issue on Ubuntu > machine but I am not able to locate what configuration could affect > behavior of only one crypto algorithm. Since I am using same > configuration for IPsec for testing all Crypto algo supported in H/W > (DES/AES/SHA-MD5 )and I am successfully able to ping through IPSec > tunnel for DES and AES. I am not sure what you mean when you bundle "sha-md5" and "des and aes". A tunnel needs both an encryption algorithm (aes or 3des) and an authentication algothim (sha1, sha2, md5, etc). So for your tunnel to work, you would always be using either md5 or sha? Since you say some tunnels work, those algorithms must be working? I am not sure I understand exacly what works and what does not work. Paul _______________________________________________ Users@lists.openswan.org https://lists.openswan.org/mailman/listinfo/users Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy Building and Integrating Virtual Private Networks with Openswan: http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Openswan Users] Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not 2012-03-02 13:57 ` [Openswan Users] " Paul Wouters @ 2012-03-05 2:51 ` satpal parmar 2012-03-06 11:38 ` David McCullough 0 siblings, 1 reply; 5+ messages in thread From: satpal parmar @ 2012-03-05 2:51 UTC (permalink / raw) To: users, linux-crypto Sorry for that confusion Paul. Yes you are right we need both an encryption algorithm and and authentication algorithm for IPsec to work. As per my understanding we can do this either in H/W through some security engine or accelerators or through s/w libraries already supported in Linux. IPsec stack will first look for H/W support and if it fails it will fall back to s/w libraries. On my SOC we have H/W support for AES/DES/SHA-MD5 with driver support from TI. So when I say ping works with AES/DES I mean I see ESP packets going and received both side in wireshark when I ping board to PC(Ubuntu) or vice versa. So from above understanding I assume what is happening is encryption is handled by AES/DES hardware and authentication is been done in S/W. (Is there any better way to confirm other then wireshark ?) But when I include SHA-MD5 h/w driver support this arrangement fail to work. I do see ESP packets going from board and Ubuntu side but none of the sides are able to receive/handle these esp packets. This configuration /ping works fine when I connect another board in place of Ubuntu on other side . It's a strange behavior I am trying to debug. I think David can help us in understanding this situation better? @David: Hello David! Hope you are doing fine. I am back to bug you again! Please have a look at this mail and let me know if my explanation of behavior is consistent with your understanding of IPsec. Thanks for your response everyone. I will update if I make any progress on this issue. -SP On Fri, Mar 2, 2012 at 7:27 PM, Paul Wouters <paul@nohats.ca> wrote: > On Fri, 2 Mar 2012, satpal parmar wrote: > >> >> I recently ported Openswan on ARM cortex based SOC running linux >> 2.6.37 (ipsec netkey stack) and openswan 2.6.23. On this board I have >> H/W accelerator support for AES/DES/SHA. >> >> (http://processors.wiki.ti.com/index.php/Installing_AM387x_C6A814x_DM814x_Crypto_Support). >> AES/DES crypto operation are working fine and I am able to ping >> through IPsec tunnel from my board to PC and vice versa. > > > Did you need to patch anything for openswan? Can you share your patches > with us? > > >> However when >> I am trying ping with SHA-MD5 I am not able to ping to and from >> Ubuntu machine . > > > >> My ubuntu machine details: >> root@vnl-desktop:~# uname -a >> Linux vnl-desktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 >> UTC 2011 i686 GNU/Linux >> >> MYost probably it could be a IPsec configuration issue on Ubuntu >> machine but I am not able to locate what configuration could affect >> behavior of only one crypto algorithm. Since I am using same >> configuration for IPsec for testing all Crypto algo supported in H/W >> (DES/AES/SHA-MD5 )and I am successfully able to ping through IPSec >> tunnel for DES and AES. > > > I am not sure what you mean when you bundle "sha-md5" and "des and aes". > A tunnel needs both an encryption algorithm (aes or 3des) and an > authentication algothim (sha1, sha2, md5, etc). So for your tunnel > to work, you would always be using either md5 or sha? Since you say > some tunnels work, those algorithms must be working? > > I am not sure I understand exacly what works and what does not work. > > Paul _______________________________________________ Users@lists.openswan.org https://lists.openswan.org/mailman/listinfo/users Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy Building and Integrating Virtual Private Networks with Openswan: http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Openswan Users] Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not 2012-03-05 2:51 ` satpal parmar @ 2012-03-06 11:38 ` David McCullough 0 siblings, 0 replies; 5+ messages in thread From: David McCullough @ 2012-03-06 11:38 UTC (permalink / raw) To: satpal parmar; +Cc: users, linux-crypto Jivin satpal parmar lays it down ... > Sorry for that confusion Paul. Yes you are right we need both an > encryption algorithm and and authentication algorithm for IPsec to > work. As per my understanding we can do this either in H/W through > some security engine or accelerators or through s/w libraries already > supported in Linux. IPsec stack will first look for H/W support and > if it fails it will fall back to s/w libraries. > > On my SOC we have H/W support for AES/DES/SHA-MD5 with driver support > from TI. So when I say ping works with AES/DES I mean I see ESP > packets going and received both side in wireshark when I ping board to > PC(Ubuntu) or vice versa. So from above understanding I assume what is > happening is encryption is handled by AES/DES hardware and > authentication is been done in S/W. (Is there any better way to > confirm other then wireshark ?) > > But when I include SHA-MD5 h/w driver support this arrangement fail to > work. I do see ESP packets going from board and Ubuntu side but none > of the sides are able to receive/handle these esp packets. This > configuration /ping works fine when I connect another board in place > of Ubuntu on other side . It's a strange behavior I am trying to > debug. If you can get two of your boards to communicate using openswan, but cannot get one of your boards to talk to a PC running ubuntu then I would say that there is a problem with the HW implementation of the hashing functions (md5/sha) and it is somehow incorrect, but consistent. For example, if the hashing always returned 0x1234, the two boards would interoperate, but it wouldn't work with any other system. You should start by testing those and comparing their output against the kernels software implementations. Cheers, Davidm > I think David can help us in understanding this situation better? > > @David: Hello David! Hope you are doing fine. I am back to bug you > again! Please have a look at this mail and let me know if my > explanation of behavior is consistent with your understanding of > IPsec. > > Thanks for your response everyone. I will update if I make any > progress on this issue. > > -SP > > > On Fri, Mar 2, 2012 at 7:27 PM, Paul Wouters <paul@nohats.ca> wrote: > > On Fri, 2 Mar 2012, satpal parmar wrote: > > > >> > >> I recently ported Openswan on ARM cortex based SOC running linux > >> 2.6.37 (ipsec netkey stack) and openswan 2.6.23. On this board I have > >> H/W accelerator support for AES/DES/SHA. > >> > >> (http://processors.wiki.ti.com/index.php/Installing_AM387x_C6A814x_DM814x_Crypto_Support). > >> AES/DES crypto operation are working fine and I am able to ping > >> through IPsec tunnel from my board to PC and vice versa. > > > > > > Did you need to patch anything for openswan? Can you share your patches > > with us? > > > > > >> However when > >> I am trying ping with SHA-MD5 I am not able to ping ??to and from > >> Ubuntu machine . > > > > > > > >> My ubuntu machine details: > >> root@vnl-desktop:~# uname -a > >> Linux vnl-desktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 > >> UTC 2011 i686 GNU/Linux > >> > >> MYost probably it could be a IPsec configuration issue on Ubuntu > >> machine but I am not able to locate ??what configuration could affect > >> behavior of only one crypto algorithm. Since I am using same > >> configuration for IPsec for testing all Crypto algo supported in H/W > >> (DES/AES/SHA-MD5 )and ??I am successfully able to ping through IPSec > >> tunnel for DES and AES. > > > > > > I am not sure what you mean when you bundle "sha-md5" and "des and aes". > > A tunnel needs both an encryption algorithm (aes or 3des) and an > > authentication algothim (sha1, sha2, md5, etc). So for your tunnel > > to work, you would always be using either md5 or sha? Since you say > > some tunnels work, those algorithms must be working? > > > > I am not sure I understand exacly what works and what does not work. > > > > Paul > > -- David McCullough, david_mccullough@mcafee.com, Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not 2012-03-02 10:41 Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not satpal parmar 2012-03-02 13:57 ` [Openswan Users] " Paul Wouters @ 2012-03-03 3:58 ` C.J. Adams-Collier KF7BMP 1 sibling, 0 replies; 5+ messages in thread From: C.J. Adams-Collier KF7BMP @ 2012-03-03 3:58 UTC (permalink / raw) To: satpal parmar; +Cc: users, linux-crypto [-- Attachment #1: Type: text/plain, Size: 1669 bytes --] Hi there! Have you found any kernel error messages in /var/log/kern.log or similar? I heard rumor of a recent mv_cesa issues. What's lsmod say? On Fri, 2012-03-02 at 16:11 +0530, satpal parmar wrote: > Hi All ! > > I recently ported Openswan on ARM cortex based SOC running linux > 2.6.37 (ipsec netkey stack) and openswan 2.6.23. On this board I have > H/W accelerator support for AES/DES/SHA. > (http://processors.wiki.ti.com/index.php/Installing_AM387x_C6A814x_DM814x_Crypto_Support). > AES/DES crypto operation are working fine and I am able to ping > through IPsec tunnel from my board to PC and vice versa. However when > I am trying ping with SHA-MD5 I am not able to ping to and from > Ubuntu machine . > > My ubuntu machine details: > root@vnl-desktop:~# uname -a > Linux vnl-desktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:08:37 > UTC 2011 i686 GNU/Linux > > MYost probably it could be a IPsec configuration issue on Ubuntu > machine but I am not able to locate what configuration could affect > behavior of only one crypto algorithm. Since I am using same > configuration for IPsec for testing all Crypto algo supported in H/W > (DES/AES/SHA-MD5 )and I am successfully able to ping through IPSec > tunnel for DES and AES. > > Just wondering if any one came across any such issue before. Do we > have separate config for SHA-MD5? > > Appreciate any help /pointer reagrading this issue. > > -SP > -- > To unsubscribe from this list: send the line "unsubscribe linux-crypto" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-03-06 11:40 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-03-02 10:41 Openswan IPsec: ARM cortex SoC board to board ping works but board to Ubuntu does not satpal parmar 2012-03-02 13:57 ` [Openswan Users] " Paul Wouters 2012-03-05 2:51 ` satpal parmar 2012-03-06 11:38 ` David McCullough 2012-03-03 3:58 ` C.J. Adams-Collier KF7BMP
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).