# -*- coding: utf-8 -*-# pylint: disable=line-too-long,consider-using-f-string"""ECDSA_LOW Curve Label===========================.. module:: pcapkit.const.hip.ecdsa_low_curveThis module contains the constant enumeration for **ECDSA_LOW Curve Label**,which is automatically generated from :class:`pcapkit.vendor.hip.ecdsa_low_curve.ECDSALowCurve`."""fromaenumimportIntEnum,extend_enum__all__=['ECDSALowCurve']
[docs]classECDSALowCurve(IntEnum):"""[ECDSALowCurve] ECDSA_LOW Curve Label"""#: RESERVED [:rfc:`7401`]RESERVED_0=0#: SECP160R1 [:rfc:`7401`]SECP160R1=1@staticmethoddefget(key:'int | str',default:'int'=-1)->'ECDSALowCurve':"""Backport support for original codes. Args: key: Key to get enum item. default: Default value if not found. :meta private: """ifisinstance(key,int):returnECDSALowCurve(key)ifkeynotinECDSALowCurve._member_map_:# pylint: disable=no-memberreturnextend_enum(ECDSALowCurve,key,default)returnECDSALowCurve[key]# type: ignore[misc]
[docs]@classmethoddef_missing_(cls,value:'int')->'ECDSALowCurve':"""Lookup function used when value is not found. Args: value: Value to get enum item. """ifnot(isinstance(value,int)and0<=value<=65535):raiseValueError('%r is not a valid %s'%(value,cls.__name__))if2<=value<=65535:#: Unassignedreturnextend_enum(cls,'Unassigned_%d'%value,value)returnsuper()._missing_(value)