projects/xcvb/binascii.git
2 years agoMake a loop form conformant. master
Francois-Rene Rideau [Tue, 31 May 2011 19:09:15 +0000] 
Make a loop form conformant.

3 years agoadd type declarations in encode/decode fresh vector functions
Nathan Froyd [Sun, 3 Oct 2010 22:52:17 +0000] 
add type declarations in encode/decode fresh vector functions

3 years agomodify DEFINE-FORMAT to autogenerate format-descriptor function
Nathan Froyd [Sun, 3 Oct 2010 22:51:23 +0000] 
modify DEFINE-FORMAT to autogenerate format-descriptor function

3 years agomodify DEFINE-FORMAT to autogenerate encode/decode helpers
Nathan Froyd [Sun, 3 Oct 2010 22:41:17 +0000] 
modify DEFINE-FORMAT to autogenerate encode/decode helpers

3 years agomodify DEFINE-FORMAT to take keyword arguments
Nathan Froyd [Sun, 3 Oct 2010 22:24:52 +0000] 
modify DEFINE-FORMAT to take keyword arguments

3 years agoadd docstrings for ENCODE and DECODE convenience functions
Nathan Froyd [Fri, 1 Oct 2010 01:42:52 +0000] 
add docstrings for ENCODE and DECODE convenience functions

3 years agoadd docstrings for ENCODE and DECODE
Nathan Froyd [Fri, 1 Oct 2010 01:13:03 +0000] 
add docstrings for ENCODE and DECODE

3 years agotidy package definition a bit
Nathan Froyd [Thu, 30 Sep 2010 20:57:42 +0000] 
tidy package definition a bit

Use multiple :EXPORT clauses to provide brief documentation for
exported symbols.

3 years agomake DEFINE-FORMAT also define convenience functions
Nathan Froyd [Thu, 30 Sep 2010 20:55:19 +0000] 
make DEFINE-FORMAT also define convenience functions

3 years agouse DEFINE-FORMAT macro everywhere
Nathan Froyd [Thu, 30 Sep 2010 19:44:52 +0000] 
use DEFINE-FORMAT macro everywhere

3 years agoadd DEFINE-FORMAT macro
Nathan Froyd [Thu, 30 Sep 2010 19:44:42 +0000] 
add DEFINE-FORMAT macro

3 years agopermit formats to be specified with BINASCII symbols
Nathan Froyd [Thu, 30 Sep 2010 19:34:03 +0000] 
permit formats to be specified with BINASCII symbols

3 years agoadd basic README file
Nathan Froyd [Thu, 30 Sep 2010 02:44:51 +0000] 
add basic README file

3 years agoadd basic documentation
Nathan Froyd [Thu, 30 Sep 2010 02:40:50 +0000] 
add basic documentation

3 years agorespect fill-pointers in SBCL and CMUCL
Nathan Froyd [Thu, 30 Sep 2010 02:39:46 +0000] 
respect fill-pointers in SBCL and CMUCL

4 years agoadd simple-array support for CCL
Nathan Froyd [Thu, 15 Apr 2010 12:17:43 +0000] 
add simple-array support for CCL

It's not clear to me that it improves the generated code much, but
perhaps I'm simply not skilled in reading CCL disassembly.

4 years agoMerge commit 'github/master'
Nathan Froyd [Thu, 15 Apr 2010 12:00:58 +0000] 
Merge commit 'github/master'

4 years agofix SIMPLE-STRING deftype for non-SBCL implementations
Nathan Froyd [Thu, 15 Apr 2010 12:00:01 +0000] 
fix SIMPLE-STRING deftype for non-SBCL implementations

4 years agoAdd tests corresponding to TIGER-TREE-HASH test vectors from ironclad.
Francois-Rene Rideau [Thu, 18 Mar 2010 20:12:53 +0000] 
Add tests corresponding to TIGER-TREE-HASH test vectors from ironclad.

4 years agofix base32 decoding
Nathan Froyd [Sun, 28 Feb 2010 00:06:46 +0000] 
fix base32 decoding

Peculiarly, this bug did not show up in my earlier tests.

