# -*- coding: utf-8 -*-# pylint: disable=line-too-long,consider-using-f-string"""HIT Suite ID==================.. module:: pcapkit.const.hip.hit_suiteThis module contains the constant enumeration for **HIT Suite ID**,which is automatically generated from :class:`pcapkit.vendor.hip.hit_suite.HITSuite`."""fromaenumimportIntEnum,extend_enum__all__=['HITSuite']
[docs]classHITSuite(IntEnum):"""[HITSuite] HIT Suite ID"""#: RESERVED [:rfc:`7401`]RESERVED_0=0#: RSA,DSA/SHA-256 [:rfc:`7401`]RSA_DSA_SHA_256=1#: ECDSA/SHA-384 [:rfc:`7401`]ECDSA_SHA_384=2#: ECDSA_LOW/SHA-1 [:rfc:`7401`]ECDSA_LOW_SHA_1=3#: UnassignedUnassigned_4=4#: EdDSA/cSHAKE128 [:rfc:`9374`]EdDSA_cSHAKE128=5@staticmethoddefget(key:'int | str',default:'int'=-1)->'HITSuite':"""Backport support for original codes. Args: key: Key to get enum item. default: Default value if not found. :meta private: """ifisinstance(key,int):returnHITSuite(key)ifkeynotinHITSuite._member_map_:# pylint: disable=no-memberreturnextend_enum(HITSuite,key,default)returnHITSuite[key]# type: ignore[misc]
[docs]@classmethoddef_missing_(cls,value:'int')->'HITSuite':"""Lookup function used when value is not found. Args: value: Value to get enum item. """ifnot(isinstance(value,int)and0<=value<=15):raiseValueError('%r is not a valid %s'%(value,cls.__name__))if6<=value<=15:#: Unassignedreturnextend_enum(cls,'Unassigned_%d'%value,value)returnsuper()._missing_(value)