3 lá˜_ ã@spddlmZmZmZddlZddlZddlmZmZej ej ƒGdd„de ƒƒZ ej ej ƒGdd„de ƒƒZ dS)é)Úabsolute_importÚdivisionÚprint_functionN)ÚUnsupportedAlgorithmÚ_Reasonsc@s4eZdZedd„ƒZejdd„ƒZejdd„ƒZdS)ÚEd448PublicKeycCs*ddlm}|jƒs tdtjƒ‚|j|ƒS)Nr)Úbackendz2ed448 is not supported by this version of OpenSSL.)Ú,cryptography.hazmat.backends.openssl.backendrÚed448_supportedrrÚ UNSUPPORTED_PUBLIC_KEY_ALGORITHMZed448_load_public_bytes)ÚclsÚdatar©rú/usr/lib64/python3.6/ed448.pyÚfrom_public_bytess  z Ed448PublicKey.from_public_bytescCsdS)z9 The serialized bytes of the public key. Nr)ÚselfÚencodingÚformatrrrÚ public_bytesszEd448PublicKey.public_bytescCsdS)z' Verify the signature. Nr)rZ signaturer rrrÚverify"szEd448PublicKey.verifyN) Ú__name__Ú __module__Ú __qualname__Ú classmethodrÚabcÚabstractmethodrrrrrrrs rc@sNeZdZedd„ƒZedd„ƒZejdd„ƒZejdd„ƒZ ejd d „ƒZ d S) ÚEd448PrivateKeycCs(ddlm}|jƒs tdtjƒ‚|jƒS)Nr)rz2ed448 is not supported by this version of OpenSSL.)r rr rrr Zed448_generate_key)r rrrrÚgenerate+s  zEd448PrivateKey.generatecCs*ddlm}|jƒs tdtjƒ‚|j|ƒS)Nr)rz2ed448 is not supported by this version of OpenSSL.)r rr rrr Zed448_load_private_bytes)r r rrrrÚfrom_private_bytes6s  z"Ed448PrivateKey.from_private_bytescCsdS)zB The Ed448PublicKey derived from the private key. Nr)rrrrÚ public_keyBszEd448PrivateKey.public_keycCsdS)z! Signs the data. Nr)rr rrrÚsignHszEd448PrivateKey.signcCsdS)z: The serialized bytes of the private key. Nr)rrrZencryption_algorithmrrrÚ private_bytesNszEd448PrivateKey.private_bytesN) rrrrrrrrrr r!rrrrr)s  r)Z __future__rrrrZsixZcryptography.exceptionsrrZ add_metaclassÚABCMetaÚobjectrrrrrrÚs