3Tf 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) Ed25519PublicKeycddlm}|jstdtj |j |SNr)backendz4ed25519 is not supported by this version of OpenSSL.),cryptography.hazmat.backends.openssl.backendr ed25519_supportedrr UNSUPPORTED_PUBLIC_KEY_ALGORITHMed25519_load_public_bytesclsdatar s S/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/ed25519.pyfrom_public_bytesz"Ed25519PublicKey.from_public_bytess=H((*&F99  0066cy)z9 The serialized bytes of the public key. N)selfencodingformats r public_byteszEd25519PublicKey.public_bytesrcy)z` The raw bytes of the public key. Equivalent to public_bytes(Raw, Raw). Nrrs rpublic_bytes_rawz!Ed25519PublicKey.public_bytes_raw%rrcy)z' Verify the signature. Nr)r signaturers rverifyzEd25519PublicKey.verify,rrcy)z" Checks equality. Nr)rothers r__eq__zEd25519PublicKey.__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 7 7  ) ,              rr ) metaclassed25519ceZdZeddZed dZejd dZej d dZ ejd dZ ejd dZ y)Ed25519PrivateKeycddlm}|jstdtj |j Sr )r r rrrred25519_generate_key)rr s rgeneratezEd25519PrivateKey.generate>s;H((*&F99  ++--rcddlm}|jstdtj |j |Sr )r r rrrred25519_load_private_bytesrs rfrom_private_bytesz$Ed25519PrivateKey.from_private_bytesJs=H((*&F99  11$77rcy)zD The Ed25519PublicKey derived from the private key. Nrrs r public_keyzEd25519PrivateKey.public_keyVrrcy)z: The serialized bytes of the private key. Nr)rrrencryption_algorithms r private_byteszEd25519PrivateKey.private_bytes\rrcy)zr The raw bytes of the private key. Equivalent to private_bytes(Raw, Raw, NoEncryption()). Nrrs rprivate_bytes_rawz#Ed25519PrivateKey.private_bytes_rawgrrcy)z! Signs the data. Nr)rrs rsignzEd25519PrivateKey.signnrrN)r(r7)rr'r(r7)r(r )rr)rz_serialization.PrivateFormatrAz)_serialization.KeySerializationEncryptionr(r'r*)rr'r(r') r.r/r0r1r:r=r2r3r?rBrDrFrrrr7r7=s . . 8 8     ) - H           rr7x25519) __future__rr2cryptography.exceptionsrr"cryptography.hazmat.bindings._rustr rust_opensslcryptography.hazmat.primitivesrABCMetar hasattrregisterr5r7rrrrPs # BF9( ( V <#l22CCD5 #++5 p <"|33EEF#r