mbox

[PULL,0/7] crypto asymmetric cipher patches

Message ID 20220526104541.492781-1-berrange@redhat.com
State New
Headers show

Pull-request

https://gitlab.com/berrange/qemu tags/ak-pull-request

Message

Daniel P. Berrangé May 26, 2022, 10:45 a.m. UTC
The following changes since commit 58b53669e87fed0d70903e05cd42079fbbdbc195:

  Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2022-05-25 13:46:29 -0700)

are available in the Git repository at:

  https://gitlab.com/berrange/qemu tags/ak-pull-request

for you to fetch changes up to f0cfb761bc6e590d648b759e6bdb8c946062b5f5:

  tests/crypto: Add test suite for RSA keys (2022-05-26 11:41:56 +0100)

----------------------------------------------------------------
Merge asymmetric cipher crypto support

This extends the internal crypto APIs to support the use of asymmetric
ciphers.

----------------------------------------------------------------

Lei He (6):
  qapi: crypto-akcipher: Introduce akcipher types to qapi
  crypto: add ASN.1 DER decoder
  crypto: Implement RSA algorithm by hogweed
  crypto: Implement RSA algorithm by gcrypt
  test/crypto: Add test suite for crypto akcipher
  tests/crypto: Add test suite for RSA keys

Zhenwei Pi (1):
  crypto: Introduce akcipher crypto class

 crypto/akcipher-gcrypt.c.inc            | 595 ++++++++++++++
 crypto/akcipher-nettle.c.inc            | 451 +++++++++++
 crypto/akcipher.c                       | 108 +++
 crypto/akcipherpriv.h                   |  55 ++
 crypto/der.c                            | 189 +++++
 crypto/der.h                            |  81 ++
 crypto/meson.build                      |   6 +
 crypto/rsakey-builtin.c.inc             | 200 +++++
 crypto/rsakey-nettle.c.inc              | 158 ++++
 crypto/rsakey.c                         |  44 ++
 crypto/rsakey.h                         |  92 +++
 include/crypto/akcipher.h               | 158 ++++
 meson.build                             |  11 +
 qapi/crypto.json                        |  64 ++
 tests/bench/benchmark-crypto-akcipher.c | 137 ++++
 tests/bench/meson.build                 |   1 +
 tests/bench/test_akcipher_keys.inc      | 537 +++++++++++++
 tests/unit/meson.build                  |   2 +
 tests/unit/test-crypto-akcipher.c       | 990 ++++++++++++++++++++++++
 tests/unit/test-crypto-der.c            | 290 +++++++
 20 files changed, 4169 insertions(+)
 create mode 100644 crypto/akcipher-gcrypt.c.inc
 create mode 100644 crypto/akcipher-nettle.c.inc
 create mode 100644 crypto/akcipher.c
 create mode 100644 crypto/akcipherpriv.h
 create mode 100644 crypto/der.c
 create mode 100644 crypto/der.h
 create mode 100644 crypto/rsakey-builtin.c.inc
 create mode 100644 crypto/rsakey-nettle.c.inc
 create mode 100644 crypto/rsakey.c
 create mode 100644 crypto/rsakey.h
 create mode 100644 include/crypto/akcipher.h
 create mode 100644 tests/bench/benchmark-crypto-akcipher.c
 create mode 100644 tests/bench/test_akcipher_keys.inc
 create mode 100644 tests/unit/test-crypto-akcipher.c
 create mode 100644 tests/unit/test-crypto-der.c

Comments

Richard Henderson May 26, 2022, 4:18 p.m. UTC | #1
On 5/26/22 03:45, Daniel P. Berrangé wrote:
> The following changes since commit 58b53669e87fed0d70903e05cd42079fbbdbc195:
> 
>    Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2022-05-25 13:46:29 -0700)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/berrange/qemu tags/ak-pull-request
> 
> for you to fetch changes up to f0cfb761bc6e590d648b759e6bdb8c946062b5f5:
> 
>    tests/crypto: Add test suite for RSA keys (2022-05-26 11:41:56 +0100)
> 
> ----------------------------------------------------------------
> Merge asymmetric cipher crypto support
> 
> This extends the internal crypto APIs to support the use of asymmetric
> ciphers.

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.


r~


> 
> ----------------------------------------------------------------
> 
> Lei He (6):
>    qapi: crypto-akcipher: Introduce akcipher types to qapi
>    crypto: add ASN.1 DER decoder
>    crypto: Implement RSA algorithm by hogweed
>    crypto: Implement RSA algorithm by gcrypt
>    test/crypto: Add test suite for crypto akcipher
>    tests/crypto: Add test suite for RSA keys
> 
> Zhenwei Pi (1):
>    crypto: Introduce akcipher crypto class
> 
>   crypto/akcipher-gcrypt.c.inc            | 595 ++++++++++++++
>   crypto/akcipher-nettle.c.inc            | 451 +++++++++++
>   crypto/akcipher.c                       | 108 +++
>   crypto/akcipherpriv.h                   |  55 ++
>   crypto/der.c                            | 189 +++++
>   crypto/der.h                            |  81 ++
>   crypto/meson.build                      |   6 +
>   crypto/rsakey-builtin.c.inc             | 200 +++++
>   crypto/rsakey-nettle.c.inc              | 158 ++++
>   crypto/rsakey.c                         |  44 ++
>   crypto/rsakey.h                         |  92 +++
>   include/crypto/akcipher.h               | 158 ++++
>   meson.build                             |  11 +
>   qapi/crypto.json                        |  64 ++
>   tests/bench/benchmark-crypto-akcipher.c | 137 ++++
>   tests/bench/meson.build                 |   1 +
>   tests/bench/test_akcipher_keys.inc      | 537 +++++++++++++
>   tests/unit/meson.build                  |   2 +
>   tests/unit/test-crypto-akcipher.c       | 990 ++++++++++++++++++++++++
>   tests/unit/test-crypto-der.c            | 290 +++++++
>   20 files changed, 4169 insertions(+)
>   create mode 100644 crypto/akcipher-gcrypt.c.inc
>   create mode 100644 crypto/akcipher-nettle.c.inc
>   create mode 100644 crypto/akcipher.c
>   create mode 100644 crypto/akcipherpriv.h
>   create mode 100644 crypto/der.c
>   create mode 100644 crypto/der.h
>   create mode 100644 crypto/rsakey-builtin.c.inc
>   create mode 100644 crypto/rsakey-nettle.c.inc
>   create mode 100644 crypto/rsakey.c
>   create mode 100644 crypto/rsakey.h
>   create mode 100644 include/crypto/akcipher.h
>   create mode 100644 tests/bench/benchmark-crypto-akcipher.c
>   create mode 100644 tests/bench/test_akcipher_keys.inc
>   create mode 100644 tests/unit/test-crypto-akcipher.c
>   create mode 100644 tests/unit/test-crypto-der.c
>