AES anyone?

kris foo at bar.com
Fri Aug 17 14:43:27 PDT 2007


BCS wrote:
> Reply to Bedros,
> 
>> can you explain your idea of streaming?
> 
> It would sit on top of another stream object (a socket or file object or 
> whatever). When it is given data it would encrypt it and pass it out the 
> other side. Another object at the other end would receive the data and 
> decrypt it. If, for instance, the intervening data path is a network 
> socket, then the code that uses the stream would be able to treat the 
> objects as if they were the socket it's self. As to the 16 byte issue, 
> undersized packets would be padded and the length would also transfered 
> with them. How, would be up to the implementation.
> 
> 
> IIRC Tango has a way of doing this sort of filtering.

Yes, Tango has stream filters to modulate (or even hijack) the content 
flowing through. Such filters are usually built upon a more generic 
mechanism though, such as plain old incremental-adjustment (the strategy 
followed by tango.io.digest classes)

- Kris

[snip]



More information about the Digitalmars-d mailing list