Skip to content

Commit 3f4183c

Browse files
committed
objects: Sort attributes alphabetically
Signed-off-by: Jakub Jelen <[email protected]>
1 parent 98f269a commit 3f4183c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cryptoki/src/object.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ pub enum AttributeType {
9494
ObjectId,
9595
/// DER encoding of the attribute certificate's subject field
9696
Owner,
97+
/// Algorithm-specific parameter set
98+
ParameterSet,
9799
/// Prime number value of a key
98100
Prime,
99101
/// The prime `p` of an RSA private key
@@ -108,6 +110,8 @@ pub enum AttributeType {
108110
PublicExponent,
109111
/// DER-encoding of the SubjectPublicKeyInfo
110112
PublicKeyInfo,
113+
/// Seed to derive private key
114+
Seed,
111115
/// Determines if the key is sensitive
112116
Sensitive,
113117
/// DER encoding of the certificate serial number
@@ -144,10 +148,6 @@ pub enum AttributeType {
144148
Wrap,
145149
/// Indicates that the key can only be wrapped with a wrapping key that has the Trusted attribute
146150
WrapWithTrusted,
147-
/// Seed to derive private key
148-
Seed,
149-
/// Algorithm-specific parameter set
150-
ParameterSet,
151151
}
152152

153153
impl AttributeType {

0 commit comments

Comments
 (0)