4 years agofix dependencies for tests system
Nathan Froyd [Sun, 28 Feb 2010 00:04:49 +0000] 
fix dependencies for tests system

4 years agoadd and export MAKE-{ENCODER,DECODER} functions
Nathan Froyd [Tue, 16 Feb 2010 03:43:11 +0000] 
add and export MAKE-{ENCODER,DECODER} functions

4 years agoMerge branch 'stateful-encoders'
Nathan Froyd [Tue, 16 Feb 2010 03:39:37 +0000] 
Merge branch 'stateful-encoders'

4 years agofix formats that explicitly test for particular characters
Nathan Froyd [Mon, 15 Feb 2010 19:26:43 +0000] 
fix formats that explicitly test for particular characters

base32, base64, and ascii85 all need to check for particular characters:
CONVERTER logic in the decoding functions was misinterpreted for this
case.  CONVERTER is really for turning elements of the input sequence
into integers and was inappropriately being used to try to convert the
special characters into integers, which didn't work when decoding octet
vectors.

For those checks, explicitly check the type of sequence we're decoding
from and take the appropriate transformation on the special character.

4 years agoadd tests for distinct element types
Nathan Froyd [Mon, 15 Feb 2010 19:13:43 +0000] 
add tests for distinct element types

Make sure we run tests that exercise the :ELEMENT-TYPE keyword argument
to ENCODE.  Also make sure that DECODE can handle inputs that aren't
necessarily strings.

4 years agoreturn a shorter vector from ENCODE-TO-FRESH-VECTOR if necessary
Nathan Froyd [Sun, 14 Feb 2010 04:13:09 +0000] 
return a shorter vector from ENCODE-TO-FRESH-VECTOR if necessary

4 years agofix issues in ascii85 encoding and decoding
Nathan Froyd [Sun, 14 Feb 2010 04:12:44 +0000] 
fix issues in ascii85 encoding and decoding

4 years agoadd ascii85 to testing regimen
Nathan Froyd [Sun, 14 Feb 2010 04:11:41 +0000] 
add ascii85 to testing regimen

4 years agooptimize base32 and base64 encodings by properly declaring N-BITS
Nathan Froyd [Sun, 14 Feb 2010 03:13:38 +0000] 
optimize base32 and base64 encodings by properly declaring N-BITS

4 years agoexport format names from the BINASCII package
Nathan Froyd [Sun, 14 Feb 2010 00:16:40 +0000] 
export format names from the BINASCII package

4 years agomove FINISHED-INPUT-P to common superclass
Nathan Froyd [Sun, 14 Feb 2010 00:12:56 +0000] 
move FINISHED-INPUT-P to common superclass

4 years agoreturn next i/o index from encoder functions
Nathan Froyd [Sun, 14 Feb 2010 00:10:42 +0000] 
return next i/o index from encoder functions

This is more consistent with what Common Lisp already
does (e.g. READ-SEQUENCE), as well as being slightly more efficient.

4 years agoadd (:PREDICATE NIL) for all defined structures
Nathan Froyd [Sat, 13 Feb 2010 20:52:36 +0000] 
add (:PREDICATE NIL) for all defined structures

4 years agonote progress in TODO
Nathan Froyd [Wed, 10 Feb 2010 03:28:02 +0000] 
note progress in TODO

4 years agofix ENCODE-TO-FRESH-VECTOR unreachable code
Nathan Froyd [Sat, 13 Feb 2010 19:54:23 +0000] 
fix ENCODE-TO-FRESH-VECTOR unreachable code

4 years agoactivate new decoding functionality
Nathan Froyd [Sat, 13 Feb 2010 20:32:42 +0000] 
activate new decoding functionality

4 years agoadd ascii85 decoding infrastructure
Nathan Froyd [Sat, 13 Feb 2010 20:29:55 +0000] 
add ascii85 decoding infrastructure

4 years agoadd base85 decoding infrastructure
Nathan Froyd [Sat, 13 Feb 2010 20:29:44 +0000] 
add base85 decoding infrastructure

