a bW @sPddlZddlmZmZddlmZGdddejdZGdddejdZdS) N)UnsupportedAlgorithm_Reasons)_serializationc@sTeZdZeeddddZejej ej edddZ ejeeddd d Z dS) 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-98j97qn4/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_bytesN) signaturerrcCsdS)z' Verify the signature. Nr)rrrrrrverify#szEd448PublicKey.verify) __name__ __module__ __qualname__ classmethodbytesrabcabstractmethodrEncodingZ PublicFormatrrrrrrr s  r) metaclassc@s|eZdZeddddZeeddddZeje dddZ ejeedd d Z eje j e je jed 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_algorithmrcCsdS)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