# -*- coding: utf-8 -*-# pylint: disable=line-too-long,consider-using-f-string"""EdDSA Curve Label=======================.. module:: pcapkit.const.hip.eddsa_curveThis module contains the constant enumeration for **EdDSA Curve Label**,which is automatically generated from :class:`pcapkit.vendor.hip.eddsa_curve.EdDSACurve`."""fromaenumimportIntEnum,extend_enum__all__=['EdDSACurve']
[docs]classEdDSACurve(IntEnum):"""[EdDSACurve] EdDSA Curve Label"""#: RESERVED [:rfc:`9374`]RESERVED_0=0#: EdDSA25519 [:rfc:`8032`]EdDSA25519=1#: EdDSA25519ph [:rfc:`8032`]EdDSA25519ph=2#: EdDSA448 [:rfc:`8032`]EdDSA448=3#: EdDSA448ph [:rfc:`8032`]EdDSA448ph=4@staticmethoddefget(key:'int | str',default:'int'=-1)->'EdDSACurve':"""Backport support for original codes. Args: key: Key to get enum item. default: Default value if not found. :meta private: """ifisinstance(key,int):returnEdDSACurve(key)ifkeynotinEdDSACurve._member_map_:# pylint: disable=no-memberreturnextend_enum(EdDSACurve,key,default)returnEdDSACurve[key]# type: ignore[misc]
[docs]@classmethoddef_missing_(cls,value:'int')->'EdDSACurve':"""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__))if5<=value<=65535:#: Unassignedreturnextend_enum(cls,'Unassigned_%d'%value,value)returnsuper()._missing_(value)