summary refs log tree commit diff stats
path: root/scripts/qapi/common.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-06-29 13:09:16 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2021-07-14 14:15:52 +0100
commitf8157e100c0ed7c0b6ca98ce20c969e1f6dcb968 (patch)
treec69e42accf3f16e104d08e1644eff6942a7fa7de /scripts/qapi/common.py
parent7b40aa4b968a5674a75bbf7e25b88927fcb9ae01 (diff)
downloadfocaccia-qemu-f8157e100c0ed7c0b6ca98ce20c969e1f6dcb968.tar.gz
focaccia-qemu-f8157e100c0ed7c0b6ca98ce20c969e1f6dcb968.zip
crypto: add crypto tests for single block DES-ECB and DES-CBC
The GNUTLS crypto provider doesn't support DES-ECB, only DES-CBC.
We can use the latter to simulate the former, if we encrypt only
1 block (8 bytes) of data at a time, using an all-zeros IV. This
is a very inefficient way to use the QCryptoCipher APIs, but
since the VNC authentication challenge is only 16 bytes, this
is acceptable. No other part of QEMU should be using DES. This
test case demonstrates the equivalence of ECB and CBC for the
single-block case.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions