o )%aF @sPddlZddlmZmZddlmZGdddejdZGdddejdZdS) N)UnsupportedAlgorithm_Reasons)_serializationc@sZeZdZededdfddZejdej dej defddZ ejd edefd d Z d S) Ed448PublicKeydatareturncC*ddlm}|stdtj||SNr)backendz2ed448 is not supported by this version of OpenSSL.),cryptography.hazmat.backends.openssl.backendr ed448_supportedrr UNSUPPORTED_PUBLIC_KEY_ALGORITHMed448_load_public_bytesclsrr rQ/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/ed448.pyfrom_public_bytes   z Ed448PublicKey.from_public_bytesencodingformatcCdS)z9 The serialized bytes of the public key. Nr)selfrrrrr public_byteszEd448PublicKey.public_bytes signaturecCr)z' Verify the signature. Nr)rrrrrrverify#rzEd448PublicKey.verifyN) __name__ __module__ __qualname__ classmethodbytesrabcabstractmethodrEncoding PublicFormatrrrrrrr s   r) metaclassc@s~eZdZedddZededdfddZejde fddZ ejdedefd d Z ejd e j d e jd e jfddZdS)Ed448PrivateKeyrcCs(ddlm}|stdtj|Sr )r r r rrr ed448_generate_key)rr rrrgenerate+s zEd448PrivateKey.generatercCrr )r r r rrr ed448_load_private_bytesrrrrfrom_private_bytes6rz"Ed448PrivateKey.from_private_bytescCr)zB The Ed448PublicKey derived from the private key. Nr)rrrr public_keyBrzEd448PrivateKey.public_keycCr)z! Signs the data. Nr)rrrrrsignHrzEd448PrivateKey.signrrencryption_algorithmcCr)z: The serialized bytes of the private key. Nr)rrrr.rrr private_bytesNrzEd448PrivateKey.private_bytesN)rr')rrrr r)r!r+r"r#rr,r-rr$ PrivateFormatKeySerializationEncryptionr/rrrrr'*s"   r') r"cryptography.exceptionsrrcryptography.hazmat.primitivesrABCMetarr'rrrrs