Advertisement
jrenken

OpenSSL on DreamPlug with Debian Squeeze

Jun 10th, 2011
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.88 KB | None | 0 0
  1. Benchmarks with GlobalScale stock kernel, from: http://code.google.com/p/dreamplug/downloads/list
  2.  
  3. # uname -a
  4. Linux dreamplug 2.6.33.6 #1 PREEMPT Tue Feb 8 03:18:41 EST 2011 armv5tel GNU/Linux
  5.  
  6. # cat /etc/apt/sources.list
  7. deb http://http.us.debian.org/debian squeeze main contrib non-free
  8. deb http://http.us.debian.org/debian squeeze-updates main contrib non-free
  9. deb http://security.debian.org squeeze/updates main contrib non-free
  10.  
  11. deb-src http://http.us.debian.org/debian squeeze main contrib non-free
  12. deb-src http://http.us.debian.org/debian squeeze-updates main contrib non-free
  13. deb-src http://security.debian.org squeeze/updates main contrib non-free
  14.  
  15. # cat /proc/cpuinfo
  16. Processor : Feroceon 88FR131 rev 1 (v5l)
  17. BogoMIPS : 1192.75
  18. Features : swp half thumb fastmult edsp
  19. CPU implementer : 0x56
  20. CPU architecture: 5TE
  21. CPU variant : 0x2
  22. CPU part : 0x131
  23. CPU revision : 1
  24.  
  25. Hardware : Marvell GuruPlug Reference Board
  26. Revision : 0000
  27. Serial : 0000000000000000
  28.  
  29. # cat /proc/meminfo
  30. MemTotal: 513780 kB
  31. MemFree: 370548 kB
  32. Buffers: 11624 kB
  33. Cached: 106484 kB
  34. SwapCached: 0 kB
  35. Active: 98364 kB
  36. Inactive: 31096 kB
  37. Active(anon): 38656 kB
  38. Inactive(anon): 628 kB
  39. Active(file): 59708 kB
  40. Inactive(file): 30468 kB
  41. Unevictable: 0 kB
  42. Mlocked: 0 kB
  43. SwapTotal: 0 kB
  44. SwapFree: 0 kB
  45. Dirty: 0 kB
  46. Writeback: 0 kB
  47. AnonPages: 11368 kB
  48. Mapped: 7868 kB
  49. Shmem: 27932 kB
  50. Slab: 6448 kB
  51. SReclaimable: 3516 kB
  52. SUnreclaim: 2932 kB
  53. KernelStack: 1088 kB
  54. PageTables: 580 kB
  55. NFS_Unstable: 0 kB
  56. Bounce: 0 kB
  57. WritebackTmp: 0 kB
  58. CommitLimit: 256888 kB
  59. Committed_AS: 94752 kB
  60. VmallocTotal: 491520 kB
  61. VmallocUsed: 3056 kB
  62. VmallocChunk: 487872 kB
  63.  
  64. # openssl speed
  65. Doing md2 for 3s on 16 size blocks: 122476 md2's in 2.99s
  66. Doing md2 for 3s on 64 size blocks: 67694 md2's in 3.00s
  67. Doing md2 for 3s on 256 size blocks: 24261 md2's in 3.00s
  68. Doing md2 for 3s on 1024 size blocks: 6810 md2's in 3.00s
  69. Doing md2 for 3s on 8192 size blocks: 882 md2's in 3.00s
  70. Doing md4 for 3s on 16 size blocks: 770980 md4's in 2.99s
  71. Doing md4 for 3s on 64 size blocks: 694521 md4's in 3.00s
  72. Doing md4 for 3s on 256 size blocks: 514645 md4's in 3.00s
  73. Doing md4 for 3s on 1024 size blocks: 251637 md4's in 3.00s
  74. Doing md4 for 3s on 8192 size blocks: 43600 md4's in 3.00s
  75. Doing md5 for 3s on 16 size blocks: 623897 md5's in 3.00s
  76. Doing md5 for 3s on 64 size blocks: 548525 md5's in 2.99s
  77. Doing md5 for 3s on 256 size blocks: 396362 md5's in 3.00s
  78. Doing md5 for 3s on 1024 size blocks: 188326 md5's in 3.00s
  79. Doing md5 for 3s on 8192 size blocks: 31974 md5's in 3.00s
  80. Doing hmac(md5) for 3s on 16 size blocks: 803103 hmac(md5)'s in 3.00s
  81. Doing hmac(md5) for 3s on 64 size blocks: 679630 hmac(md5)'s in 2.99s
  82. Doing hmac(md5) for 3s on 256 size blocks: 461056 hmac(md5)'s in 3.00s
  83. Doing hmac(md5) for 3s on 1024 size blocks: 202498 hmac(md5)'s in 3.00s
  84. Doing hmac(md5) for 3s on 8192 size blocks: 32456 hmac(md5)'s in 3.00s
  85. Doing sha1 for 3s on 16 size blocks: 562151 sha1's in 3.00s
  86. Doing sha1 for 3s on 64 size blocks: 445183 sha1's in 3.00s
  87. Doing sha1 for 3s on 256 size blocks: 267571 sha1's in 2.99s
  88. Doing sha1 for 3s on 1024 size blocks: 103395 sha1's in 3.00s
  89. Doing sha1 for 3s on 8192 size blocks: 15233 sha1's in 3.00s
  90. Doing sha256 for 3s on 16 size blocks: 481544 sha256's in 3.00s
  91. Doing sha256 for 3s on 64 size blocks: 285020 sha256's in 3.00s
  92. Doing sha256 for 3s on 256 size blocks: 127673 sha256's in 2.99s
  93. Doing sha256 for 3s on 1024 size blocks: 39795 sha256's in 3.00s
  94. Doing sha256 for 3s on 8192 size blocks: 5349 sha256's in 2.99s
  95. Doing sha512 for 3s on 16 size blocks: 59554 sha512's in 3.00s
  96. Doing sha512 for 3s on 64 size blocks: 59654 sha512's in 3.00s
  97. Doing sha512 for 3s on 256 size blocks: 21005 sha512's in 3.00s
  98. Doing sha512 for 3s on 1024 size blocks: 7198 sha512's in 3.00s
  99. Doing sha512 for 3s on 8192 size blocks: 1028 sha512's in 2.99s
  100. Doing rmd160 for 3s on 16 size blocks: 466774 rmd160's in 3.00s
  101. Doing rmd160 for 3s on 64 size blocks: 361227 rmd160's in 3.00s
  102. Doing rmd160 for 3s on 256 size blocks: 212312 rmd160's in 3.00s
  103. Doing rmd160 for 3s on 1024 size blocks: 80270 rmd160's in 3.00s
  104. Doing rmd160 for 3s on 8192 size blocks: 11790 rmd160's in 3.00s
  105. Doing rc4 for 3s on 16 size blocks: 6937708 rc4's in 2.99s
  106. Doing rc4 for 3s on 64 size blocks: 1951308 rc4's in 3.00s
  107. Doing rc4 for 3s on 256 size blocks: 503975 rc4's in 3.00s
  108. Doing rc4 for 3s on 1024 size blocks: 127099 rc4's in 3.00s
  109. Doing rc4 for 3s on 8192 size blocks: 15917 rc4's in 3.00s
  110. Doing des cbc for 3s on 16 size blocks: 1495004 des cbc's in 3.00s
  111. Doing des cbc for 3s on 64 size blocks: 405724 des cbc's in 2.99s
  112. Doing des cbc for 3s on 256 size blocks: 103738 des cbc's in 3.00s
  113. Doing des cbc for 3s on 1024 size blocks: 26077 des cbc's in 3.00s
  114. Doing des cbc for 3s on 8192 size blocks: 3264 des cbc's in 3.00s
  115. Doing des ede3 for 3s on 16 size blocks: 568073 des ede3's in 3.00s
  116. Doing des ede3 for 3s on 64 size blocks: 146383 des ede3's in 3.00s
  117. Doing des ede3 for 3s on 256 size blocks: 36872 des ede3's in 3.00s
  118. Doing des ede3 for 3s on 1024 size blocks: 9238 des ede3's in 2.99s
  119. Doing des ede3 for 3s on 8192 size blocks: 1155 des ede3's in 3.00s
  120. Doing aes-128 cbc for 3s on 16 size blocks: 1692575 aes-128 cbc's in 3.00s
  121. Doing aes-128 cbc for 3s on 64 size blocks: 465134 aes-128 cbc's in 3.00s
  122. Doing aes-128 cbc for 3s on 256 size blocks: 119350 aes-128 cbc's in 3.00s
  123. Doing aes-128 cbc for 3s on 1024 size blocks: 30028 aes-128 cbc's in 2.99s
  124. Doing aes-128 cbc for 3s on 8192 size blocks: 3759 aes-128 cbc's in 3.00s
  125. Doing aes-192 cbc for 3s on 16 size blocks: 1466123 aes-192 cbc's in 3.00s
  126. Doing aes-192 cbc for 3s on 64 size blocks: 400505 aes-192 cbc's in 3.00s
  127. Doing aes-192 cbc for 3s on 256 size blocks: 102296 aes-192 cbc's in 3.00s
  128. Doing aes-192 cbc for 3s on 1024 size blocks: 25720 aes-192 cbc's in 3.00s
  129. Doing aes-192 cbc for 3s on 8192 size blocks: 3217 aes-192 cbc's in 3.00s
  130. Doing aes-256 cbc for 3s on 16 size blocks: 1309990 aes-256 cbc's in 2.99s
  131. Doing aes-256 cbc for 3s on 64 size blocks: 351233 aes-256 cbc's in 3.00s
  132. Doing aes-256 cbc for 3s on 256 size blocks: 89520 aes-256 cbc's in 3.00s
  133. Doing aes-256 cbc for 3s on 1024 size blocks: 22480 aes-256 cbc's in 3.01s
  134. Doing aes-256 cbc for 3s on 8192 size blocks: 2812 aes-256 cbc's in 3.00s
  135. Doing aes-128 ige for 3s on 16 size blocks: 1681216 aes-128 ige's in 3.00s
  136. Doing aes-128 ige for 3s on 64 size blocks: 473351 aes-128 ige's in 2.99s
  137. Doing aes-128 ige for 3s on 256 size blocks: 122480 aes-128 ige's in 3.00s
  138. Doing aes-128 ige for 3s on 1024 size blocks: 30893 aes-128 ige's in 3.00s
  139. Doing aes-128 ige for 3s on 8192 size blocks: 3826 aes-128 ige's in 3.00s
  140. Doing aes-192 ige for 3s on 16 size blocks: 1466402 aes-192 ige's in 3.00s
  141. Doing aes-192 ige for 3s on 64 size blocks: 412688 aes-192 ige's in 3.00s
  142. Doing aes-192 ige for 3s on 256 size blocks: 107345 aes-192 ige's in 3.00s
  143. Doing aes-192 ige for 3s on 1024 size blocks: 27087 aes-192 ige's in 2.99s
  144. Doing aes-192 ige for 3s on 8192 size blocks: 3362 aes-192 ige's in 3.00s
  145. Doing aes-256 ige for 3s on 16 size blocks: 1298774 aes-256 ige's in 3.00s
  146. Doing aes-256 ige for 3s on 64 size blocks: 360722 aes-256 ige's in 3.00s
  147. Doing aes-256 ige for 3s on 256 size blocks: 93316 aes-256 ige's in 2.99s
  148. Doing aes-256 ige for 3s on 1024 size blocks: 23534 aes-256 ige's in 3.00s
  149. Doing aes-256 ige for 3s on 8192 size blocks: 2922 aes-256 ige's in 3.00s
  150. Doing rc2 cbc for 3s on 16 size blocks: 1716926 rc2 cbc's in 3.00s
  151. Doing rc2 cbc for 3s on 64 size blocks: 459696 rc2 cbc's in 3.00s
  152. Doing rc2 cbc for 3s on 256 size blocks: 117055 rc2 cbc's in 3.00s
  153. Doing rc2 cbc for 3s on 1024 size blocks: 29390 rc2 cbc's in 2.99s
  154. Doing rc2 cbc for 3s on 8192 size blocks: 3679 rc2 cbc's in 3.00s
  155. Doing blowfish cbc for 3s on 16 size blocks: 2918873 blowfish cbc's in 3.00s
  156. Doing blowfish cbc for 3s on 64 size blocks: 856041 blowfish cbc's in 3.00s
  157. Doing blowfish cbc for 3s on 256 size blocks: 223821 blowfish cbc's in 3.00s
  158. Doing blowfish cbc for 3s on 1024 size blocks: 56612 blowfish cbc's in 3.00s
  159. Doing blowfish cbc for 3s on 8192 size blocks: 7095 blowfish cbc's in 2.99s
  160. Doing cast cbc for 3s on 16 size blocks: 2913689 cast cbc's in 3.00s
  161. Doing cast cbc for 3s on 64 size blocks: 862679 cast cbc's in 3.00s
  162. Doing cast cbc for 3s on 256 size blocks: 226385 cast cbc's in 3.00s
  163. Doing cast cbc for 3s on 1024 size blocks: 57288 cast cbc's in 3.00s
  164. Doing cast cbc for 3s on 8192 size blocks: 7184 cast cbc's in 3.00s
  165. Doing 512 bit private rsa's for 10s: 3579 512 bit private RSA's in 9.99s
  166. Doing 512 bit public rsa's for 10s: 44964 512 bit public RSA's in 10.00s
  167. Doing 1024 bit private rsa's for 10s: 792 1024 bit private RSA's in 10.00s
  168. Doing 1024 bit public rsa's for 10s: 17367 1024 bit public RSA's in 10.00s
  169. Doing 2048 bit private rsa's for 10s: 145 2048 bit private RSA's in 10.00s
  170. Doing 2048 bit public rsa's for 10s: 5642 2048 bit public RSA's in 10.00s
  171. Doing 4096 bit private rsa's for 10s: 24 4096 bit private RSA's in 10.26s
  172. Doing 4096 bit public rsa's for 10s: 1685 4096 bit public RSA's in 9.99s
  173. Doing 512 bit sign dsa's for 10s: 4424 512 bit DSA signs in 10.00s
  174. Doing 512 bit verify dsa's for 10s: 3947 512 bit DSA verify in 9.99s
  175. Doing 1024 bit sign dsa's for 10s: 1742 1024 bit DSA signs in 10.01s
  176. Doing 1024 bit verify dsa's for 10s: 1462 1024 bit DSA verify in 9.99s
  177. Doing 2048 bit sign dsa's for 10s: 569 2048 bit DSA signs in 10.00s
  178. Doing 2048 bit verify dsa's for 10s: 488 2048 bit DSA verify in 10.01s
  179. OpenSSL 0.9.8o 01 Jun 2010
  180. built on: Thu Feb 10 21:19:23 UTC 2011
  181. options:bn(64,32) md2(int) rc4(ptr,int) des(idx,risc1,4,long) aes(partial) blowfish(idx)
  182. compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall
  183. available timing options: TIMES TIMEB HZ=100 [sysconf value]
  184. timing function used: times
  185. The 'numbers' are in 1000s of bytes per second processed.
  186. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
  187. md2 655.39k 1444.14k 2070.27k 2324.48k 2408.45k
  188. mdc2 0.00 0.00 0.00 0.00 0.00
  189. md4 4125.65k 14816.45k 43916.37k 85892.10k 119057.07k
  190. md5 3327.45k 11741.00k 33822.89k 64281.94k 87310.34k
  191. hmac(md5) 4283.22k 14547.26k 39343.45k 69119.32k 88626.52k
  192. sha1 2998.14k 9497.24k 22909.09k 35292.16k 41596.25k
  193. rmd160 2489.46k 7706.18k 18117.29k 27398.83k 32194.56k
  194. rc4 37124.86k 41627.90k 43005.87k 43383.13k 43464.02k
  195. des cbc 7973.35k 8684.39k 8852.31k 8900.95k 8912.90k
  196. des ede3 3029.72k 3122.84k 3146.41k 3163.78k 3153.92k
  197. idea cbc 0.00 0.00 0.00 0.00 0.00
  198. seed cbc 0.00 0.00 0.00 0.00 0.00
  199. rc2 cbc 9156.94k 9806.85k 9988.69k 10065.34k 10046.12k
  200. rc5-32/12 cbc 0.00 0.00 0.00 0.00 0.00
  201. blowfish cbc 15567.32k 18262.21k 19099.39k 19323.56k 19438.88k
  202. cast cbc 15539.67k 18403.82k 19318.19k 19554.30k 19617.11k
  203. aes-128 cbc 9027.07k 9922.86k 10184.53k 10283.84k 10264.58k
  204. aes-192 cbc 7819.32k 8544.11k 8729.26k 8779.09k 8784.55k
  205. aes-256 cbc 7009.98k 7492.97k 7639.04k 7647.68k 7678.63k
  206. camellia-128 cbc 0.00 0.00 0.00 0.00 0.00
  207. camellia-192 cbc 0.00 0.00 0.00 0.00 0.00
  208. camellia-256 cbc 0.00 0.00 0.00 0.00 0.00
  209. sha256 2568.23k 6080.43k 10931.20k 13583.36k 14655.19k
  210. sha512 317.62k 1272.62k 1792.43k 2456.92k 2816.51k
  211. aes-128 ige 8966.49k 10131.93k 10451.63k 10544.81k 10447.53k
  212. aes-192 ige 7820.81k 8804.01k 9160.11k 9276.62k 9180.50k
  213. aes-256 ige 6926.79k 7695.40k 7989.60k 8032.94k 7979.01k
  214. sign verify sign/s verify/s
  215. rsa 512 bits 0.002791s 0.000222s 358.3 4496.4
  216. rsa 1024 bits 0.012626s 0.000576s 79.2 1736.7
  217. rsa 2048 bits 0.068966s 0.001772s 14.5 564.2
  218. rsa 4096 bits 0.427500s 0.005929s 2.3 168.7
  219. sign verify sign/s verify/s
  220. dsa 512 bits 0.002260s 0.002531s 442.4 395.1
  221. dsa 1024 bits 0.005746s 0.006833s 174.0 146.3
  222. dsa 2048 bits 0.017575s 0.020512s 56.9 48.8
  223.  
  224. So, let's try for hardware-accelerated crypto. Assumptions and prerequisites:
  225.  
  226. - DreamPlug
  227. - Debian Squeeze system
  228. - GlobalScale stock (or other replacement-worthy) kernel
  229. - build-essential, bzip2, devscripts, fakeroot & wget packages
  230. - Boot partition (probably /dev/sda1) mounted on /boot
  231. - Plenty of free space for sources
  232.  
  233. To get to this point, see: http://code.google.com/p/dreamplug/downloads/list
  234.  
  235. Run as root (n.b. you are trusting plugapps.com):
  236.  
  237. wget --directory-prefix=/usr/src http://download.gna.org/cryptodev-linux/cryptodev-linux-1.0.tar.gz
  238. wget --directory-prefix=/usr/src http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.7.tar.bz2
  239. wget --directory-prefix=/usr/src http://plugapps.com/mirror/with-linux/2.6.38/2.6.38.7/sheeva-2.6.38.7-Modules.tar.gz
  240. wget --directory-prefix=/boot http://plugapps.com/mirror/with-linux/2.6.38/2.6.38.7/dream-2.6.38.7-uImage
  241. wget --directory-prefix=/boot http://plugapps.com/mirror/with-linux/2.6.38/2.6.38.7/dream-2.6.38.7.config
  242. wget --directory-prefix=/boot http://plugapps.com/mirror/with-linux/2.6.38/2.6.38.7/sheeva-2.6.38.7-System.map
  243. tar -C / -x -v -z --no-same-owner --no-same-permissions -f /usr/src/sheeva-2.6.38.7-Modules.tar.gz
  244. depmod -eF /boot/sheeva-2.6.38.7-System.map 2.6.38.7
  245. tar -C /usr/src -x -v -j --no-same-owner --no-same-permissions -f /usr/src/linux-2.6.38.7.tar.bz2
  246. cp /boot/dream-2.6.38.7.config /usr/src/linux-2.6.38.7/.config
  247. tar -C /usr/src -x -v -z --no-same-owner --no-same-permissions -f /usr/src/cryptodev-linux-1.0.tar.gz
  248.  
  249. Reboot. In U-Boot, from the serial/JTAG console:
  250.  
  251. setenv mainlineLinux yes
  252. setenv arcNumber 2659
  253. printenv
  254.  
  255. Use `setenv _ENV_ _VALUE_` to change "uImage" to "dream-2.6.38.7-uImage". Now:
  256.  
  257. saveenv
  258. reset
  259.  
  260. Let the system boot. Now, as root:
  261.  
  262. make -C /usr/src/linux-2.6.38.7 oldconfig
  263. make -C /usr/src/linux-2.6.38.7 prepare
  264. make -C /usr/src/linux-2.6.38.7
  265.  
  266. Watch for this output, near the top, and hit ^C once you've seen the second line:
  267. HOSTLD scripts/mod/modpost
  268. HOSTCC scripts/kallsyms
  269. (All you need from this potentially lengthy `make` is modpost.) Continue:
  270.  
  271. rm /lib/modules/2.6.38.7/build
  272. rm /lib/modules/2.6.38.7/source
  273. ln -s /usr/src/linux-2.6.38.7 /lib/modules/2.6.38.7/build
  274. ln -s /usr/src/linux-2.6.38.7 /lib/modules/2.6.38.7/source
  275. make -C /usr/src/cryptodev-linux-1.0 install
  276. depmod -eF /boot/sheeva-2.6.38.7-System.map 2.6.38.7
  277. modprobe cryptodev
  278.  
  279. apt-get source openssl
  280. apt-get build-dep openssl
  281. sed -i '/^CONFARGS/s|$| -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS -DHASH_MAX_LEN=64|' /usr/src/openssl-0.9.8o/debian/rules
  282. sed -i '1i\\' /usr/src/openssl-0.9.8o/debian/changelog
  283. sed -i '1i\ -- James Renken <jrenken@sandwich.net> Sat, 11 Jun 2011 01:13:00 -0400' /usr/src/openssl-0.9.8o/debian/changelog
  284. sed -i '1i\\' /usr/src/openssl-0.9.8o/debian/changelog
  285. sed -i '1i\ \ * Patched rules to compile with CRYPTODEV options' /usr/src/openssl-0.9.8o/debian/changelog
  286. sed -i '1i\\' /usr/src/openssl-0.9.8o/debian/changelog
  287. sed -i '1iopenssl (0.9.8o-4squeeze1+cryptodev) stable; urgency=low' /usr/src/openssl-0.9.8o/debian/changelog
  288. cd /usr/src/openssl-0.9.8o ; debuild -us -uc -b
  289. dpkg -i /usr/src/libssl0.9.8_0.9.8o-4squeeze1+cryptodev_armel.deb /usr/src/openssl_0.9.8o-4squeeze1+cryptodev_armel.deb
  290.  
  291. Done! Let's give it a whirl:
  292.  
  293. # uname -a
  294. Linux dreamplug 2.6.38.7 #1 PREEMPT Sun May 22 00:23:53 MDT 2011 armv5tel GNU/Linux
  295.  
  296. # openssl engine
  297. (dynamic) Dynamic engine loading support
  298. (cryptodev) BSD cryptodev engine
  299.  
  300. According to this post, the flags needed for testing are not intuitive: https://mail.gna.org/public/cryptodev-linux-devel/2010-10/msg00023.html
  301.  
  302. # openssl speed -evp aes-128-cbc -engine cryptodev
  303. engine "cryptodev" set.
  304. Doing aes-128-cbc for 3s on 16 size blocks: 81432 aes-128-cbc's in 0.16s
  305. Doing aes-128-cbc for 3s on 64 size blocks: 79173 aes-128-cbc's in 0.03s
  306. Doing aes-128-cbc for 3s on 256 size blocks: 66949 aes-128-cbc's in 0.08s
  307. Doing aes-128-cbc for 3s on 1024 size blocks: 40495 aes-128-cbc's in 0.03s
  308. Doing aes-128-cbc for 3s on 8192 size blocks: 8300 aes-128-cbc's in 0.01s
  309. OpenSSL 0.9.8o 01 Jun 2010
  310. built on: Sat Jun 11 05:44:31 UTC 2011
  311. options:bn(64,32) md2(int) rc4(ptr,int) des(idx,risc1,4,long) aes(partial) blowfish(idx)
  312. compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS -DHASH_MAX_LEN=64 -DL_ENDIAN -DTERMIO -O2 -Wa,--noexecstack -g -Wall
  313. available timing options: TIMES TIMEB HZ=100 [sysconf value]
  314. timing function used: times
  315. The 'numbers' are in 1000s of bytes per second processed.
  316. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
  317. aes-128-cbc 8143.20k 168902.40k 214236.80k 1382229.33k 6799360.00k
  318.  
  319. That's better! Here are two patches that don't apply cleanly to OpenSSL 0.9.8o, but look promising:
  320.  
  321. http://repo.or.cz/w/cryptodev-linux.git/blob/HEAD:/extras/openssl-0.9.8l-cryptodev-aes256.patch
  322. http://people.freebsd.org/~pjd/patches/eng_cryptodev.c.patch
  323.  
  324. Here are the packages I compiled, which may save you time. I might move them later, so check this Pastebin.
  325.  
  326. http://jrenken.com/dreamplug/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement