From: Ian Jackson Date: Sat, 15 Feb 2020 21:51:36 +0000 (+0000) Subject: Add 'base91-c/' from commit '664054e8f603f09badb98ef09ee1bd1e58d93659' X-Git-Tag: v0.6.0~204 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=commitdiff_plain;h=bd7f386bb44f2f8e2c6d77ea176026e88176412e Add 'base91-c/' from commit '664054e8f603f09badb98ef09ee1bd1e58d93659' I imported a tarball download from http://downloads.sourceforge.net/base91/base91-0.6.0.tar.gz and then made few commits of my own; you can find my base91-c at https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/githttp/base91.git git-subtree-dir: base91-c git-subtree-mainline: ed50eaeb8f01deade6e230811de72ba19da7e32f git-subtree-split: 664054e8f603f09badb98ef09ee1bd1e58d93659 --- bd7f386bb44f2f8e2c6d77ea176026e88176412e diff --cc base91-c/.gitignore index 0000000,0000000..4863b4e new file mode 100644 --- /dev/null +++ b/base91-c/.gitignore @@@ -1,0 -1,0 +1,8 @@@ ++/base91 ++/lentest ++*.o ++/test/b91dec ++/test/b91enc ++/test/lentest ++/test/*.dat ++/test/*.b91 diff --cc base91-c/AWK/README index 0000000,ff1a834..ff1a834 mode 000000,100644..100644 --- a/base91-c/AWK/README +++ b/base91-c/AWK/README diff --cc base91-c/AWK/b91dec.awk index 0000000,8a15fc3..8a15fc3 mode 000000,100755..100755 --- a/base91-c/AWK/b91dec.awk +++ b/base91-c/AWK/b91dec.awk diff --cc base91-c/DOS-asm/b91enc.asm index 0000000,c4d00e9..c4d00e9 mode 000000,100644..100644 --- a/base91-c/DOS-asm/b91enc.asm +++ b/base91-c/DOS-asm/b91enc.asm diff --cc base91-c/DOS-asm/readme.txt index 0000000,a3c0f47..a3c0f47 mode 000000,100644..100644 --- a/base91-c/DOS-asm/readme.txt +++ b/base91-c/DOS-asm/readme.txt diff --cc base91-c/Java/b91cli.java index 0000000,7d39990..7d39990 mode 000000,100644..100644 --- a/base91-c/Java/b91cli.java +++ b/base91-c/Java/b91cli.java diff --cc base91-c/Java/basE91.java index 0000000,56d7fda..56d7fda mode 000000,100644..100644 --- a/base91-c/Java/basE91.java +++ b/base91-c/Java/basE91.java diff --cc base91-c/Java/build_jar.sh index 0000000,bd54b3e..bd54b3e mode 000000,100755..100755 --- a/base91-c/Java/build_jar.sh +++ b/base91-c/Java/build_jar.sh diff --cc base91-c/Java/license.txt index 0000000,8b952bd..8b952bd mode 000000,100644..100644 --- a/base91-c/Java/license.txt +++ b/base91-c/Java/license.txt diff --cc base91-c/Java/manifest.mf index 0000000,b06ff67..b06ff67 mode 000000,100644..100644 --- a/base91-c/Java/manifest.mf +++ b/base91-c/Java/manifest.mf diff --cc base91-c/Java/readme.txt index 0000000,bc5a3ac..bc5a3ac mode 000000,100644..100644 --- a/base91-c/Java/readme.txt +++ b/base91-c/Java/readme.txt diff --cc base91-c/LICENSE index 0000000,e4a656c..e4a656c mode 000000,100644..100644 --- a/base91-c/LICENSE +++ b/base91-c/LICENSE diff --cc base91-c/Makefile index 0000000,feb0e45..feb0e45 mode 000000,100644..100644 --- a/base91-c/Makefile +++ b/base91-c/Makefile diff --cc base91-c/NEWS index 0000000,0000000..98dbf22 new file mode 100644 --- /dev/null +++ b/base91-c/NEWS @@@ -1,0 -1,0 +1,64 @@@ ++[0.6.0] 2006-11-01 ++* basE91 encoding/decoding routines restructured to be thread-safe ++* lots of type fixes ++* new core utility is `base91', with a behaviour similar to GNU base64 ++* introduce `-w' switch for wrapping encoded output lines after given length ++* long option handling ++* use standard I/O functions for better portability ++* MinGW compatibility code added ++* minor extensions to `make check' ++* Java-tool wraps output lines by default; can be avoided with the `-u' switch ++* license changed to BSD ++ ++[0.5.2] 2006-08-25 ++* code cleanup ++* encoder for DOS rewritten to be faster and compatible down to Intel 8086 ++ ++[0.5.1] 2005-10-05 ++* Java-b91enc now handles file extensions case insensitively ++* native DOS version of basE91 encoder added ++ ++[0.5.0] 2005-06-24 ++* ATTENTION: this version breaks backward compatibility because the basE91 ++ alphabet was changed to reduce the occurrence of double quotes - sorry, I ++ should have done this long before ++* b91dec is installed as a link to b91enc ++* `-e' option added (complement to `-d') ++* build system should be more portable now ++ ++[0.4.2] 2005-05-16 ++* AWK basE91 decoder no longer depends on GNU extensions ++* Java byte code removed (distributed separately in a jar file) ++ ++[0.4.1] 2005-05-07 ++* some code cleanup ++* Java-b91enc can break encoded output to lines of 76 characters (`-b' switch) ++ ++[0.4.0] 2005-04-26 ++* improved encoder behaviour on stream ends (can save one byte sometimes) ++* allocate buffer memory dynamically; use overlapping buffers ++* new `-m' switch can be used for testing ++* verbose mode extended: `-vv' shows memory statistics ++* `make check' implemented - runs some basic tests ++ ++[0.3.1] 2005-04-19 ++* b91enc has a verbose mode now (`-v' switch) ++* Java-b91enc accepts command line syntax with only one FILE argument again ++ ++[0.3.0] 2005-04-17 ++* the code was restructured to allow a more universal use of the basE91 backend ++* version switch changed to `-V' which is more common - sorry for that ++* `make install' is possible now ++* changed Java-b91enc to be a bit more similar to the C version ++* implementation in PHP added ++ ++[0.2.3] 2005-04-11 ++* man page included (thanks to Kei!) ++* version (-v) switch added ++ ++[0.2.2] 2005-04-10 ++* fixed a bug in decoder that could result in corrupt output on 64-bit systems ++* Java class files included ++ ++[0.2.1] 2005-04-09 ++* first public release diff --cc base91-c/PHP4/README index 0000000,b357bad..b357bad mode 000000,100644..100644 --- a/base91-c/PHP4/README +++ b/base91-c/PHP4/README diff --cc base91-c/PHP4/base91.php index 0000000,ea34f03..ea34f03 mode 000000,100644..100644 --- a/base91-c/PHP4/base91.php +++ b/base91-c/PHP4/base91.php diff --cc base91-c/README index 0000000,0000000..731eaaa new file mode 100644 --- /dev/null +++ b/base91-c/README @@@ -1,0 -1,0 +1,75 @@@ ++basE91 - converting binary data to ASCII text ++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ++ ++Copyright (c) 2000-2006 Joachim Henke ++ ++ ++basE91 is an advanced method for encoding binary data as ASCII characters. It ++is similar to UUencode or base64, but is more efficient. The overhead produced ++by basE91 depends on the input data. It amounts at most to 23% (versus 33% for ++base64) and can range down to 14%, which typically occurs on 0-byte blocks. ++This makes basE91 very useful for transferring larger files over binary ++insecure connections like e-mail or terminal lines. ++ ++The current algorithm has been written with portability and simplicity in mind ++an is therefore not necessarily optimised for speed. ++ ++ ++* Alphabet ++ ++As the name suggests, basE91 needs 91 characters to represent the encoded ++binary data in ASCII. From the 94 printable ASCII characters (0x21-0x7E), the ++following three ones have been omitted to build the basE91 alphabet: ++ ++- (dash, 0x2D) ++' (apostrophe, 0x27) ++\ (backslash, 0x5C) ++ ++The translation table is composed of the remaining characters as shown below. ++ ++ 0 A 13 N 26 a 39 n 52 0 65 % 78 > ++ 1 B 14 O 27 b 40 o 53 1 66 & 79 ? ++ 2 C 15 P 28 c 41 p 54 2 67 ( 80 @ ++ 3 D 16 Q 29 d 42 q 55 3 68 ) 81 [ ++ 4 E 17 R 30 e 43 r 56 4 69 * 82 ] ++ 5 F 18 S 31 f 44 s 57 5 70 + 83 ^ ++ 6 G 19 T 32 g 45 t 58 6 71 , 84 _ ++ 7 H 20 U 33 h 46 u 59 7 72 . 85 ` ++ 8 I 21 V 34 i 47 v 60 8 73 / 86 { ++ 9 J 22 W 35 j 48 w 61 9 74 : 87 | ++10 K 23 X 36 k 49 x 62 ! 75 ; 88 } ++11 L 24 Y 37 l 50 y 63 # 76 < 89 ~ ++12 M 25 Z 38 m 51 z 64 $ 77 = 90 " ++ ++ ++* Building ++ ++1. `cd' to the directory containing the package's source code and type `make' ++ to compile the package ++ ++2. optionally, type `make check' to run any self-tests that come with the ++ package ++ ++3. type `make install' to install the program and documentation in `/usr/local' ++ (to specify another installation prefix than `/usr/local', type ++ `make prefix=PATH install' instead) ++ ++4. you can remove the program binaries and object files from the source code ++ directory by typing `make clean' ++ ++ ++* Developer ++ ++Joachim Henke ++ ++ ++* Copying ++ ++All source code in this package is released under the terms of the BSD license. ++See the file LICENSE for copying permission. ++ ++ ++* See also ++ ++Please visit the basE91 home page [http://base91.sourceforge.net/] for the ++latest version and pre-compiled binaries. diff --cc base91-c/base91.1 index 0000000,3f31ded..3f31ded mode 000000,100644..100644 --- a/base91-c/base91.1 +++ b/base91-c/base91.1 diff --cc base91-c/base91.c index 0000000,d1877e9..d1877e9 mode 000000,100644..100644 --- a/base91-c/base91.c +++ b/base91-c/base91.c diff --cc base91-c/base91.h index 0000000,b298017..b298017 mode 000000,100644..100644 --- a/base91-c/base91.h +++ b/base91-c/base91.h diff --cc base91-c/cli.c index 0000000,7ca7f33..7ca7f33 mode 000000,100644..100644 --- a/base91-c/cli.c +++ b/base91-c/cli.c diff --cc base91-c/lentest.c index 0000000,3e43d70..3e43d70 mode 000000,100644..100644 --- a/base91-c/lentest.c +++ b/base91-c/lentest.c diff --cc base91-c/test/Makefile index 0000000,2ce31df..2ce31df mode 000000,100644..100644 --- a/base91-c/test/Makefile +++ b/base91-c/test/Makefile diff --cc base91-c/test/test.sh index 0000000,09548f9..09548f9 mode 000000,100644..100644 --- a/base91-c/test/test.sh +++ b/base91-c/test/test.sh