Skip to content

Commit 5bb76d8

Browse files
committed
add constant for SM4 128 bits CFB
Signed-off-by: Thore Sommer <mail@thson.de>
1 parent 66a901b commit 5bb76d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tss-esapi/src/structures/tagged/symmetric.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ impl SymmetricDefinitionObject {
165165
key_bits: AesKeyBits::Aes256,
166166
mode: SymmetricMode::Cfb,
167167
};
168+
// Constant for the SM4 128 bits CFB symmetric definition object
169+
pub const SM4_128_CFB: SymmetricDefinitionObject = SymmetricDefinitionObject::Sm4 {
170+
key_bits: Sm4KeyBits::Sm4_128,
171+
mode: SymmetricMode::Cfb,
172+
};
168173
pub(crate) fn is_null(&self) -> bool {
169174
matches!(self, Self::Null)
170175
}

0 commit comments

Comments
 (0)