Skip to content

Commit 6ea0d87

Browse files
committed
PublicKeyRsa: add option to create empty object
Signed-off-by: Thore Sommer <mail@thson.de>
1 parent 5bb76d8 commit 6ea0d87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tss-esapi/src/structures/buffers.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@ pub mod public_key_rsa {
330330
RsaKeyBits::Rsa4096 => PublicKeyRsa(vec![0u8; 512].into()),
331331
}
332332
}
333+
334+
pub fn new_empty() -> Self {
335+
PublicKeyRsa(vec![0u8; 0].into())
336+
}
333337
}
334338

335339
impl TryFrom<PublicKeyRsa> for [u8; 128] {

0 commit comments

Comments
 (0)