[Botan-devel] DH public key generation

rippel tippel rippeltippel at gmail.com
Thu Oct 9 04:32:41 EDT 2008


It works, thank you!!!

Rippel


On Wed, Oct 8, 2008 at 4:31 PM, Jack Lloyd <lloyd at randombit.net> wrote:

> On Wed, Oct 08, 2008 at 04:08:11PM +0100, rippel tippel wrote:
>
> > I know that's because the AES-256 key length should be 32 bytes, but from
> > Diffie-Hellman I get a 128-byte key.
> > How can I decide to generate a 32-byte key from Diffie-Hellman exchange?
> [...]
>
> The right thing to do here is use a KDF or PRF. That will allow you to
> generate any sized cipher key (or sequence of keys, for MACs, key
> rollover, and using two sets of keys for each channel (one each
> direction)).
>
> A PRF that would be reasonable to use in this situation is the TLSv1
> PRF.
>
> -Jack
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20081009/1a17560c/attachment.html>


More information about the botan-devel mailing list