[Botan-devel] Casting a byte to a DH_PublicKey

Z. S. O. tiredashell at gmail.com
Sat Apr 11 19:03:24 EDT 2009

Unfortunately I have another casting problem. I used a command similar to
the following to get my DH_PublicKey in byte form:

SecureVector<byte> my_public_key_bits = my_private_key.public_value();

How would you convert this back into a DH_PublicKey? I tried using
reinterpret_cast as before, but my compiler says that a SecureVector<byte>
cannot be casted to it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20090411/e2991864/attachment.html>

More information about the botan-devel mailing list