Module ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareGt NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq NameLoad Num Return SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Slice SubscriptLoad NameLoad Index Num decorator_list decorator_list Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Raise NameLoad Return NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str AttributeLoad NameLoad attr If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore BinOpFloorDiv BinOpAdd Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareGt NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareGt NameLoad Num Return SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Slice NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIs NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr
N/A __future__ absolute_import division print_function cryptography utils cryptography.exceptions InvalidSignature UnsupportedAlgorithm _Reasons cryptography.hazmat.backends.openssl.utils _truncate_digest cryptography.hazmat.primitives hashes serialization cryptography.hazmat.primitives.asymmetric AsymmetricSignatureContext AsymmetricVerificationContext ec _truncate_digest_for_ecdsa N/A N/A ec_key_cdata digest backend N/A N/A N/A 
    This function truncates digests that are longer than a given elliptic
    curve key's length so they can be signed. Since elliptic curve keys are
    much shorter than RSA keys many digests (e.g. SHA-512) may require
    truncation.
     N/A _lib N/A backend _lib N/A _ffi N/A backend _ffi N/A group N/A N/A _lib EC_KEY_get0_group ec_key_cdata N/A N/A N/A backend _tmp_bn_ctx bn_ctx N/A N/A order N/A N/A _lib BN_CTX_get bn_ctx N/A N/A N/A backend openssl_assert N/A order N/A _ffi NULL N/A res N/A N/A _lib EC_GROUP_get_order group order bn_ctx N/A N/A N/A backend openssl_assert N/A res 1 N/A order_bits N/A N/A _lib BN_num_bits order N/A N/A _truncate_digest digest order_bits N/A _ec_key_curve_sn N/A N/A backend ec_key N/A N/A N/A group N/A N/A N/A backend _lib EC_KEY_get0_group ec_key N/A N/A N/A backend openssl_assert N/A group N/A N/A backend _ffi NULL N/A nid N/A N/A N/A backend _lib EC_GROUP_get_curve_name group N/A N/A nid N/A N/A backend _lib NID_undef N/A N/A N/A NotImplementedError ECDSA certificates with unnamed curves are unsupported at this time N/A curve_name N/A N/A N/A backend _lib OBJ_nid2sn nid N/A N/A N/A backend openssl_assert N/A curve_name N/A N/A backend _ffi NULL N/A sn N/A N/A N/A N/A N/A backend _ffi string curve_name decode ascii N/A sn N/A _mark_asn1_named_ec_curve N/A N/A backend ec_cdata N/A N/A N/A 
    Set the named curve flag on the EC_KEY. This causes OpenSSL to
    serialize EC keys along with their curve OID which makes
    deserialization easier.
     N/A N/A N/A N/A backend _lib EC_KEY_set_asn1_flag ec_cdata N/A N/A backend _lib OPENSSL_EC_NAMED_CURVE N/A _sn_to_elliptic_curve N/A N/A backend sn N/A N/A N/A N/A N/A N/A N/A N/A ec _CURVE_TYPES N/A sn N/A N/A N/A KeyError N/A N/A N/A UnsupportedAlgorithm N/A N/A {0} is not a supported elliptic curve format sn N/A _Reasons UNSUPPORTED_ELLIPTIC_CURVE N/A _ECDSASignatureContext N/A object N/A __init__ N/A N/A self backend private_key algorithm N/A N/A N/A N/A self _backend backend N/A N/A self _private_key private_key N/A N/A self _digest N/A N/A hashes Hash algorithm backend N/A update N/A N/A self data N/A N/A N/A N/A N/A N/A self _digest update data N/A finalize N/A N/A self N/A N/A N/A ec_key N/A N/A self _private_key _ec_key N/A digest N/A N/A N/A self _digest finalize N/A digest N/A _truncate_digest_for_ecdsa ec_key digest N/A self _backend N/A max_size N/A N/A N/A N/A self _backend _lib ECDSA_size ec_key N/A N/A N/A N/A self _backend openssl_assert N/A max_size 0 N/A sigbuf N/A N/A N/A N/A self _backend _ffi new char[] max_size N/A siglen_ptr N/A N/A N/A N/A self _backend _ffi new unsigned int[] 1 N/A res N/A N/A N/A N/A self _backend _lib ECDSA_sign 0 digest N/A len digest sigbuf siglen_ptr ec_key N/A N/A N/A N/A self _backend openssl_assert N/A res 1 N/A N/A N/A N/A N/A N/A self _backend _ffi buffer sigbuf N/A N/A siglen_ptr N/A 0 N/A N/A N/A N/A utils register_interface AsymmetricSignatureContext _ECDSAVerificationContext N/A object N/A __init__ N/A N/A self backend public_key signature algorithm N/A N/A N/A N/A self _backend backend N/A N/A self _public_key public_key N/A N/A self _signature signature N/A N/A self _digest N/A N/A hashes Hash algorithm backend N/A update N/A N/A self data N/A N/A N/A N/A N/A N/A self _digest update data N/A verify N/A N/A self N/A N/A N/A ec_key N/A N/A self _public_key _ec_key N/A digest N/A N/A N/A self _digest finalize N/A digest N/A _truncate_digest_for_ecdsa ec_key digest N/A self _backend N/A res N/A N/A N/A N/A self _backend _lib ECDSA_verify 0 digest N/A len digest N/A self _signature N/A len N/A self _signature ec_key N/A N/A res 1 N/A N/A N/A N/A N/A self _backend _consume_errors N/A InvalidSignature N/A True N/A N/A N/A N/A utils register_interface AsymmetricVerificationContext _EllipticCurvePrivateKey N/A object N/A __init__ N/A N/A self backend ec_key_cdata evp_pkey N/A N/A N/A N/A self _backend backend N/A N/A _mark_asn1_named_ec_curve backend ec_key_cdata N/A N/A self _ec_key ec_key_cdata N/A N/A self _evp_pkey evp_pkey N/A sn N/A _ec_key_curve_sn backend ec_key_cdata N/A N/A self _curve N/A _sn_to_elliptic_curve backend sn N/A N/A curve N/A N/A utils read_only_property _curve signer N/A N/A self signature_algorithm N/A N/A N/A N/A isinstance signature_algorithm N/A ec ECDSA N/A N/A N/A _ECDSASignatureContext N/A self _backend self N/A signature_algorithm algorithm N/A N/A N/A UnsupportedAlgorithm Unsupported elliptic curve signature algorithm. N/A _Reasons UNSUPPORTED_PUBLIC_KEY_ALGORITHM N/A exchange N/A N/A self algorithm peer_public_key N/A N/A N/A N/A N/A N/A N/A self _backend elliptic_curve_exchange_algorithm_supported algorithm N/A self curve N/A N/A N/A UnsupportedAlgorithm This backend does not support the ECDH algorithm. N/A _Reasons UNSUPPORTED_EXCHANGE_ALGORITHM N/A N/A N/A N/A peer_public_key curve name N/A N/A self curve name N/A N/A N/A ValueError peer_public_key and self are not on the same curve N/A group N/A N/A N/A N/A self _backend _lib EC_KEY_get0_group N/A self _ec_key N/A z_len N/A N/A N/A N/A N/A N/A self _backend _lib EC_GROUP_get_degree group 7 8 N/A N/A N/A N/A self _backend openssl_assert N/A z_len 0 N/A z_buf N/A N/A N/A N/A self _backend _ffi new uint8_t[] z_len N/A peer_key N/A N/A N/A N/A self _backend _lib EC_KEY_get0_public_key N/A peer_public_key _ec_key N/A r N/A N/A N/A N/A self _backend _lib ECDH_compute_key z_buf z_len peer_key N/A self _ec_key N/A N/A N/A self _backend _ffi NULL N/A N/A N/A N/A self _backend openssl_assert N/A r 0 N/A N/A N/A N/A N/A N/A self _backend _ffi buffer z_buf N/A z_len N/A public_key N/A N/A self N/A N/A N/A group N/A N/A N/A N/A self _backend _lib EC_KEY_get0_group N/A self _ec_key N/A N/A N/A N/A self _backend openssl_assert N/A group N/A N/A N/A self _backend _ffi NULL N/A curve_nid N/A N/A N/A N/A self _backend _lib EC_GROUP_get_curve_name group N/A public_ec_key N/A N/A N/A N/A self _backend _lib EC_KEY_new_by_curve_name curve_nid N/A N/A N/A N/A self _backend openssl_assert N/A public_ec_key N/A N/A N/A self _backend _ffi NULL N/A public_ec_key N/A N/A N/A N/A self _backend _ffi gc public_ec_key N/A N/A N/A self _backend _lib EC_KEY_free N/A point N/A N/A N/A N/A self _backend _lib EC_KEY_get0_public_key N/A self _ec_key N/A N/A N/A N/A self _backend openssl_assert N/A point N/A N/A N/A self _backend _ffi NULL N/A res N/A N/A N/A N/A self _backend _lib EC_KEY_set_public_key public_ec_key point N/A N/A N/A N/A self _backend openssl_assert N/A res 1 N/A evp_pkey N/A N/A N/A self _backend _ec_cdata_to_evp_pkey public_ec_key N/A N/A _EllipticCurvePublicKey N/A self _backend public_ec_key evp_pkey N/A private_numbers N/A N/A self N/A N/A N/A bn N/A N/A N/A N/A self _backend _lib EC_KEY_get0_private_key N/A self _ec_key N/A private_value N/A N/A N/A self _backend _bn_to_int bn N/A N/A N/A ec EllipticCurvePrivateNumbers private_value private_value public_numbers N/A N/A N/A N/A self public_key public_numbers N/A private_bytes N/A N/A self encoding format encryption_algorithm N/A N/A N/A N/A N/A N/A self _backend _private_key_bytes encoding format encryption_algorithm N/A self _evp_pkey N/A self _ec_key N/A N/A N/A N/A utils register_interface N/A ec EllipticCurvePrivateKeyWithSerialization _EllipticCurvePublicKey N/A object N/A __init__ N/A N/A self backend ec_key_cdata evp_pkey N/A N/A N/A N/A self _backend backend N/A N/A _mark_asn1_named_ec_curve backend ec_key_cdata N/A N/A self _ec_key ec_key_cdata N/A N/A self _evp_pkey evp_pkey N/A sn N/A _ec_key_curve_sn backend ec_key_cdata N/A N/A self _curve N/A _sn_to_elliptic_curve backend sn N/A N/A curve N/A N/A utils read_only_property _curve verifier N/A N/A self signature signature_algorithm N/A N/A N/A N/A N/A isinstance signature bytes N/A N/A N/A TypeError signature must be bytes. N/A N/A isinstance signature_algorithm N/A ec ECDSA N/A N/A N/A _ECDSAVerificationContext N/A self _backend self signature N/A signature_algorithm algorithm N/A N/A N/A UnsupportedAlgorithm Unsupported elliptic curve signature algorithm. N/A _Reasons UNSUPPORTED_PUBLIC_KEY_ALGORITHM N/A public_numbers N/A N/A self N/A N/A N/A N/A set_func get_func group N/A N/A N/A self _backend _ec_key_determine_group_get_set_funcs N/A self _ec_key N/A point N/A N/A N/A N/A self _backend _lib EC_KEY_get0_public_key N/A self _ec_key N/A N/A N/A N/A self _backend openssl_assert N/A point N/A N/A N/A self _backend _ffi NULL N/A N/A N/A N/A self _backend _tmp_bn_ctx bn_ctx N/A N/A bn_x N/A N/A N/A N/A self _backend _lib BN_CTX_get bn_ctx N/A bn_y N/A N/A N/A N/A self _backend _lib BN_CTX_get bn_ctx N/A res N/A get_func group point bn_x bn_y bn_ctx N/A N/A N/A N/A self _backend openssl_assert N/A res 1 N/A x N/A N/A N/A self _backend _bn_to_int bn_x N/A y N/A N/A N/A self _backend _bn_to_int bn_y N/A N/A N/A ec EllipticCurvePublicNumbers x x y y curve N/A self _curve N/A public_bytes N/A N/A self encoding format N/A N/A N/A N/A format N/A N/A serialization PublicFormat PKCS1 N/A N/A N/A ValueError EC public keys do not support PKCS1 serialization N/A N/A N/A N/A self _backend _public_key_bytes encoding format N/A self _evp_pkey None N/A N/A N/A N/A utils register_interface N/A ec EllipticCurvePublicKeyWithSerialization