mbox series

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

Message ID 20170308094533.30795-1-dmitry.ereminsolenikov@linaro.org
Headers show
Series crypto rework and support for SHA-1/-512 | expand

Message

Dmitry Eremin-Solenikov March 8, 2017, 9:45 a.m. UTC
This patchset concentrates on updating crypto framework in linux-generic:

- merge auth code to use common code paths for all HMAC auth algos;

- rework cipher code to use EVP API and common code for non-AEAD cipher algos;

- implement HMAC-SHA-1 and HMAC-SHA-512 auth algos.

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.

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    |  28 +-
 platform/linux-generic/odp_crypto.c                | 361 ++++++--------------
 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, 566 insertions(+), 309 deletions(-)

-- 
2.11.0

Comments

Bill Fischofer March 9, 2017, 8:51 a.m. UTC | #1
Part 3/8 doesn't appear either on the mailing list or in patchworks.

On Wed, Mar 8, 2017 at 10:45 AM, Dmitry Eremin-Solenikov <
dmitry.ereminsolenikov@linaro.org> wrote:

> This patchset concentrates on updating crypto framework in linux-generic:

>

> - merge auth code to use common code paths for all HMAC auth algos;

>

> - rework cipher code to use EVP API and common code for non-AEAD cipher

> algos;

>

> - implement HMAC-SHA-1 and HMAC-SHA-512 auth algos.

>

> 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.

>

> 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    |  28 +-

>  platform/linux-generic/odp_crypto.c                | 361

> ++++++--------------

>  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, 566 insertions(+), 309 deletions(-)

>

> --

> 2.11.0

>

>
Dmitry Eremin-Solenikov March 9, 2017, 9:06 a.m. UTC | #2
On 09.03.2017 11:51, Bill Fischofer wrote:
> Part 3/8 doesn't appear either on the mailing list or in patchworks.


Strange. Anyway, I've resent the patch and this time it showed in archives.

> 

> On Wed, Mar 8, 2017 at 10:45 AM, Dmitry Eremin-Solenikov

> <dmitry.ereminsolenikov@linaro.org

> <mailto:dmitry.ereminsolenikov@linaro.org>> wrote:

> 

>     This patchset concentrates on updating crypto framework in

>     linux-generic:

> 

>     - merge auth code to use common code paths for all HMAC auth algos;

> 

>     - rework cipher code to use EVP API and common code for non-AEAD

>     cipher algos;

> 

>     - implement HMAC-SHA-1 and HMAC-SHA-512 auth algos.

> 

>     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.

> 

>     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    |  28 +-

>      platform/linux-generic/odp_crypto.c                | 361

>     ++++++--------------

>      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, 566 insertions(+), 309 deletions(-)

> 

>     --

>     2.11.0

> 

> 



-- 
With best wishes
Dmitry