# -*- coding: utf-8 -*-# pylint: disable=line-too-long,consider-using-f-string"""Suite IDs===============.. module:: pcapkit.const.hip.suiteThis module contains the constant enumeration for **Suite IDs**,which is automatically generated from :class:`pcapkit.vendor.hip.suite.Suite`."""fromaenumimportIntEnum,extend_enum__all__=['Suite']
[docs]classSuite(IntEnum):"""[Suite] Suite IDs"""#: Reserved [:rfc:`5201`]Reserved_0=0#: AES-CBC with HMAC-SHA1 [:rfc:`5201`]AES_CBC_with_HMAC_SHA1=1#: 3DES-CBC with HMAC-SHA1 [:rfc:`5201`]Suite_3DES_CBC_with_HMAC_SHA1=2#: 3DES-CBC with HMAC-MD5 [:rfc:`5201`]Suite_3DES_CBC_with_HMAC_MD5=3#: BLOWFISH-CBC with HMAC-SHA1 [:rfc:`5201`]BLOWFISH_CBC_with_HMAC_SHA1=4#: NULL-ENCRYPT with HMAC-SHA1 [:rfc:`5201`]NULL_ENCRYPT_with_HMAC_SHA1=5#: NULL-ENCRYPT with HMAC-MD5 [:rfc:`5201`]NULL_ENCRYPT_with_HMAC_MD5=6@staticmethoddefget(key:'int | str',default:'int'=-1)->'Suite':"""Backport support for original codes. Args: key: Key to get enum item. default: Default value if not found. :meta private: """ifisinstance(key,int):returnSuite(key)ifkeynotinSuite._member_map_:# pylint: disable=no-memberreturnextend_enum(Suite,key,default)returnSuite[key]# type: ignore[misc]
[docs]@classmethoddef_missing_(cls,value:'int')->'Suite':"""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__))if7<=value<=65535:#: Unassignedreturnextend_enum(cls,'Unassigned_%d'%value,value)returnsuper()._missing_(value)