[botan-devel] Key craetion error

Seba superpacko at gmail.com
Sun Mar 24 12:53:23 EDT 2013

Sorry about the previous email, gmail when crazy :S

This simple app, crashes when calling BER_encode, and the last symbol i can
when debugging is somethign related with Algorithm identifier. Not sure
whats wrong, since i can encrypt and decrypt simple texts with the pipe
approach. Im using Qt Creator with Qt 5.0.1 (gcc 4.7.2). (I built botan
with this compiler of course)

int main()

        LibraryInitializer init;

        cout << "Hello Botan!" << endl;

        Botan::AutoSeeded_RNG rng;

        Botan::RSA_PrivateKey rsaPrivate(rng, 1024);

        std::vector<Botan::byte> publicBytes  =
        std::vector<Botan::byte> privateBytes =
Botan::PKCS8::BER_encode(rsaPrivate, rng, "passphrase");
     catch(std::exception& e)
        std::cerr << "Error: " << e.what() << "\n";

    return 0;

Any ideas?? or anyone experienced problems with Botan 1.11 compiled with
minGW and gcc 4.7.2?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20130324/052f3cf1/attachment.html>

More information about the botan-devel mailing list