3Tfp RddlmZddlZddlmZmZddlmZddl m Z GddejZ e ed r%e jejjGd d ejZe ed r&ejejj yy) ) annotationsN)UnsupportedAlgorithm_Reasons)openssl)_serializationceZdZeddZej ddZej d dZej d dZ ej d dZ y) Ed448PublicKeycddlm}|jstdtj |j |SNr)backendz2ed448 is not supported by this version of OpenSSL.),cryptography.hazmat.backends.openssl.backendr ed448_supportedrr UNSUPPORTED_PUBLIC_KEY_ALGORITHMed448_load_public_bytesclsdatar s Q/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/ed448.pyfrom_public_bytesz Ed448PublicKey.from_public_bytess=H&&(&D99  ..t44cy)z9 The serialized bytes of the public key. N)selfencodingformats r public_byteszEd448PublicKey.public_bytesrcy)z` The raw bytes of the public key. Equivalent to public_bytes(Raw, Raw). Nrrs rpublic_bytes_rawzEd448PublicKey.public_bytes_raw%rrcy)z' Verify the signature. Nr)r signaturers rverifyzEd448PublicKey.verify,rrcy)z" Checks equality. Nr)rothers r__eq__zEd448PublicKey.__eq__2rrN)rbytesreturnr )r_serialization.Encodingrz_serialization.PublicFormatr(r'r(r')r"r'rr'r(None)r%objectr(bool) __name__ __module__ __qualname__ classmethodrabcabstractmethodrr r#r&rrrr r s 5 5  ) ,              rr ) metaclassed448ceZdZeddZed dZejd dZejd dZ ej d dZ ejd dZ y)Ed448PrivateKeycddlm}|jstdtj |j Sr )r r rrrred448_generate_key)rr s rgeneratezEd448PrivateKey.generate>s;H&&(&D99 ))++rcddlm}|jstdtj |j |Sr )r r rrrred448_load_private_bytesrs rfrom_private_bytesz"Ed448PrivateKey.from_private_bytesIs=H&&(&D99  //55rcy)zB The Ed448PublicKey derived from the private key. Nrrs r public_keyzEd448PrivateKey.public_keyUrrcy)z! Signs the data. Nr)rrs rsignzEd448PrivateKey.sign[rrcy)z: The serialized bytes of the private key. Nr)rrrencryption_algorithms r private_byteszEd448PrivateKey.private_bytesarrcy)zr The raw bytes of the private key. Equivalent to private_bytes(Raw, Raw, NoEncryption()). Nrrs rprivate_bytes_rawz!Ed448PrivateKey.private_bytes_rawlrrN)r(r7)rr'r(r7)r(r )rr'r(r')rr)rz_serialization.PrivateFormatrCz)_serialization.KeySerializationEncryptionr(r'r*) r.r/r0r1r:r=r2r3r?rArDrFrrrr7r7=s,, 6 6        ) - H        rr7x448) __future__rr2cryptography.exceptionsrr"cryptography.hazmat.bindings._rustr rust_opensslcryptography.hazmat.primitivesrABCMetar hasattrregisterr5r7rrrrPs # BF9( s{{( V <!L..==>4  4 n < \//??@!r