raw
ch1_mpi                 1 What you see here is a very classic version of the GNU MPI (bignum) library.
ch1_mpi 2 It has been surgically removed from GnuPG 1.4.10, specifically as found at:
eucrypt_genesis 3
ch1_mpi 4 http://trilema.com/wp-content/uploads/2015/10/gnupg-1.4.10.tar.gz.asc
ch1_mpi 5
ch1_mpi 6 SHA512(gnupg-1.4.10.tar.gz) :
ch1_mpi 7 d037041d2e6882fd3b999500b5a7b42be2c224836afc358e1f8a2465c1b74473d518f185b7c324b2c8dec4ffb70e9e34a03c94d1a54cc55d297f40c9745f6e1b
ch1_mpi 8
ch1_mpi 9 DEMO:
ch1_mpi 10
ch1_mpi 11 1) make
ch1_mpi 12 2) cd tests
ch1_mpi 13 3) make
ch1_mpi 14 4) ./test_mpi
ch1_mpi 15 5) output is:
ch1_mpi 16 37A063D056817668C7AA3418F29
ch1_mpi 17 6) q: 'Waaaaaa, it barfed!'
ch1_mpi 18 a: You are probably using GCC 5 or LLVM. Stop.
ch1_mpi 19
ch1_mpi 20
ch1_mpi 21 CHANGES FROM ORIGINAL:
ch1_mpi 22
ch1_mpi 23 1) Everything pertaining to Automake was nuked, and the earth where it stood -
ch1_mpi 24 salted.
ch1_mpi 25
ch1_mpi 26 Instead, we now have a conventional Makefile. It builds precisely
ch1_mpi 27 ONE THING - a single 'mpi.a' library suitable for static linking into
ch1_mpi 28 another project. This will turn up in 'bin'.
ch1_mpi 29
ch1_mpi 30 Among other things, this now means that all KNOBS now reside in a
ch1_mpi 31 MANUALLY-controlled 'knobs.h' found in 'include'. If you are building
ch1_mpi 32 on some very peculiar unix, please read it and adjust as appropriate.
ch1_mpi 33 It contains ONLY those knobs which actually pertain to the code.
ch1_mpi 34
ch1_mpi 35 The Makefile contains a 'check-syntax' - users of Emacs and Flymake
ch1_mpi 36 will see proper error-highlighting.
ch1_mpi 37
ch1_mpi 38 2) ALL chip-specific ASM optimizations (including those found in longlong.h)
ch1_mpi 39 have been nuked.
ch1_mpi 40
ch1_mpi 41 3) GPG-specific cruft has been amputated to the extent practical.
ch1_mpi 42
ch1_mpi 43 The logging system has been retained, but it can be easily torn out,
ch1_mpi 44 which I may choose to do in the near future.
ch1_mpi 45
ch1_mpi 46 The I/O buffering system has been retained. I may choose to remove it
ch1_mpi 47 in the near future.
ch1_mpi 48
ch1_mpi 49 The 'secure memory' (unpageable alloc) system has been retained.
ch1_mpi 50
ch1_mpi 51 'Localization' and all related idiocies have been nuked.
ch1_mpi 52 Write hieroglyphs at home, leave them there, civilized folk
ch1_mpi 53 don't need'em in their source code.
ch1_mpi 54
ch1_mpi 55 4) Other code has been altered solely to the extent required by items
ch1_mpi 56 (1), (2), and (3).
ch1_mpi 57
ch1_mpi 58 Cruft which appears in dead #ifdefs may be removed in the future.
ch1_mpi 59 Don't get comfortable with it being there.
ch1_mpi 60
ch1_mpi 61 5) Readers who wish to know EXACTLY what I changed, should get a copy of the
ch1_mpi 62 original tarball and write a simple script involving 'find' and 'vdiff',
ch1_mpi 63 which sadly did not fit in the margins of this page.
ch1_mpi 64
ch1_mpi 65 6) To use the library, include 'include/mpi.h' in your project,
ch1_mpi 66 and statically link with 'bin/mpi.a'.
ch1_mpi 67
ch1_mpi 68 7) The original code was distributed under GPL 3, which may apply on
ch1_mpi 69 your planet and is therefore included. (See COPYING.)
ch1_mpi 70
ch1_mpi 71 ----------
ch1_mpi 72 UPDATE #1:
ch1_mpi 73 ----------
ch1_mpi 74
ch1_mpi 75 1) Abolished the logging subsystem inherited from GPG.
ch1_mpi 76
ch1_mpi 77 2) Abolished the I/O buffering subsystem, from same.
ch1_mpi 78
ch1_mpi 79 3) Eliminated all #ifdef blocks pertaining to RiscOS.
ch1_mpi 80
ch1_mpi 81 4) config.h is now knobs.h and is considerably shorter
ch1_mpi 82 on account of there now being a great many fewer knobs.
ch1_mpi 83
ch1_mpi 84 5) Eliminated certain blocks of dead code.
ch1_mpi 85
ch1_mpi 86 6) Inserted notice of modifications as specified in GPL-3