4 years agofix BASE32-ENCODER indentation
Nathan Froyd [Tue, 9 Feb 2010 03:41:29 +0000] 
fix BASE32-ENCODER indentation

4 years agoadd base64 decoding infrastructure
Nathan Froyd [Sat, 13 Feb 2010 20:29:38 +0000] 
add base64 decoding infrastructure

4 years agoadd base32 decoding infrastructure
Nathan Froyd [Sat, 13 Feb 2010 20:32:15 +0000] 
add base32 decoding infrastructure

4 years agoadd base16 decoding infrastructure
Nathan Froyd [Sat, 13 Feb 2010 20:29:20 +0000] 
add base16 decoding infrastructure

4 years agouse new ENCODE function in tests
Nathan Froyd [Sat, 30 Jan 2010 19:39:18 +0000] 
use new ENCODE function in tests

4 years agoexport new ENCODE function
Nathan Froyd [Sat, 30 Jan 2010 19:38:54 +0000] 
export new ENCODE function

4 years agofix base85 encoder
Nathan Froyd [Sat, 30 Jan 2010 19:32:36 +0000] 
fix base85 encoder

4 years agoflip to the new encoding scheme
Nathan Froyd [Sat, 30 Jan 2010 19:22:14 +0000] 
flip to the new encoding scheme

Use dummy constructors for the decoding bits, since we're not using the
new scheme there yet.  base85 tests do not yet pass.

4 years agofix ENCODING-TOOLS for ascii85
Nathan Froyd [Sat, 30 Jan 2010 19:14:03 +0000] 
fix ENCODING-TOOLS for ascii85

4 years agomake BASE64-ENCODE-STATE :INCLUDE ENCODE-STATE
Nathan Froyd [Sat, 30 Jan 2010 19:12:26 +0000] 
make BASE64-ENCODE-STATE :INCLUDE ENCODE-STATE

4 years agofix call to ASCII85-ENCODE-STATE-PENDING
Nathan Froyd [Sat, 30 Jan 2010 19:12:07 +0000] 
fix call to ASCII85-ENCODE-STATE-PENDING

4 years agofix BASE-CAR typo in ascii85
Nathan Froyd [Sat, 30 Jan 2010 19:11:50 +0000] 
fix BASE-CAR typo in ascii85

4 years agofix up decoding interface to match encoding interface
Nathan Froyd [Sat, 30 Jan 2010 18:56:00 +0000] 
fix up decoding interface to match encoding interface

4 years agoensure that ENCODE-TO-FRESH-VECTOR receives an ENCODE-STATE
Nathan Froyd [Sat, 30 Jan 2010 18:55:42 +0000] 
ensure that ENCODE-TO-FRESH-VECTOR receives an ENCODE-STATE

4 years agoadd format.lisp to flesh out encoding/decoding bits
Nathan Froyd [Sat, 30 Jan 2010 04:44:49 +0000] 
add format.lisp to flesh out encoding/decoding bits

4 years agoclean up experimental commented-out code in octets.lisp
Nathan Froyd [Sat, 30 Jan 2010 02:11:43 +0000] 
clean up experimental commented-out code in octets.lisp

4 years agoadd :CONC-NAME to FORMAT-DESCRIPTOR
Nathan Froyd [Sat, 30 Jan 2010 02:03:55 +0000] 
add :CONC-NAME to FORMAT-DESCRIPTOR

4 years agochange LET to LET* to fix compilation errors
Nathan Froyd [Sat, 30 Jan 2010 02:00:44 +0000] 
change LET to LET* to fix compilation errors

4 years agofix bogus uses of LOAD-TIME-VALUE
Nathan Froyd [Mon, 25 Jan 2010 03:16:39 +0000] 
fix bogus uses of LOAD-TIME-VALUE

That's what I get for attempting to be clever.

4 years agofix state constructors to pass format descriptors
Nathan Froyd [Mon, 25 Jan 2010 02:04:51 +0000] 
fix state constructors to pass format descriptors

4 years agofix format descriptors to be constructed lazily
Nathan Froyd [Mon, 25 Jan 2010 02:03:06 +0000] 
fix format descriptors to be constructed lazily

