]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
crypto: move built-in D3DES implementation into crypto/
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 1 Jul 2015 17:10:31 +0000 (18:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jul 2015 10:04:31 +0000 (12:04 +0200)
To prepare for a generic internal cipher API, move the
built-in D3DES implementation into the crypto/ directory.

This is not in fact a normal D3DES implementation, it is
D3DES with double & triple length modes removed, and the
key bytes in reversed bit order. IOW it is crippled
specifically for the "benefit" of RFB, so call the new
files desrfb.c instead of d3des.c to make it clear that
it isn't a generally useful impl.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1435770638-25715-4-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
crypto/Makefile.objs
crypto/desrfb.c [moved from ui/d3des.c with 99% similarity]
include/crypto/desrfb.h [moved from ui/d3des.h with 100% similarity]
ui/Makefile.objs
ui/vnc.c

index 9efc9b414642705ca870511002b2983576bea04f..9f702942dc91847edd28848cc15511defdba3a7e 100644 (file)
@@ -1,3 +1,4 @@
 util-obj-y += init.o
 util-obj-y += hash.o
 util-obj-y += aes.o
+util-obj-y += desrfb.o
similarity index 99%
rename from ui/d3des.c
rename to crypto/desrfb.c
index 5bc99b8ad755c38e7947f9505bc4b75a956100d1..fc20a30dfe93bfd8419496ff0a2f9c4425a7ded0 100644 (file)
@@ -26,7 +26,7 @@
  * (GEnie : OUTER; CIS : [71755,204]) Graven Imagery, 1992.
  */
 
-#include "d3des.h"
+#include "crypto/desrfb.h"
 
 static void scrunch(unsigned char *, unsigned long *);
 static void unscrun(unsigned long *, unsigned char *);
similarity index 100%
rename from ui/d3des.h
rename to include/crypto/desrfb.h
index 023914c7c0c9012354dd0582b09e02ed6d086f71..dd1f8e42ca2395dbb8d9af8da081f0b95796c90f 100644 (file)
@@ -1,4 +1,4 @@
-vnc-obj-y += vnc.o d3des.o
+vnc-obj-y += vnc.o
 vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
 vnc-obj-y += vnc-enc-tight.o vnc-palette.o
 vnc-obj-y += vnc-enc-zrle.o
index 2ffd9e500fcd3d9556d39aba276888f197129967..b216182176a029b476663012f6c2b5d424bd9e66 100644 (file)
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -48,7 +48,7 @@ static const struct timeval VNC_REFRESH_STATS = { 0, 500000 };
 static const struct timeval VNC_REFRESH_LOSSY = { 2, 0 };
 
 #include "vnc_keysym.h"
-#include "d3des.h"
+#include "crypto/desrfb.h"
 
 static QTAILQ_HEAD(, VncDisplay) vnc_displays =
     QTAILQ_HEAD_INITIALIZER(vnc_displays);