Coverage for aiocoap / numbers / eaditem.py: 100%
12 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-17 12:28 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-17 12:28 +0000
1# SPDX-FileCopyrightText: Christian Amsüss and the aiocoap contributors
2#
3# SPDX-License-Identifier: MIT
5"""EDHOC EAD item identifiers
7These are provided mainly for internal use, as there is no public API yet to
8influence those EDHOC details.
9"""
11from enum import IntEnum
14class EADLabel(IntEnum):
15 PADDING = 0
17 # CPA suggestion from draft-ietf-ace-edhoc-oscore-profile-09
18 SESSION_ID = 5
19 REQUEST_CREATION_HINTS = 12
20 CRED_BY_VALUE = 15
21 ACCESS_TOKEN = 26
23 # From https://datatracker.ietf.org/doc/html/draft-ietf-lake-edhoc-grease
24 GREASE1 = 160
25 GREASE2 = 41120
26 GREASE3 = 43690
27 GREASE4 = 44975
30grease_labels = [EADLabel.GREASE1, EADLabel.GREASE2, EADLabel.GREASE3, EADLabel.GREASE4]