openssh_key.kdf_options.none.NoneKDFOptions

class openssh_key.kdf_options.none.NoneKDFOptions(dict=None, /, **kwargs)

Bases: openssh_key.kdf_options.common.KDFOptions

Null key derivation function.

To be used only with null encryption.

__init__(dict=None, /, **kwargs)

Methods

__init__([dict])

clear()

copy()

derive_key(passphrase, length)

Returns an empty key derivation function result for use with null encryption.

fromkeys(iterable[, value])

generate_options(**kwargs)

Empty key derivation function parameters.

get(k[,d])

get_options_format_instructions_dict()

The Pascal-style byte stream format instructions for the parameters to a key derivation function.

items()

keys()

pop(k[,d])

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem()

as a 2-tuple; but raise KeyError if D is empty.

setdefault(k[,d])

update([E, ]**F)

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values()

Attributes

OPTIONS_FORMAT_INSTRUCTIONS_DICT

The Pascal-style byte stream format instructions for the parameters to a key derivation function.

clear() None.  Remove all items from D.
derive_key(passphrase, length)

Returns an empty key derivation function result for use with null encryption.

Parameters
  • options – Ignored.

  • passphrase (str) – Ignored.

Return type

bytes

Returns

An empty key derivation function result.

classmethod generate_options(**kwargs)

Empty key derivation function parameters.

Return type

TypeVar(NoneKDFOptionsTypeVar, bound= NoneKDFOptions)

Returns

An empty dict.

get(k[, d]) D[k] if k in D, else d.  d defaults to None.
classmethod get_options_format_instructions_dict()

The Pascal-style byte stream format instructions for the parameters to a key derivation function.

Return type

Mapping[str, Union[str, PascalStyleFormatInstruction, PascalStyleFormatInstructionStringLengthSize]]

items() a set-like object providing a view on D's items
keys() a set-like object providing a view on D's keys
pop(k[, d]) v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem() (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

setdefault(k[, d]) D.get(k,d), also set D[k]=d if k not in D
update([E, ]**F) None.  Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values() an object providing a view on D's values