<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/qemu.git/include/crypto, branch master</title>
<subtitle>git.qemu.org: git/qemu.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/'/>
<entry>
<title>replace TABs with spaces</title>
<updated>2023-03-20T11:43:50+00:00</updated>
<author>
<name>Yeqi Fu</name>
<email>fufuyqqqqqq@gmail.com</email>
</author>
<published>2023-03-15T03:26:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=48805df9c22a0700fba4b3b548fafaa21726ca68'/>
<id>48805df9c22a0700fba4b3b548fafaa21726ca68</id>
<content type='text'>
Bring the files in line with the QEMU coding style, with spaces
for indentation.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/378
Signed-off-by: Yeqi Fu &lt;fufuyqqqqqq@gmail.com&gt;
Message-Id: &lt;20230315032649.57568-1-fufuyqqqqqq@gmail.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bring the files in line with the QEMU coding style, with spaces
for indentation.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/378
Signed-off-by: Yeqi Fu &lt;fufuyqqqqqq@gmail.com&gt;
Message-Id: &lt;20230315032649.57568-1-fufuyqqqqqq@gmail.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>crypto: TLS: introduce `check_pending`</title>
<updated>2023-02-15T16:01:03+00:00</updated>
<author>
<name>Antoine Damhet</name>
<email>antoine.damhet@shadow.tech</email>
</author>
<published>2022-11-15T14:23:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=33ee0d8e2fb5e7772a67c8785554ec9fc9477678'/>
<id>33ee0d8e2fb5e7772a67c8785554ec9fc9477678</id>
<content type='text'>
The new `qcrypto_tls_session_check_pending` function allows the caller
to know if data have already been consumed from the backend and is
already available.

Signed-off-by: Antoine Damhet &lt;antoine.damhet@shadow.tech&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new `qcrypto_tls_session_check_pending` function allows the caller
to know if data have already been consumed from the backend and is
already available.

Signed-off-by: Antoine Damhet &lt;antoine.damhet@shadow.tech&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>crypto: Support export akcipher to pkcs8</title>
<updated>2022-11-02T10:56:32+00:00</updated>
<author>
<name>Lei He</name>
<email>helei.sig11@bytedance.com</email>
</author>
<published>2022-10-08T08:50:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=58660863ba5ca4f74fa70671da2899b264dc5f34'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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>
<email>afaria@redhat.com</email>
</author>
<published>2022-06-09T15:27:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=757dda54b43867936012970a1b457f3d16e7398d'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>crypto: Introduce akcipher crypto class</title>
<updated>2022-05-26T10:41:47+00:00</updated>
<author>
<name>zhenwei pi</name>
<email>pizhenwei@bytedance.com</email>
</author>
<published>2022-05-25T09:01:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=db5ca5fbfa6597ac9dd1ae40f986696db9c8b9dd'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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>
<email>armbru@redhat.com</email>
</author>
<published>2022-05-06T13:49:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=52581c718c5cd55595ca032a56f1e194c5716456'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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]
</pre>
</div>
</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>
<email>liweiwei@iscas.ac.cn</email>
</author>
<published>2022-04-23T02:35:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=c29da5a7fe6a5d3e1719ce9a831076df2eff52d5'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
   - 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;
</pre>
</div>
</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>
<email>philmd@redhat.com</email>
</author>
<published>2021-06-28T16:09:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=678bcc3c2cf22262d0a72b52da57737c4a40e040'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</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>
<email>philmd@redhat.com</email>
</author>
<published>2021-06-28T16:09:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=e9ac68083f26759b85ef0d871ca2bbe897218f64'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>crypto: add reload for QCryptoTLSCredsClass</title>
<updated>2021-03-23T07:48:21+00:00</updated>
<author>
<name>Zihao Chang</name>
<email>changzihao1@huawei.com</email>
</author>
<published>2021-03-16T07:58:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/qemu.git/commit/?id=a29acc9c318781b59063091b895773fc6cbe96e7'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
</feed>
