diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-06-29 13:09:16 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-07-14 14:15:52 +0100 |
commit | f8157e100c0ed7c0b6ca98ce20c969e1f6dcb968 (patch) | |
tree | c69e42accf3f16e104d08e1644eff6942a7fa7de /crypto | |
parent | 7b40aa4b968a5674a75bbf7e25b88927fcb9ae01 (diff) |
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