AES anyone?
Bedros Hanounik
2bedros at gmail.com
Fri Aug 17 11:16:27 PDT 2007
can you explain your idea of streaming?
I was thinking of passing a buffer (pointer) to the AES function (with mode and keys), along with the length. and the you get back the cipher data.
please remember that AES only processes data in increments of 16bytes. So, if you send 17 bytes, you'll get cipher data length of 32byte; and you need all the 32 bytes to decrypt. if you pass 127 bytes, you'll get back 128bytes.....etc.
so, it's important to keep track of the length of plain (original) data along with the cipher data, so we can trim the extras once we decipher it.
-Bedros
BCS Wrote:
> Reply to Bedros,
>
> > anyone knows if tango lib has AES?
> >
> > if not, I'm willing to write AES functions for it. I've never used D
> > language before, but I'm very familiar with AES implementations.
> >
> > I'll appreciate any feedback about AES modes needed, and where to
> > start with D, and how to integrate with Tango.
> >
> > Thanks,
> >
> > -Bedros
> >
>
> If AES can operate in a stream mode, then having it as available as a stream
> filter would be high on my list.
>
>
More information about the Digitalmars-d
mailing list