RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 618524 - Document how to enable padlock engine for openssl
Summary: Document how to enable padlock engine for openssl
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: doc-Security_Guide
Version: 6.0
Hardware: All
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: Scott Radvan
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-27 07:43 UTC by Miroslav Vadkerti
Modified: 2015-04-07 03:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-29 22:33:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miroslav Vadkerti 2010-07-27 07:43:58 UTC
Description of problem:
The possibility of using HW crypto engine coming with VIA C7 CPUs should be documented. This should be documented maybe also in Installation guide (not sure). 

See bug 563574

Comment 1 Miroslav Vadkerti 2010-07-27 07:44:50 UTC
Tomas, any idea where this documentation should go? Which guide, or should be it also in man pages?

Comment 4 Scott Radvan 2010-07-28 21:25:29 UTC
Need specific details in order to add this. I don't have this information. Have marked NEEDINFO.

Comment 5 Miroslav Vadkerti 2010-07-29 09:17:12 UTC
After discussion this should go to security guide

Comment 6 Miroslav Vadkerti 2010-07-29 09:52:30 UTC
To enable padlock engine in openssl edit /etc/pki/tls/openssl.cnf and add

On the begging of the config file
  openssl_conf = openssl_init

Append on the end:
  [openssl_init]
  engines = openssl_engines
  [openssl_engines]
  padlock = padlock_engine
  [padlock_engine]
  default_algorithms = ALL
  dynamic_path = /usr/lib/openssl/engines/libpadlock.so
  init = 1

Note for 64but systems use:
dynamic_path = /usr/lib64/openssl/engines/libpadlock.so

To check if module enabled run (is should be listed)
# openssl engine -c -tt

To test openssl with padlock use:
# openssl speed aes-128-cbc

'openssl speed' without the hardware engine shows roughly 11MB/s throughput. 
With padlock turned on, it jumps to 98MB/s-1.9GB/s depending on block size. 
(yes, really, 1.9GB/s!)

To test openssh speed you can run a command like:
dd if=/dev/zero count=100 bs=1M | ssh -c aes128-cbc localhost "cat >/dev/null
Actual results:

openssh without padlock engine shows throughput roughly 5MB/s, with the padlock engine it should be significantly improoved

More information on VIA padlock engine is here:
http://www.logix.cz/michal/devel/padlock/

Scott is this info enough for you?
Jan, any other suggestions?

Comment 7 Scott Radvan 2010-07-29 22:33:52 UTC
Miroslav, thank you for that information, it's appreciated. I've added details on this to the Security Guide, and changes will appear on next publish.


Note You need to log in before you can comment on or make changes to this bug.