<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/include/crypto, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/include/crypto?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/include/crypto?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-11-02T10:56:32+00:00</updated>
<entry>
<title>crypto: Support export akcipher to pkcs8</title>
<updated>2022-11-02T10:56:32+00:00</updated>
<author>
<name>Lei He</name>
</author>
<published>2022-10-08T08:50:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=58660863ba5ca4f74fa70671da2899b264dc5f34'/>
<id>urn:sha1:58660863ba5ca4f74fa70671da2899b264dc5f34</id>
<content type='text'>
crypto: support export RSA private keys with PKCS#8 standard.
So that users can upload this private key to linux kernel.

Signed-off-by: lei he &lt;helei.sig11@bytedance.com&gt;
Message-Id: &lt;20221008085030.70212-4-helei.sig11@bytedance.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>crypto: Make block callbacks return 0 on success</title>
<updated>2022-07-12T10:14:55+00:00</updated>
<author>
<name>Alberto Faria</name>
</author>
<published>2022-06-09T15:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=757dda54b43867936012970a1b457f3d16e7398d'/>
<id>urn:sha1:757dda54b43867936012970a1b457f3d16e7398d</id>
<content type='text'>
They currently return the value of their headerlen/buflen parameter on
success. Returning 0 instead makes it clear that short reads/writes are
not possible.

Signed-off-by: Alberto Faria &lt;afaria@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20220609152744.3891847-5-afaria@redhat.com&gt;
Reviewed-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>crypto: Introduce akcipher crypto class</title>
<updated>2022-05-26T10:41:47+00:00</updated>
<author>
<name>zhenwei pi</name>
</author>
<published>2022-05-25T09:01:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=db5ca5fbfa6597ac9dd1ae40f986696db9c8b9dd'/>
<id>urn:sha1:db5ca5fbfa6597ac9dd1ae40f986696db9c8b9dd</id>
<content type='text'>
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 &lt;helei.sig11@bytedance.com&gt;
Signed-off-by: lei he &lt;helei.sig11@bytedance.com&gt;
Signed-off-by: zhenwei pi &lt;pizhenwei@bytedance.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>Clean up header guards that don't match their file name</title>
<updated>2022-05-11T14:49:06+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2022-05-06T13:49:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=52581c718c5cd55595ca032a56f1e194c5716456'/>
<id>urn:sha1:52581c718c5cd55595ca032a56f1e194c5716456</id>
<content type='text'>
Header guard symbols should match their file name to make guard
collisions less likely.

Cleaned up with scripts/clean-header-guards.pl, followed by some
renaming of new guard symbols picked by the script to better ones.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20220506134911.2856099-2-armbru@redhat.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
[Change to generated file ebpf/rss.bpf.skeleton.h backed out]
</content>
</entry>
<entry>
<title>crypto: move sm4_sbox from target/arm</title>
<updated>2022-04-29T00:47:45+00:00</updated>
<author>
<name>Weiwei Li</name>
</author>
<published>2022-04-23T02:35:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c29da5a7fe6a5d3e1719ce9a831076df2eff52d5'/>
<id>urn:sha1:c29da5a7fe6a5d3e1719ce9a831076df2eff52d5</id>
<content type='text'>
   - share it between target/arm and target/riscv

Signed-off-by: Weiwei Li &lt;liweiwei@iscas.ac.cn&gt;
Signed-off-by: Junqiang Wang &lt;wangjunqiang@iscas.ac.cn&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20220423023510.30794-6-liweiwei@iscas.ac.cn&gt;
Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>crypto: Make QCryptoTLSCreds* structures private</title>
<updated>2021-06-29T17:30:24+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2021-06-28T16:09:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=678bcc3c2cf22262d0a72b52da57737c4a40e040'/>
<id>urn:sha1:678bcc3c2cf22262d0a72b52da57737c4a40e040</id>
<content type='text'>
Code consuming the "crypto/tlscreds*.h" APIs doesn't need
to access its internals. Move the structure definitions to
the "tlscredspriv.h" private header (only accessible by
implementations). The public headers (in include/) still
forward-declare the structures typedef.

Note, tlscreds.c and 3 of the 5 modified source files already
include "tlscredspriv.h", so only add it to tls-cipher-suites.c
and tlssession.c.

Removing the internals from the public header solves a bug
introduced by commit 7de2e856533 ("yank: Unregister function
when using TLS migration") which made migration/qemu-file-channel.c
include "io/channel-tls.h", itself sometime depends on GNUTLS,
leading to a build failure on OSX:

  [2/35] Compiling C object libmigration.fa.p/migration_qemu-file-channel.c.o
  FAILED: libmigration.fa.p/migration_qemu-file-channel.c.o
  cc -Ilibmigration.fa.p -I. -I.. -Iqapi [ ... ] -o libmigration.fa.p/migration_qemu-file-channel.c.o -c ../migration/qemu-file-channel.c
  In file included from ../migration/qemu-file-channel.c:29:
  In file included from include/io/channel-tls.h:26:
  In file included from include/crypto/tlssession.h:24:
  include/crypto/tlscreds.h:28:10: fatal error: 'gnutls/gnutls.h' file not found
  #include &lt;gnutls/gnutls.h&gt;
           ^~~~~~~~~~~~~~~~~
  1 error generated.

Reported-by: Stefan Weil &lt;sw@weilnetz.de&gt;
Suggested-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/407
Fixes: 7de2e856533 ("yank: Unregister function when using TLS migration")
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>crypto/tlscreds: Introduce qcrypto_tls_creds_check_endpoint() helper</title>
<updated>2021-06-29T17:29:43+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2021-06-28T16:09:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e9ac68083f26759b85ef0d871ca2bbe897218f64'/>
<id>urn:sha1:e9ac68083f26759b85ef0d871ca2bbe897218f64</id>
<content type='text'>
Introduce the qcrypto_tls_creds_check_endpoint() helper
to access QCryptoTLSCreds internal 'endpoint' field.

Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>crypto: add reload for QCryptoTLSCredsClass</title>
<updated>2021-03-23T07:48:21+00:00</updated>
<author>
<name>Zihao Chang</name>
</author>
<published>2021-03-16T07:58:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a29acc9c318781b59063091b895773fc6cbe96e7'/>
<id>urn:sha1:a29acc9c318781b59063091b895773fc6cbe96e7</id>
<content type='text'>
This patch adds reload interface for QCryptoTLSCredsClass and implements
the interface for QCryptoTLSCredsX509.

Signed-off-by: Zihao Chang &lt;changzihao1@huawei.com&gt;
Acked-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20210316075845.1476-2-changzihao1@huawei.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros</title>
<updated>2020-09-18T18:12:32+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2020-09-16T18:25:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=30b5707c269cac1ad80b72f777e52c8e08b2ff19'/>
<id>urn:sha1:30b5707c269cac1ad80b72f777e52c8e08b2ff19</id>
<content type='text'>
One of the goals of having less boilerplate on QOM declarations
is to avoid human error.  Requiring an extra argument that is
never used is an opportunity for mistakes.

Remove the unused argument from OBJECT_DECLARE_TYPE and
OBJECT_DECLARE_SIMPLE_TYPE.

Coccinelle patch used to convert all users of the macros:

  @@
  declarer name OBJECT_DECLARE_TYPE;
  identifier InstanceType, ClassType, lowercase, UPPERCASE;
  @@
   OBJECT_DECLARE_TYPE(InstanceType, ClassType,
  -                    lowercase,
                       UPPERCASE);

  @@
  declarer name OBJECT_DECLARE_SIMPLE_TYPE;
  identifier InstanceType, lowercase, UPPERCASE;
  @@
   OBJECT_DECLARE_SIMPLE_TYPE(InstanceType,
  -                    lowercase,
                       UPPERCASE);

Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Reviewed-by: Cédric Le Goater &lt;clg@kaod.org&gt;
Acked-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Acked-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Acked-by: Paul Durrant &lt;paul@xen.org&gt;
Acked-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;20200916182519.415636-4-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE</title>
<updated>2020-09-18T18:12:32+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2020-09-16T18:25:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c734cd40a10943753a4d015c9d0a6c08c8f0159e'/>
<id>urn:sha1:c734cd40a10943753a4d015c9d0a6c08c8f0159e</id>
<content type='text'>
The requirement to specify the parent class type makes the macro
harder to use and easy to misuse (silent bugs can be introduced
if the wrong struct type is specified).

Simplify the macro by just not declaring any class struct,
allowing us to remove the class_size field from the TypeInfo
variables for those types.

Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-Id: &lt;20200916182519.415636-3-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
</feed>
