def generate_private_key( curve: EllipticCurve, backend=None ) -> EllipticCurvePrivateKey: backend = _get_backend(backend) return backend.generate_elliptic_curve_private_key(curve)
def generate_private_key(curve, backend): return backend.generate_elliptic_curve_private_key(curve)
def generate_private_key( curve: EllipticCurve, backend: typing.Any = None) -> EllipticCurvePrivateKey: from cryptography.hazmat.backends.openssl.backend import backend as ossl return ossl.generate_elliptic_curve_private_key(curve)
def generate_private_key(curve, backend=None): backend = _get_backend(backend) return backend.generate_elliptic_curve_private_key(curve)
def generate_private_key(curve, backend): return backend.generate_elliptic_curve_private_key(curve)