The original implementation of --with-ssl-engine doesn't seem to me to do anything at all, because it relies on an ugly re'#define which is not included anywhere it's needed. Even with that included in the appropriate spots, the padlock engine is still not being used.
I've attached a "works for me" kind of patch. It adds the necessary includes so that --with-ssl-engine actually does something, and it also explicitly sets the padlock engine as the preferred cipher provider. Now I can get throughput of 13.6MB/s when performing the above scp test.
The original implementation of --with-ssl-engine doesn't seem to me to do anything at all, because it relies on an ugly re'#define which is not included anywhere it's needed. Even with that included in the appropriate spots, the padlock engine is still not being used.
I've attached a "works for me" kind of patch. It adds the necessary includes so that --with-ssl-engine actually does something, and it also explicitly sets the padlock engine as the preferred cipher provider. Now I can get throughput of 13.6MB/s when performing the above scp test.