qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] daa55f: qapi: crypto-akcipher: Introduce akci


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] daa55f: qapi: crypto-akcipher: Introduce akcipher types to...
Date: Thu, 26 May 2022 07:00:40 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: daa55f3ecf2d413295eb2d539e7629fc05d7bc92
      
https://github.com/qemu/qemu/commit/daa55f3ecf2d413295eb2d539e7629fc05d7bc92
  Author: Lei He <helei.sig11@bytedance.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    M qapi/crypto.json

  Log Message:
  -----------
  qapi: crypto-akcipher: Introduce akcipher types to qapi

Introduce akcipher types, also include RSA related types.

Signed-off-by: Lei He <helei.sig11@bytedance.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


  Commit: db5ca5fbfa6597ac9dd1ae40f986696db9c8b9dd
      
https://github.com/qemu/qemu/commit/db5ca5fbfa6597ac9dd1ae40f986696db9c8b9dd
  Author: zhenwei pi <pizhenwei@bytedance.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    A crypto/akcipher.c
    A crypto/akcipherpriv.h
    M crypto/meson.build
    A include/crypto/akcipher.h

  Log Message:
  -----------
  crypto: Introduce akcipher crypto class

Introduce new akcipher crypto class 'QCryptoAkCIpher', which supports
basic asymmetric operations: encrypt, decrypt, sign and verify.

Suggested by Daniel P. Berrangé, also add autoptr cleanup for the new
class. Thanks to Daniel!

Co-developed-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


  Commit: 99d423f10c636c39405924e68584f50f78a0bb8c
      
https://github.com/qemu/qemu/commit/99d423f10c636c39405924e68584f50f78a0bb8c
  Author: Lei He <helei.sig11@bytedance.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    A crypto/der.c
    A crypto/der.h
    M crypto/meson.build
    M tests/unit/meson.build
    A tests/unit/test-crypto-der.c

  Log Message:
  -----------
  crypto: add ASN.1 DER decoder

Add an ANS.1 DER decoder which is used to parse asymmetric
cipher keys

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


  Commit: 4c5e512ee0c49efb42286600aef31739c0dcee5d
      
https://github.com/qemu/qemu/commit/4c5e512ee0c49efb42286600aef31739c0dcee5d
  Author: Lei He <helei.sig11@bytedance.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    A crypto/akcipher-nettle.c.inc
    M crypto/akcipher.c
    M crypto/meson.build
    A crypto/rsakey-builtin.c.inc
    A crypto/rsakey-nettle.c.inc
    A crypto/rsakey.c
    A crypto/rsakey.h
    M meson.build

  Log Message:
  -----------
  crypto: Implement RSA algorithm by hogweed

Implement RSA algorithm by hogweed from nettle. Thus QEMU supports
a 'real' RSA backend to handle request from guest side. It's
important to test RSA offload case without OS & hardware requirement.

Signed-off-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


  Commit: e09d1c274782e30dcc0ab5e4d62b624d0028d718
      
https://github.com/qemu/qemu/commit/e09d1c274782e30dcc0ab5e4d62b624d0028d718
  Author: Lei He <helei.sig11@bytedance.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    A crypto/akcipher-gcrypt.c.inc
    M crypto/akcipher.c

  Log Message:
  -----------
  crypto: Implement RSA algorithm by gcrypt

Added gcryt implementation of RSA algorithm, RSA algorithm
implemented by gcrypt has a higher priority than nettle because
it supports raw padding.

Signed-off-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


  Commit: 689309c4ac40f01b93f29d66282d044c10d8e2e1
      
https://github.com/qemu/qemu/commit/689309c4ac40f01b93f29d66282d044c10d8e2e1
  Author: Lei He <helei.sig11@bytedance.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    M crypto/akcipher-nettle.c.inc
    A tests/bench/benchmark-crypto-akcipher.c
    M tests/bench/meson.build
    A tests/bench/test_akcipher_keys.inc
    M tests/unit/meson.build
    A tests/unit/test-crypto-akcipher.c

  Log Message:
  -----------
  test/crypto: Add test suite for crypto akcipher

Add unit test and benchmark test for crypto akcipher.

Signed-off-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


  Commit: f0cfb761bc6e590d648b759e6bdb8c946062b5f5
      
https://github.com/qemu/qemu/commit/f0cfb761bc6e590d648b759e6bdb8c946062b5f5
  Author: Lei He <helei.sig11@bytedance.com>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    M tests/unit/test-crypto-akcipher.c

  Log Message:
  -----------
  tests/crypto: Add test suite for RSA keys

As Daniel suggested, Add tests suite for rsakey, as a way to prove
that we can handle DER errors correctly.

Signed-off-by: lei he <helei.sig11@bytedance.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>


  Commit: 2417cbd5916d043e0c56408221fbe9935d0bc8da
      
https://github.com/qemu/qemu/commit/2417cbd5916d043e0c56408221fbe9935d0bc8da
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2022-05-26 (Thu, 26 May 2022)

  Changed paths:
    A crypto/akcipher-gcrypt.c.inc
    A crypto/akcipher-nettle.c.inc
    A crypto/akcipher.c
    A crypto/akcipherpriv.h
    A crypto/der.c
    A crypto/der.h
    M crypto/meson.build
    A crypto/rsakey-builtin.c.inc
    A crypto/rsakey-nettle.c.inc
    A crypto/rsakey.c
    A crypto/rsakey.h
    A include/crypto/akcipher.h
    M meson.build
    M qapi/crypto.json
    A tests/bench/benchmark-crypto-akcipher.c
    M tests/bench/meson.build
    A tests/bench/test_akcipher_keys.inc
    M tests/unit/meson.build
    A tests/unit/test-crypto-akcipher.c
    A tests/unit/test-crypto-der.c

  Log Message:
  -----------
  Merge tag 'ak-pull-request' of https://gitlab.com/berrange/qemu into staging

Merge asymmetric cipher crypto support

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

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEE2vOm/bJrYpEtDo4/vobrtBUQT98FAmKPWdgACgkQvobrtBUQ
# T9/dXA//XozeQbIK9y/1wb60LXiqHiHDMi8Ct1oEpNsLaL4lsp09VjtmxggqMfad
# MjxQjKdOVMVPISRnrKCJQ6qiGKQB7C/php1ZxOPdG4zgf2Ofl312GHZCLjqLkpB8
# KnhdFB31coI45EQ+agk5ZO8Baml85yY4sALLofGXV3xatJswH1HoMAmDATe5ebko
# ox7qd/S9Q4bpZA4v+8fUbvX2zI95hZta8+4d2Irx542gO8KibYKRVmffJhcKx6hy
# 4x7iTEaGQQn3DFMbVxsvb4wLwx1v8sSS6C2rHuGZY67ZzDnYhAdaHG9CaWR3uvtS
# vs7EcEWqn45SfJ/FaYUyon/btsawJrXP9NISmns4J6TYoN6sJJVxk9T9A/hlqtEE
# /iwTfp/Se+o2JDLgC+JHQz8maj4igloGNhF8+u4lXBLEpT7tlvaxhkrcPo9Um7ay
# bWpmLoxVN5vEvOnsrfLhK6LGPIzfjP4tYX0xwWy5Lm/DZ1LinJOONPXjArFr3TaQ
# rcS6L15ZaiFu9bYUyN1Uf7V7VydiVV8RlkuTqJ614gSX0v+GCMR1J+0WsQ4DtPlT
# G6WP0EnnD4Ulg9XpSMte2GXKQ0d8c7hTKr3/RW+BuvvgP5T4P7guBTRhmufRiip6
# BByKpXrQ72yGm6U+nTtEVFdUWVER31U0ufsW64hdM+LGfiG7fUE=
# =X589
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 26 May 2022 03:43:36 AM PDT
# gpg:                using RSA key DAF3A6FDB26B62912D0E8E3FBE86EBB415104FDF
# gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>" [full]
# gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>" [full]

* tag 'ak-pull-request' of https://gitlab.com/berrange/qemu:
  tests/crypto: Add test suite for RSA keys
  test/crypto: Add test suite for crypto akcipher
  crypto: Implement RSA algorithm by gcrypt
  crypto: Implement RSA algorithm by hogweed
  crypto: add ASN.1 DER decoder
  crypto: Introduce akcipher crypto class
  qapi: crypto-akcipher: Introduce akcipher types to qapi

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/58b53669e87f...2417cbd5916d



reply via email to

[Prev in Thread] Current Thread [Next in Thread]