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