Skip to content

Commit

Permalink
Add support for LEB128 in cert hashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Dec 28, 2024
1 parent 9e07d9e commit 6cdb045
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions certification/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func HashAny(v any) ([32]byte, error) {
return [32]byte{}, err
}
return sha256.Sum256(e), nil
case leb128.LEB128:
return sha256.Sum256(v), nil
case map[any]any: // cbor maps are not guaranteed to have string keys
kv := make([]KeyValuePair, len(v))
i := 0
Expand Down

0 comments on commit 6cdb045

Please sign in to comment.