Skip to content

Commit 0c89f03

Browse files
Declare PKCS#11 3.x UNIQUE_ID attr
1 parent e71c2f3 commit 0c89f03

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

pkcs11/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ class Attribute(IntEnum):
8585
"""
8686
LABEL = 0x00000003
8787
"""Object label (:class:`str`)."""
88+
UNIQUE_ID = 0x00000004
89+
"""Unique identifier (:class:`str`)."""
8890
APPLICATION = 0x00000010
8991
VALUE = 0x00000011
9092
"""

pkcs11/defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def _enum(type_):
182182
Attribute.SUBPRIME_BITS: _ulong,
183183
Attribute.TOKEN: _bool,
184184
Attribute.TRUSTED: _bool,
185+
Attribute.UNIQUE_ID: _str,
185186
Attribute.UNWRAP: _bool,
186187
Attribute.URL: _str,
187188
Attribute.VALUE: _biginteger,

0 commit comments

Comments
 (0)