4 years agofix typos and indentation in ascii85
Nathan Froyd [Mon, 25 Jan 2010 02:02:06 +0000] 
fix typos and indentation in ascii85

4 years agorename OCTETS->OCTETS methods appropriately
Nathan Froyd [Mon, 25 Jan 2010 01:43:10 +0000] 
rename OCTETS->OCTETS methods appropriately

4 years agoconvert base32 over to the new format descriptor scheme
Nathan Froyd [Mon, 25 Jan 2010 01:41:21 +0000] 
convert base32 over to the new format descriptor scheme

4 years agoadd certainly-needed FINISHED-INPUT-P field to DECODE-STATE
Nathan Froyd [Mon, 25 Jan 2010 01:30:39 +0000] 
add certainly-needed FINISHED-INPUT-P field to DECODE-STATE

4 years ago{ENCODE,DECODE}-STATE shouldn't have constructors
Nathan Froyd [Mon, 25 Jan 2010 01:29:47 +0000] 
{ENCODE,DECODE}-STATE shouldn't have constructors

4 years agofix variable typos in several files
Nathan Froyd [Mon, 25 Jan 2010 01:28:40 +0000] 
fix variable typos in several files

4 years agofix format descriptor confusion
Nathan Froyd [Mon, 25 Jan 2010 01:27:10 +0000] 
fix format descriptor confusion

4 years agofix typo in ascii85.lisp
Nathan Froyd [Mon, 25 Jan 2010 01:26:45 +0000] 
fix typo in ascii85.lisp

4 years agofirst cut at revamped DECODE-OCTETS
Nathan Froyd [Sun, 24 Jan 2010 01:58:48 +0000] 
first cut at revamped DECODE-OCTETS

4 years agoadd a descriptor slot to {ENCODE,DECODE}-STATE
Nathan Froyd [Sun, 24 Jan 2010 01:56:37 +0000] 
add a descriptor slot to {ENCODE,DECODE}-STATE

4 years agoadd ASCII85 format descriptor and encode state
Nathan Froyd [Fri, 22 Jan 2010 19:26:59 +0000] 
add ASCII85 format descriptor and encode state

4 years agofix wrong state transition for base85
Nathan Froyd [Fri, 22 Jan 2010 19:26:28 +0000] 
fix wrong state transition for base85

4 years agofix typo in base85.lisp
Nathan Froyd [Fri, 22 Jan 2010 19:21:13 +0000] 
fix typo in base85.lisp

4 years agomissed a trailing * for base16 format descriptor
Nathan Froyd [Fri, 22 Jan 2010 19:08:35 +0000] 
missed a trailing * for base16 format descriptor

4 years agomove base85 functions into new FORMAT-DESCRIPTOR structure
Nathan Froyd [Fri, 22 Jan 2010 19:06:50 +0000] 
move base85 functions into new FORMAT-DESCRIPTOR structure

4 years agomove base16 functions into new FORMAT-DESCRIPTOR structure
Nathan Froyd [Fri, 22 Jan 2010 19:05:57 +0000] 
move base16 functions into new FORMAT-DESCRIPTOR structure

4 years agomove base64 functions into new FORMAT-DESCRIPTOR structure
Nathan Froyd [Fri, 22 Jan 2010 19:04:32 +0000] 
move base64 functions into new FORMAT-DESCRIPTOR structure

4 years agoone more ADDING-PADDING-P elimination
Nathan Froyd [Fri, 22 Jan 2010 19:03:46 +0000] 
one more ADDING-PADDING-P elimination

4 years agoFINISHED-INPUT-P supersedes ADDING-PADDING-P fields
Nathan Froyd [Fri, 22 Jan 2010 19:03:11 +0000] 
FINISHED-INPUT-P supersedes ADDING-PADDING-P fields

4 years agoadd LINE-BREAK and FINISHED-INPUT-P fields to ENCODE-STATE
Nathan Froyd [Fri, 22 Jan 2010 19:01:20 +0000] 
add LINE-BREAK and FINISHED-INPUT-P fields to ENCODE-STATE

