[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: building libraries
On Sun, 30 Jul 1995, Bill Stewart wrote:
> If you did everything in an RSAREF-compatible manner, that would help;
> I think somebody outside the US has written an RSAREF-clone.
> Some problems include building programs that have generic-callout hooks
> instead of crypto-specific hooks (so that they don't get bitten by ITAR),
> while still maintaining reasonable efficiency and convenience.
One way to achieve this is to provide multi-layered generic "compression"
hooks which get called in this manner:
Compress[x](char *bufferin, size_t insize, char *bufferout, size_t *osize);
Then you chain several of these by alternating the in/out buffers, say
something like this:
for (i=0; i<MAXCOMPRESSORS; i+=2)
To decompress, you'd do something like this:
for (i=MAXCOMPRESSORS-1; i; i-=2)
This lets you set up a chain of compressors, each compressing the output
of the previous levels. And what you do is allow these compressors to be
external to the program! (If one or more of those should be hooks to
encrypt, well, hey, that's just a 'bug' ;-)
Basically this does C1(C2(C3(C4...CN(text)))))...) to compress the output of
the previous compressors. I would reccomend that the last in the set be
the encryptors or else all the other compressors would fail. :-)
Now, would >THAT< be exportable?
+ ^ + | Ray Arachelian | Amerika: The land of the Freeh. | \-_ _-/ |
\|/ |[email protected]| Where day by day, yet another | \ -- / |
<--+-->| | Constitutional right vanishes. |6 _\- -/_ 6|
/|\ | Just Say | |----\ /---- |
+ v + | "No" to the NSA!| Jail the censor, not the author!| \/ |
/ I watched and weeped as the Exon bill passed, knowing that yet /
/ another freedom vanished before my eyes. How soon before we see/
/a full scale dictatorship in the name of decency? While the rest /