1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/unix
Simon Tatham fca13a17b1 Break up crypto modules containing HW acceleration.
This applies to all of AES, SHA-1, SHA-256 and SHA-512. All those
source files previously contained multiple implementations of the
algorithm, enabled or disabled by ifdefs detecting whether they would
work on a given compiler. And in order to get advanced machine
instructions like AES-NI or NEON crypto into the output file when the
compile flags hadn't enabled them, we had to do nasty stuff with
compiler-specific pragmas or attributes.

Now we can do the detection at cmake time, and enable advanced
instructions in the more sensible way, by compile-time flags. So I've
broken up each of these modules into lots of sub-pieces: a file called
(e.g.) 'foo-common.c' containing common definitions across all
implementations (such as round constants), one called 'foo-select.c'
containing the top-level vtable(s), and a separate file for each
implementation exporting just the vtable(s) for that implementation.

One advantage of this is that it depends a lot less on compiler-
specific bodgery. My particular least favourite part of the previous
setup was the part where I had to _manually_ define some Arm ACLE
feature macros before including <arm_neon.h>, so that it would define
the intrinsics I wanted. Now I'm enabling interesting architecture
features in the normal way, on the compiler command line, there's no
need for that kind of trick: the right feature macros are already
defined and <arm_neon.h> does the right thing.

Another change in this reorganisation is that I've stopped assuming
there's just one hardware implementation per platform. Previously, the
accelerated vtables were called things like sha256_hw, and varied
between FOO-NI and NEON depending on platform; and the selection code
would simply ask 'is hw available? if so, use hw, else sw'. Now, each
HW acceleration strategy names its vtable its own way, and the
selection vtable has a whole list of possibilities to iterate over
looking for a supported one. So if someone feels like writing a second
accelerated implementation of something for a given platform - for
example, I've heard you can use plain NEON to speed up AES somewhat
even without the crypto extension - then it will now have somewhere to
drop in alongside the existing ones.
2021-04-21 21:55:26 +01:00
..
utils Break up crypto modules containing HW acceleration. 2021-04-21 21:55:26 +01:00
CMakeLists.txt Rename one of my cmake support functions. (NFC) 2021-04-19 18:26:56 +01:00
gtkapp.c Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
gtkask.c Unix pageant: handle askpass dialog close button. 2021-04-05 18:00:16 +01:00
gtkcfg.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcols.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcols.h Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcomm.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
gtkcompat.h gtkcompat.h: fix GTK1 implementation of ref_sink. 2019-11-02 08:26:14 +00:00
gtkdlg.c dialog system: add a side-by-side alignment feature. 2021-04-10 09:43:25 +01:00
gtkfont.c unifontsel: add extra double-checks of fontinfo values. 2021-04-10 08:57:24 +01:00
gtkfont.h Support SGR 9 for strikethrough effect on text. 2020-08-13 21:08:53 +01:00
gtkmain.c GTK: fix control flow in do_cmdline(). 2020-06-21 16:39:47 +01:00
gtkmisc.c Convert a lot of 'int' variables to 'bool'. 2018-11-03 13:45:00 +00:00
gtkmisc.h Convert a lot of 'int' variables to 'bool'. 2018-11-03 13:45:00 +00:00
gtkwin.c gtkwin: remove a redundant test in delete_window. 2021-04-10 09:15:26 +01:00
osxlaunch.c osxlaunch: stop setting DYLD_LIBRARY_PATH. 2017-12-20 10:04:02 +00:00
platform.h Make cmake.h available everywhere. 2021-04-19 18:26:56 +01:00
procnet.c Add a /proc/net magic authenticator. 2019-03-31 10:35:10 +01:00
pterm.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
pterm.plist Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
putty.bundle OS X makefile: stop depending on JHBUILD_PREFIX. 2017-11-26 11:45:48 +00:00
putty.plist Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
ux_x11.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
uxagentc.c Merge the two low-level portfwd setup systems. 2020-01-27 19:40:50 +00:00
uxagentsock.c Fix a few 'triple letter in place of double' typos. 2021-01-17 09:18:42 +00:00
uxcfg.c Rework per-backend GUI configuration. 2020-03-10 21:27:57 +00:00
uxcliloop.c Factor out common code from Unix CLI main loops. 2020-02-07 19:14:32 +00:00
uxcons.c Console host key prompts: add 'more info' action. 2021-03-13 13:54:59 +00:00
uxfdsock.c Fix typo in a top-of-file comment. 2020-03-10 21:11:14 +00:00
uxgen.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxgss.c Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
uxnet.c Change vtable defs to use C99 designated initialisers. 2020-03-10 21:06:29 +00:00
uxnogtk.c Include the compile-time GTK version in the build info. 2017-02-15 19:32:42 +00:00
uxnoise.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxpeer.c Replace mkfiles.pl with a CMake build system. 2021-04-17 13:53:02 +01:00
uxpgnt.c Merge docs/usage updates from 'pre-0.75' branch. 2021-04-19 17:06:51 +01:00
uxplink.c Document -ssh-connection (and -ssh) options. 2021-04-19 16:36:23 +01:00
uxprint.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxproxy.c Make the plug_log type code into an enum. 2020-02-07 19:17:45 +00:00
uxpsusan.c psusan: write a man page. 2020-12-13 12:36:38 +00:00
uxpterm.c Move all window-title management into Terminal. 2021-02-07 19:59:20 +00:00
uxpty.c Remove weird test and definition of HAVE_PUTUTLINE. 2021-04-18 08:18:27 +01:00
uxputty.c Move all window-title management into Terminal. 2021-02-07 19:59:20 +00:00
uxsel.c Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
uxser.c Fix a few memory leaks spotted by Coverity. 2021-04-10 08:59:27 +01:00
uxserver.c Uppity: add stunt for unauthorised agent forwarding attempts. 2020-12-23 22:26:44 +00:00
uxsftp.c Fix assorted minor memory leaks. 2020-06-21 16:39:47 +01:00
uxsftpserver.c psusan: fix assertion failure in SFTP server. 2020-11-04 21:50:47 +00:00
uxshare.c Make dupcat() into a variadic macro. 2019-10-14 19:42:37 +01:00
uxsocks.c Remove stub functions that are no longer needed. 2021-04-18 08:30:44 +01:00
uxstore.c New functions to shrink a strbuf. 2020-02-09 08:51:37 +00:00
uxucs.c uxucs.c: fix type of wcrtomb return value. 2020-06-14 15:49:36 +01:00
x11misc.h Basic support for running under GDK Wayland back end. 2018-05-09 09:21:27 +01:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00