ykman.openpgp

Functions

safe_reset(connection)

Performs an OpenPGP factory reset while avoiding any unneccessary commands.

get_key_info(discretionary, ref, status)

get_openpgp_info(session)

Get human readable information about the OpenPGP configuration.

Module Contents

ykman.openpgp.safe_reset(connection)[source]

Performs an OpenPGP factory reset while avoiding any unneccessary commands.

If any data is unreadable preventing the OpenPgpSession from initializing, then OpenPgpSession.reset() will not be able to be called. This function can instead be used to reset the application into a fresh state.

Parameters:

connection (yubikit.core.smartcard.SmartCardConnection)

Return type:

None

ykman.openpgp.get_key_info(discretionary, ref, status)[source]
ykman.openpgp.get_openpgp_info(session)[source]

Get human readable information about the OpenPGP configuration.

Parameters:

session (yubikit.openpgp.OpenPgpSession) – The OpenPGP session.