U q`F @sPddlZddlmZmZddlmZGdddejdZGdddejdZdS) N)UnsupportedAlgorithm_Reasons)_serializationc@sReZdZeeddddZejej ej edddZ ejeeddd Z d S) Ed448PublicKeydatareturncCs*ddlm}|s tdtj||SNr)backendz2ed448 is not supported by this version of OpenSSL.),cryptography.hazmat.backends.openssl.backendr ed448_supportedrr UNSUPPORTED_PUBLIC_KEY_ALGORITHMZed448_load_public_bytesclsrr rV/tmp/pip-target-nv4zd3e_/lib/python/cryptography/hazmat/primitives/asymmetric/ed448.pyfrom_public_bytes s z Ed448PublicKey.from_public_bytes)encodingformatrcCsdS)z9 The serialized bytes of the public key. Nr)selfrrrrr public_bytesszEd448PublicKey.public_bytes) signaturercCsdS)z' Verify the signature. Nr)rrrrrrverify#szEd448PublicKey.verifyN) __name__ __module__ __qualname__ classmethodbytesrabcabstractmethodrEncodingZ PublicFormatrrrrrrr s  r) metaclassc@szeZdZeddddZeeddddZeje dddZ ejeedd d Z eje j e je jd d d ZdS)Ed448PrivateKey)rcCs(ddlm}|s tdtj|Sr )r r r rrr Zed448_generate_key)rr rrrgenerate+s zEd448PrivateKey.generatercCs*ddlm}|s tdtj||Sr )r r r rrr Zed448_load_private_bytesrrrrfrom_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)rrrrrsignHszEd448PrivateKey.sign)rrencryption_algorithmcCsdS)z: The serialized bytes of the private key. Nr)rrrr'rrr private_bytesNszEd448PrivateKey.private_bytesN)rrrrr#rr$rrrr%r&rr Z PrivateFormatZKeySerializationEncryptionr(rrrrr"*s  r") rZcryptography.exceptionsrrZcryptography.hazmat.primitivesrABCMetarr"rrrrs