CodeSampleX

Exemple

AESGCM.generate_key requires key size in bits rather than bytes, and AESGCM.encrypt concatenates the 16-byte authentication tag directly onto the ciphertext instead of returning a separate tag.

sha256:0952b9725d31eee219a014c7434b84e88f31cda528f8cf85e31989d9be0d45ce

PUBLISHED L3_CONTRACT_PASS MIT-0

Cas

Objectif
AESGCM.generate_key requires key size in bits rather than bytes, and AESGCM.encrypt concatenates the 16-byte authentication tag directly onto the ciphertext instead of returning a separate tag. HOW
Paquets
cryptography 47.0.0
Environnement
python
Créé
2026-08-17T02:11:32Z

Ce que l'on suppose souvent

AESGCM.generate_key takes key length in bytes and AESGCM.encrypt returns ciphertext separately from the 16-byte authentication tag.

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