Hi Phil,

These two patches add CIOCHASH ioctl that targets only hash operations. It
is a proof of concept with the goal of improving digest performance and make 
use of Linux crypto-API. Please ignore code duplication.

My proposal aims to complete the design of the current cryptodev API so that
both init-update-finalize and digest operations are available.

A smart user can calibrate how much data to buffer before calling update (to 
the ioctl costs) or can decide upfront for one method or the other.
(Openssl for example buffers the whole data and then calls cryptodev-update 
through CIOCCRYPT).

In a particular machine, cryptodev/tests/speed.c reports for SHA1 0.25GB/s with 
0.29GB/s with CIOCHASH.

Please share your feedback for improving this prototype.

Crisitan S.

Cristian Stoica (2):
  extend API with CIOCHASH to support direct hash operations
  use directly crypto API digest operation for CIOCHASH

 crypto/cryptodev.h |  16 ++++++
 cryptodev_int.h    |  10 ++++
 ioctl.c            | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 main.c             |  38 ++++++++++++-
 4 files changed, 216 insertions(+), 3 deletions(-)


Cryptodev-linux-devel mailing list

Reply via email to