[Botan-devel] Importing DSA privateKey

Daniel Gollas Gilman gollas at jefecorp.com
Tue Jan 27 14:35:06 EST 2009


Hi, I have a private key generated using OpenSSL but I can't figure out how to 
load it. The key looks like this:

-----BEGIN DSA PRIVATE KEY-----
MIIDQAIBAAKCAQEAyx0KEEnK9ckm27ib2ZB6hfUhMq1EwEcJqmJIGTR3bUbYlfZP
...
...
vNdr5DRVSvdWaEPIPz4etMKdYl8=
-----END DSA PRIVATE KEY-----

I found this post in the mailing list:
http://lists.randombit.net/pipermail/botan-devel/2006-September/000266.html

but the compiler says error: 'class Botan::Private_Key' has no member 
named 'BER_decode_priv'

on this line: (key)->BER_decode_priv(key_source);

I am using Botan 1.6.3 in Ubuntu. 

Thankyou.
Daniel Gollás.



More information about the botan-devel mailing list