openssh_key.kdf_options.factory.create_kdf_options

openssh_key.kdf_options.factory.create_kdf_options(kdf_type)

Returns the class corresponding to the given key derivation function type name.

Parameters

kdf_type (str) – The name of the OpenSSH private key key derivation function type.

Return type

Type[KDFOptions]

Returns

The subclass of KDF corresponding to the key derivation function type name.

Raises

KeyError – There is no subclass of KDF corresponding to the given key derivation function type name.