19 Commits

Author SHA1 Message Date
Benjamin Barenblat a563093f16 Separate OpenSSL-based OCB implementation from others
Split src/crypto/ocb.cc into two files – one containing the AES-OCB
implementation backed by OpenSSL, and the other containing
implementations backed by Apple Common Crypto and Nettle. This paves the
way for a new OpenSSL implementation that uses OpenSSL 1.1’s OCB support
directly, rather than one that merely uses OpenSSL to provide the
underlying block cipher.

Remove support for rijndael-alg-fst.c and compiler-provided AES
intrinsics, since they’re not in use anymore. (Mosh can still use
hardware-accelerated AES if it’s available; it just now relies
exclusively on the underlying cryptography library to accelerate AES if
possible.)

Update the build system to conditionally compile in either
ocb_openssl.cc or ocb_internal.cc, depending on which cryptography
library you pass to ./configure.

To make this commit easy to audit, ocb_openssl.cc and ocb_internal.cc
are trivially diffable against ocb.cc (now deleted). Expected diffs
consist of a copyright notice update, a preprocessor check to ensure the
appropriate cryptography implementation has been selected, and deletions
to remove code that’s no longer in use. This does mean a substantial
amount of code is duplicated between ocb_openssl.cc and ocb_internal.cc;
however, ocb_openssl.cc should be completely replaced soon, so it won’t
be an issue in the long term.

Bug: https://github.com/mobile-shell/mosh/issues/1174
2022-06-06 16:30:41 -10:00
Keith Winstein 46aac1834a debian/control and debian/copyright: Fix lintian warnings 2016-03-25 21:53:53 -07:00
Anders Kaseorg c9ec54a004 debian: Update GitHub URLs from keithw/mosh to mobile-shell/mosh
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-01-16 17:50:45 -05:00
Keith Winstein 92ecb99b71 Add OpenSSL licensing exception 2012-07-20 16:46:00 -04:00
Keith Winstein 77bbdc9403 Licensing change for AES 2012-07-20 16:13:07 -04:00
Keith Winstein dc7253cbb7 Licensing change for base64 2012-07-20 16:07:38 -04:00
Keegan McAllister dd941df19d Remove unused sigfd and skalibs
Closes #265.
2012-05-16 00:00:27 -04:00
Keegan McAllister bb651581a7 Remove unused poll(2) emulation
Closes #235.
2012-05-16 00:00:27 -04:00
Keith Winstein 460c6c24d9 Update copyright information for third/poll 2012-04-25 02:47:51 -04:00
Keegan McAllister 8bcc001b52 Remove Boost entirely 2012-04-15 13:49:15 -04:00
Keegan McAllister f7fc34e0c7 Add ax_check_{compile,link}_flag.m4 2012-04-13 12:25:09 -04:00
Austin Roach 50d69e4d29 Change debian/copyright format
Addresses a Debian lintian complaint. Changed the format line in the
debian/copyright file from its proposed form (DEP 5) to the location of
the accepted standard.
2012-03-16 00:30:48 -04:00
Keith Winstein 4295111fd9 Add new files to debian/copyright 2012-03-07 03:10:19 -05:00
Keith Winstein e67bcafdf3 Correct copyright on pkg.m4 to be GPL-2+ stedda GPL-2 2012-03-03 19:08:17 -05:00
Keith Winstein 32b1226901 Add copyright is public-domain to public-domain license entries 2012-03-03 14:17:58 -05:00
Keith Winstein a8dd9d5826 Fix another lintian error in copyright file 2012-03-03 14:12:51 -05:00
Keith Winstein da824fe039 Fix lintian errors in copyright file 2012-03-03 14:11:09 -05:00
Keith Winstein d8074b6f24 Fix debian/copyright file 2012-03-03 14:03:35 -05:00
Keith Winstein 38c27149ee First packaging info 2012-02-06 16:20:18 -05:00