%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/twisted/conch/test/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/twisted/conch/test/__pycache__/test_ckeygen.cpython-312.pyc |
� Ϫ�f-m � � � d Z ddlmZ ddlZddlZddlZddlZddlZddlmZ ddl m Z ddl mZ ddlm Z mZmZmZmZ ddlmZ dd lmZ dd lmZ ed� rddlmZmZmZmZmZmZ dd lm Z m!Z!m"Z"m#Z# ndZ$dd�Z% G d� de� Z&y)z- Tests for L{twisted.conch.scripts.ckeygen}. � )�annotationsN)�StringIO)�Callable)�NoReturn)�privateECDSA_openssh�privateEd25519_openssh_new�privateRSA_openssh�privateRSA_openssh_encrypted�publicRSA_openssh)�FilePath)� requireModule)�TestCase�cryptography)�_getKeyOrDefault�_saveKey�changePassPhrase�displayPublicKey�enumrepresentation�printFingerprint)�BadFingerPrintFormat�BadKeyError�FingerprintFormats�Keyz7cryptography required for twisted.conch.scripts.ckeygenc �* �� t | � �d�fd�}|S )a@ Return a callable to patch C{getpass.getpass}. Yields a passphrase each time called. Use case is to provide an old, then new passphrase(s) as if requested interactively. @param passphrases: The list of passphrases returned, one per each call. @return: A callable to patch C{getpass.getpass}. c � �� t �� S �N)�next)�_�passphrasesIters ��A/usr/lib/python3/dist-packages/twisted/conch/test/test_ckeygen.py�fakeGetpassz makeGetpass.<locals>.fakeGetpass= s �� ��O�$�$� )r �object�return�str)�iter)�passphrasesr! r s @r �makeGetpassr( 1 s �� � �;�'�O�%� �r"