Boost logo

Boost :

Subject: Re: [boost] Crypto Proposal
From: Rob Riggs (rob_at_[hidden])
Date: 2010-04-11 19:25:53


On 04/11/2010 10:53 AM, Chad Seibert wrote:
> Here's an example of boostified code, from one of the examples on the site. It's not too different from the original code (it's just commented out); this is because I don't want it to be a chore to port from Botan to Boost.Botan. Also, it is intuitively designed and I see no reason to change it. Of course, if it needs redesigning, we can discuss that afterwards
>
...
> //std::auto_ptr<PKCS8_PrivateKey> privkey(PKCS8::load_key(arg_ca_key, rng, arg_passphrase));
> std::auto_ptr<boost::botan::pkcs8::private_key> privkey(pkcs8::load_key(arg_ca_key, rng, arg_passphrase));
>
Hi Chad,

Would it make sense to have privkey() return the private key by value?
Is it non-copyable?

Rob


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk