Skip to content

Commit 0c72cca

Browse files
committed
Fix OKP key map length
1 parent 7fa6364 commit 0c72cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ impl Serialize for COSEKey {
993993
S: Serializer,
994994
{
995995
let map_len = match &self.key {
996-
COSEKeyType::OKP(_) => 3,
996+
COSEKeyType::OKP(_) => 4,
997997
COSEKeyType::EC2(_) => 5,
998998
COSEKeyType::RSA(_) => 4,
999999
};

0 commit comments

Comments
 (0)