loadEncryptedPkcs8

private fnSshSigner loadEncryptedPkcs8(const(ubyte)[] der, SshPassphraseProvider provider)

Loads an EncryptedPrivateKeyInfo, decrypting it through the passphrase retry loop when provider is given.

Parameters

derDER bytes of the EncryptedPrivateKeyInfo.
providerPassphrase source, or null.

Returns

The adopted signer.

Throws

SshKeyEncryptionException without a provider or for

unsupported PBES2 schemes; SshKeyPassphraseException when every passphrase attempt is rejected; SshKeyException for malformed structures.