Add a passphrase callback and minor changes to the interface