[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 4/9] crypto: add ASN.1 DER decoder
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v6 4/9] crypto: add ASN.1 DER decoder |
Date: |
Mon, 23 May 2022 10:46:24 +0100 |
User-agent: |
Mutt/2.2.1 (2022-02-19) |
On Sat, May 14, 2022 at 08:54:59AM +0800, zhenwei pi wrote:
> From: Lei He <helei.sig11@bytedance.com>
>
> 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>
> ---
> crypto/der.c | 189 +++++++++++++++++++++++
> crypto/der.h | 81 ++++++++++
> crypto/meson.build | 1 +
> tests/unit/meson.build | 1 +
> tests/unit/test-crypto-der.c | 290 +++++++++++++++++++++++++++++++++++
> 5 files changed, 562 insertions(+)
> create mode 100644 crypto/der.c
> create mode 100644 crypto/der.h
> create mode 100644 tests/unit/test-crypto-der.c
>
> diff --git a/tests/unit/meson.build b/tests/unit/meson.build
> index 264f2bc0c8..a8af85128d 100644
> --- a/tests/unit/meson.build
> +++ b/tests/unit/meson.build
> @@ -47,6 +47,7 @@ tests = {
> 'ptimer-test': ['ptimer-test-stubs.c', meson.project_source_root() /
> 'hw/core/ptimer.c'],
> 'test-qapi-util': [],
> 'test-smp-parse': [qom, meson.project_source_root() /
> 'hw/core/machine-smp.c'],
> + 'test-crypto-der': [crypto],
> }
This needs to be moved to later in this file where the other
test-crypto-XXXX rules are, otherwise it fails to build
on a configuration --without-system --without-tools.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH v6 0/9] Introduce akcipher service for virtio-crypto, zhenwei pi, 2022/05/13
- [PATCH v6 3/9] crypto: Introduce akcipher crypto class, zhenwei pi, 2022/05/13
- [PATCH v6 1/9] virtio-crypto: header update, zhenwei pi, 2022/05/13
- [PATCH v6 2/9] qapi: crypto-akcipher: Introduce akcipher types to qapi, zhenwei pi, 2022/05/13
- [PATCH v6 4/9] crypto: add ASN.1 DER decoder, zhenwei pi, 2022/05/13
- Re: [PATCH v6 4/9] crypto: add ASN.1 DER decoder,
Daniel P . Berrangé <=
- [PATCH v6 5/9] crypto: Implement RSA algorithm by hogweed, zhenwei pi, 2022/05/13
- [PATCH v6 6/9] crypto: Implement RSA algorithm by gcrypt, zhenwei pi, 2022/05/13
- [PATCH v6 7/9] test/crypto: Add test suite for crypto akcipher, zhenwei pi, 2022/05/13
- [PATCH v6 8/9] tests/crypto: Add test suite for RSA keys, zhenwei pi, 2022/05/13
- [PATCH v6 9/9] crypto: Introduce RSA algorithm, zhenwei pi, 2022/05/13