4 years agomove encoding/decoding functions into a FORMAT-DESCRIPTOR structure
Nathan Froyd [Fri, 22 Jan 2010 19:00:35 +0000] 
move encoding/decoding functions into a FORMAT-DESCRIPTOR structure

4 years agoadd async encode functions for base85
Nathan Froyd [Sun, 17 Jan 2010 13:37:59 +0000] 
add async encode functions for base85

4 years agoadd BASE85-ENCODE-STATE
Nathan Froyd [Sat, 16 Jan 2010 22:14:46 +0000] 
add BASE85-ENCODE-STATE

4 years agorename ENCODED-LENGTH-BASE85
Nathan Froyd [Sat, 16 Jan 2010 22:07:48 +0000] 
rename ENCODED-LENGTH-BASE85

4 years agoadd async encode functions for base16
Nathan Froyd [Sat, 16 Jan 2010 22:02:06 +0000] 
add async encode functions for base16

4 years agoadd BASE16-ENCODE-STATE
Nathan Froyd [Sat, 16 Jan 2010 21:52:43 +0000] 
add BASE16-ENCODE-STATE

4 years agorename ENCODED-LENGTH-BASE16
Nathan Froyd [Sat, 16 Jan 2010 21:52:29 +0000] 
rename ENCODED-LENGTH-BASE16

4 years agoconvert base32 encoder to new async interface
Nathan Froyd [Fri, 15 Jan 2010 03:01:56 +0000] 
convert base32 encoder to new async interface

4 years agomove the OPTIMIZE SPEED declaration to its proper place
Nathan Froyd [Fri, 15 Jan 2010 03:01:04 +0000] 
move the OPTIMIZE SPEED declaration to its proper place

4 years agofirst crack at async encoding interface for base64
Nathan Froyd [Thu, 14 Jan 2010 03:49:54 +0000] 
first crack at async encoding interface for base64

4 years agoadd commented-out async encoding interface
Nathan Froyd [Thu, 14 Jan 2010 03:49:41 +0000] 
add commented-out async encoding interface

4 years agoremember that there's other Lisps besides CMUCL and SBCL
Nathan Froyd [Thu, 14 Jan 2010 03:49:05 +0000] 
remember that there's other Lisps besides CMUCL and SBCL

4 years agoadd sneaky SIMPLE-STRING deftype
Nathan Froyd [Thu, 14 Jan 2010 03:47:06 +0000] 
add sneaky SIMPLE-STRING deftype

4 years agoadd TODOs for converting to async encode/decode
Nathan Froyd [Thu, 14 Jan 2010 03:46:49 +0000] 
add TODOs for converting to async encode/decode

4 years agoclarify when we can easy line-break encoded output
Nathan Froyd [Thu, 14 Jan 2010 03:45:54 +0000] 
clarify when we can easy line-break encoded output

4 years agoadd SIMPLE-OCTET-VECTOR type
Nathan Froyd [Wed, 13 Jan 2010 21:44:43 +0000] 
add SIMPLE-OCTET-VECTOR type

4 years agomove ENCODE-STATE and DECODE-STATE to types.lisp
Nathan Froyd [Wed, 13 Jan 2010 21:43:14 +0000] 
move ENCODE-STATE and DECODE-STATE to types.lisp

4 years agoadd new types.lisp file
Nathan Froyd [Wed, 13 Jan 2010 21:42:42 +0000] 
add new types.lisp file

4 years agoadd ARRAY-DATA-AND-OFFSETS
Nathan Froyd [Wed, 13 Jan 2010 21:21:06 +0000] 
add ARRAY-DATA-AND-OFFSETS

4 years agoadd new ENCODE-STATE and DECODE-STATE
Nathan Froyd [Wed, 13 Jan 2010 21:20:48 +0000] 
add new ENCODE-STATE and DECODE-STATE

4 years agofew obvious additions to the TODO file
Nathan Froyd [Sat, 14 Nov 2009 03:01:13 +0000] 
few obvious additions to the TODO file