Botan

PBE Lookup

License
Botan is released under the Simplified BSD License (see LICENSE.md)

PBE  getPbe(in string algo_spec, in string passphrase, Duration dur, RandomNumberGenerator rng);

Factory function for PBEs.

Parameters
string algo_spec the name of the PBE algorithm to retrieve
string passphrase the passphrase to use for encryption
Duration dur how many milliseconds to run the PBKDF
RandomNumberGenerator rng a random number generator
Returns
pointer to a PBE with randomly created parameters

PBE  getPbe()(in OID pbe_oid, auto ref const Vector!ubyte params, in string passphrase);

Factory function for PBEs.

Parameters
OID pbe_oid the oid of the desired PBE
Vector!ubyte params a DataSource providing the DER encoded parameters to use
string passphrase the passphrase to use for decryption
Returns
pointer to the PBE with the specified parameters