Ubuntu 11.10 omap/armv7 OpenSSL built without ARMv4 optimization

Bug #922946 reported by James
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openssl (Debian)
New
Unknown
openssl (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I'm running the "OMAP" build of Ubuntu 11.10 on armv7.

root@omap:~/ovpn3/test/cli# uname -a
Linux omap 3.1.0-psp3 #1 SMP Fri Dec 23 10:44:55 UTC 2011 armv7l armv7l armv7l GNU/Linux

I noticed that the OpenSSL build with this distro wasn't built with ARMv4 optimizations. As a result, certain crypto operations such as AES use the slow C version instead of the fast armv4 asm version.

You can confirm this by running an app that uses OpenSSL in gdb and running "disas AES_encrypt".

The resulting disassembly should match the ARMv4 ASM code in crypto/aes/asm/aes-armv4.pl in the OpenSSL distro.

When building OpenSSL, make sure to specify armv4 to get the asm optimizations:

  ./Configure linux-armv4
  make

James

Tags: armel
Colin Watson (cjwatson)
Changed in openssl (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Riku Voipio (riku-voipio) wrote :

I have attached a fix to the debian bug. Note that the "armv4l" in the upstream means "everything from armv4 -> armv7, including runtime detection of neon".

Changed in openssl (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.