summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDaniel P. Berrangé2021-06-29 14:09:16 +0200
committerDaniel P. Berrangé2021-07-14 15:15:52 +0200
commitf8157e100c0ed7c0b6ca98ce20c969e1f6dcb968 (patch)
treec69e42accf3f16e104d08e1644eff6942a7fa7de /crypto
parentcrypto: drop custom XTS support in gcrypt driver (diff)
downloadqemu-f8157e100c0ed7c0b6ca98ce20c969e1f6dcb968.tar.gz
qemu-f8157e100c0ed7c0b6ca98ce20c969e1f6dcb968.tar.xz
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 'crypto')
0 files changed, 0 insertions, 0 deletions