[API-NEXT,v2,0/8] crypto rework and support for SHA-1/-512

Message ID 20170403114212.23355-1-dmitry.ereminsolenikov@linaro.org
Headers show
  • crypto rework and support for SHA-1/-512
Related show


Dmitry Eremin-Solenikov April 3, 2017, 11:42 a.m.
This is the second iteration of crypto framework update. As before this
patchset targets api-next, because it implements sha-1/512 (and supporting
those algorithms was one of main reasons for rewriting auth code). However the
rest of the patchset should be applicable to master branch.

Changes since v1:

 - Dropped iv copying for AES GCM case. It is unnecessary in case of using
   generic EVP API.

 - Fixed checkpatch warning.

Note. Patches 5 and 6 still generate checkpatch warnings. However in case of
patch 5 it seems like an error in checkpatch logic. Patch 6 triggers CamelCase
warning due to odp_crypto using OpenSSL (which uses mixed case for function

Dmitry Eremin-Solenikov (8):
  validation: crypto: add tests for checking message digests
  validation: crypto: correct comment for HMAC-SHA-256 tests
  validation: crypto: add HMAC-SHA-1-96 test cases
  validation: crypto: add HMAC-SHA-512 test cases
  linux-generic: crypto: unify auth code
  linux-generic: crypto: switch to EVP interface for cipher algorithms
  linux-generic: crypto: add SHA-1 authentication support
  linux-generic: crypto: add HMAC-SHA-512 authentication support

 .../linux-generic/include/odp_crypto_internal.h    |  30 +-
 platform/linux-generic/odp_crypto.c                | 382 ++++++---------------
 test/common_plat/validation/api/crypto/crypto.h    |  12 +-
 .../validation/api/crypto/odp_crypto_test_inp.c    | 368 +++++++++++++++++++-
 .../validation/api/crypto/test_vectors.h           |  94 +++++
 .../validation/api/crypto/test_vectors_len.h       |  12 +
 6 files changed, 569 insertions(+), 329 deletions(-)