관리-도구
편집 파일: test_SHA512.cpython-311.pyc
� O�DgN � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddd d dz dfd dgZ d� Z d� Zd� Zi fd�Z edk rddlZd� Z ej d�� � dS dS )z&Self-test suite for Crypto.Hash.SHA512� )�hexlify)�SHA512� )�make_hash_tests)�load_test_vectors)ڀddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f�abc)ڀ8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909�pabcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstuڀe718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b�ai@B z'a' * 10**6)ڀcf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e� )ڀaf9ed2de700433b803240a552b41b5a472a6ef3fe1431a722b2063c75e9f07451f67a28e37d09cde769424c96aea6f8971389db9e1993d6c565c3c71b855723cz;Franz jagt im komplett verwahrlosten Taxi quer durch Bayernc �j � t ddddd� i� � pg } t d d � }| D ]p} |� d� � r�n# t $ r Y nw xY w|j dk rd|_ |� t |j � � |j |j f� � �qt t d |d d�� � }|S ) N��Hash�SHA2zSHA512ShortMsg.rspzKAT SHA-512�lenc � � t | � � S �N��int��xs ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Hash/test_SHA512.py�<lambda>z"get_tests_SHA512.<locals>.<lambda>: � � �#�a�&�&� � �[r r r �@ z2.16.840.1.101.3.4.2.3)�digest_size�oid)r �test_data_512_other� startswith�AttributeErrorr �msg�appendr �md�descr r ��test_vectors� test_data�tv�testss r �get_tests_SHA512r0 5 s� � �$�%5� 4� -�!&�(8�(8� 9�;� ;� A� ?A� � $�A�A�A�&�I�� <� <�� ��}�}�S�!�!� �� ��� � � ��D� ���� �6�Q�;�;��B�F����'�"�%�.�.�"�&�"�'�:�;�;�;�;��F�H�i�(*� 8� :� :� :�E� �Ls �A� A�Ac �V � t ddddd� i� � pg } g }| D ]p} |� d� � r�n# t $ r Y nw xY w|j dk rd|_ |� t |j � � |j |j f� � �qt t d |d ddd i�� � }|S )Nr zSHA512_224ShortMsg.rspzKAT SHA-512/224r c � � t | � � S r r r s r r z&get_tests_SHA512_224.<locals>.<lambda>R r r r r r z SHA512/224� z2.16.840.1.101.3.4.2.5�truncate�224�r"