qemu/ui
Daniel P. Berrangé 83bee4b51f crypto: replace 'des-rfb' cipher with 'des'
Currently the crypto layer exposes support for a 'des-rfb'
algorithm which is just normal single-DES, with the bits
in each key byte reversed. This special key munging is
required by the RFB protocol password authentication
mechanism.

Since the crypto layer is generic shared code, it makes
more sense to do the key byte munging in the VNC server
code, and expose normal single-DES support.

Replacing cipher 'des-rfb' by 'des' looks like an incompatible
interface change, but it doesn't matter.  While the QMP schema
allows any QCryptoCipherAlgorithm for the 'cipher-alg' field
in QCryptoBlockCreateOptionsLUKS, the code restricts what can
be used at runtime. Thus the only effect is a change in error
message.

Original behaviour:

 $ qemu-img create -f luks --object secret,id=sec0,data=123 -o cipher-alg=des-rfb,key-secret=sec0 demo.luks 1G
 Formatting 'demo.luks', fmt=luks size=1073741824 key-secret=sec0 cipher-alg=des-rfb
 qemu-img: demo.luks: Algorithm 'des-rfb' not supported

New behaviour:

 $ qemu-img create -f luks --object secret,id=sec0,data=123 -o cipher-alg=des-rfb,key-secret=sec0 demo.luks 1G
 Formatting 'demo.luks', fmt=luks size=1073741824 key-secret=sec0 cipher-alg=des-fish
 qemu-img: demo.luks: Invalid parameter 'des-rfb'

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-07-14 14:15:52 +01:00
..
icons
keycodemapdb@6119e6e19a
shader
clipboard.c ui/cocoa: Add clipboard support 2021-06-23 14:26:04 +02:00
cocoa.m ui/cocoa: Add clipboard support 2021-06-23 14:26:04 +02:00
console-gl.c
console.c ui: Make the DisplayType enum entries conditional 2021-06-23 14:42:30 +02:00
curses_keys.h
curses.c
cursor_hidden.xpm
cursor_left_ptr.xpm
cursor.c
egl-context.c
egl-headless.c modules: add ui module annotations 2021-07-09 18:20:27 +02:00
egl-helpers.c
gtk-clipboard.c ui/gtk: add clipboard support 2021-05-21 09:42:44 +02:00
gtk-egl.c
gtk-gl-area.c
gtk.c modules: add ui module annotations 2021-07-09 18:20:27 +02:00
input-barrier.c
input-barrier.h
input-keymap.c
input-legacy.c
input-linux.c
input.c
kbd-state.c
keymaps.c
keymaps.h
meson.build ui: Get the fd associated with udmabuf driver 2021-05-27 12:06:01 +02:00
qemu-pixman.c ui/pixman: Add qemu_pixman_to_drm_format() 2021-05-27 12:07:37 +02:00
qemu-x509.h
qemu.desktop
sdl2-2d.c
sdl2-gl.c
sdl2-input.c
sdl2.c modules: add ui module annotations 2021-07-09 18:20:27 +02:00
shader.c
spice-app.c modules: add ui module annotations 2021-07-09 18:20:27 +02:00
spice-core.c modules: add ui module annotations 2021-07-09 18:20:27 +02:00
spice-display.c
spice-input.c
spice-module.c
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h
udmabuf.c ui: Get the fd associated with udmabuf driver 2021-05-27 12:06:01 +02:00
vdagent.c
vgafont.h
vnc_keysym.h
vnc-auth-sasl.c vnc: avoid deprecation warnings for SASL on OS X 2021-06-15 17:17:09 +02:00
vnc-auth-sasl.h vnc: avoid deprecation warnings for SASL on OS X 2021-06-15 17:17:09 +02:00
vnc-auth-vencrypt.c
vnc-auth-vencrypt.h
vnc-clipboard.c ui/vnc: clipboard support 2021-05-21 09:42:44 +02:00
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle.c
vnc-enc-zrle.c.inc
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs.c
vnc-jobs.h
vnc-palette.c
vnc-palette.h
vnc-stubs.c
vnc-ws.c
vnc-ws.h
vnc.c crypto: replace 'des-rfb' cipher with 'des' 2021-07-14 14:15:52 +01:00
vnc.h ui/vnc: clipboard support 2021-05-21 09:42:44 +02:00
win32-kbd-hook.c
x_keymap.c
x_keymap.h