CodeSampleX

Exemple

Deserializing an unencrypted SSH private key with load_ssh_private_key raises TypeError when given an unnecessary password byte string rather than silently ignoring it

sha256:64a29ca11a10fc937a1d77d108e7d5598927a5b46f7053af3372887d4e17f34d

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
Deserializing an unencrypted SSH private key with load_ssh_private_key raises TypeError when given an unnecessary password byte string rather than silently ignoring it HOW
Paquets
cryptography 47.0.0
Environnement
python
Créé
2026-08-17T02:11:35Z

Ce que l'on suppose souvent

Passing a non-None password parameter when deserializing an unencrypted SSH private key is silently ignored by load_ssh_private_key.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification