Skip to content

Commit db4f46a

Browse files
fixed allow indefLength across cbor.go files
1 parent ef2f84b commit db4f46a

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

coev/cbor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ func coevTags() cbor.TagSet {
3939
func initCBOREncMode() (en cbor.EncMode, err error) {
4040
encOpt := cbor.EncOptions{
4141
Sort: cbor.SortCoreDeterministic,
42-
IndefLength: cbor.IndefLengthForbidden,
42+
IndefLength: cbor.IndefLengthAllowed,
4343
TimeTag: cbor.EncTagRequired,
4444
}
4545
return encOpt.EncModeWithTags(coevTags())
4646
}
4747

4848
func initCBORDecMode() (dm cbor.DecMode, err error) {
4949
decOpt := cbor.DecOptions{
50-
IndefLength: cbor.IndefLengthForbidden,
50+
IndefLength: cbor.IndefLengthAllowed,
5151
}
5252
return decOpt.DecModeWithTags(coevTags())
5353
}

comid/cbor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ func comidTags() cbor.TagSet {
5959
func initCBOREncMode() (en cbor.EncMode, err error) {
6060
encOpt := cbor.EncOptions{
6161
Sort: cbor.SortCoreDeterministic,
62-
IndefLength: cbor.IndefLengthForbidden,
62+
IndefLength: cbor.IndefLengthAllowed,
6363
TimeTag: cbor.EncTagRequired,
6464
}
6565
return encOpt.EncModeWithTags(comidTags())
6666
}
6767

6868
func initCBORDecMode() (dm cbor.DecMode, err error) {
6969
decOpt := cbor.DecOptions{
70-
IndefLength: cbor.IndefLengthForbidden,
70+
IndefLength: cbor.IndefLengthAllowed,
7171
}
7272
return decOpt.DecModeWithTags(comidTags())
7373
}

comid/tdx/cbor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ func tdxTags() cbor.TagSet {
4141
func initCBOREncMode() (en cbor.EncMode, err error) {
4242
encOpt := cbor.EncOptions{
4343
Sort: cbor.SortCoreDeterministic,
44-
IndefLength: cbor.IndefLengthForbidden,
44+
IndefLength: cbor.IndefLengthAllowed,
4545
TimeTag: cbor.EncTagRequired,
4646
}
4747
return encOpt.EncModeWithTags(tdxTags())
4848
}
4949

5050
func initCBORDecMode() (dm cbor.DecMode, err error) {
5151
decOpt := cbor.DecOptions{
52-
IndefLength: cbor.IndefLengthForbidden,
52+
IndefLength: cbor.IndefLengthAllowed,
5353
}
5454
return decOpt.DecModeWithTags(tdxTags())
5555
}

corim/cbor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ func corimTags() cbor.TagSet {
4545

4646
func initCBOREncMode() (en cbor.EncMode, err error) {
4747
encOpt := cbor.EncOptions{
48-
IndefLength: cbor.IndefLengthForbidden,
48+
IndefLength: cbor.IndefLengthAllowed,
4949
TimeTag: cbor.EncTagRequired,
5050
}
5151
return encOpt.EncModeWithTags(corimTags())
5252
}
5353

5454
func initCBORDecMode() (dm cbor.DecMode, err error) {
5555
decOpt := cbor.DecOptions{
56-
IndefLength: cbor.IndefLengthForbidden,
56+
IndefLength: cbor.IndefLengthAllowed,
5757
TimeTag: cbor.DecTagRequired,
5858
}
5959
return decOpt.DecModeWithTags(corimTags())

cots/cbor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ func cotsTags() cbor.TagSet {
4242

4343
func initCBOREncMode() (en cbor.EncMode, err error) {
4444
encOpt := cbor.EncOptions{
45-
IndefLength: cbor.IndefLengthForbidden,
45+
IndefLength: cbor.IndefLengthAllowed,
4646
TimeTag: cbor.EncTagRequired,
4747
}
4848
return encOpt.EncModeWithTags(cotsTags())
4949
}
5050

5151
func initCBORDecMode() (dm cbor.DecMode, err error) {
5252
decOpt := cbor.DecOptions{
53-
IndefLength: cbor.IndefLengthForbidden,
53+
IndefLength: cbor.IndefLengthAllowed,
5454
TimeTag: cbor.DecTagRequired,
5555
}
5656
return decOpt.DecModeWithTags(cotsTags())

extensions/cbor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ var (
1515
func initCBOREncMode() (en cbor.EncMode, err error) {
1616
encOpt := cbor.EncOptions{
1717
Sort: cbor.SortCoreDeterministic,
18-
IndefLength: cbor.IndefLengthForbidden,
18+
IndefLength: cbor.IndefLengthAllowed,
1919
TimeTag: cbor.EncTagRequired,
2020
}
2121
return encOpt.EncMode()
2222
}
2323

2424
func initCBORDecMode() (dm cbor.DecMode, err error) {
2525
decOpt := cbor.DecOptions{
26-
IndefLength: cbor.IndefLengthForbidden,
26+
IndefLength: cbor.IndefLengthAllowed,
2727
}
2828
return decOpt.DecMode()
2929
}

0 commit comments

Comments
 (0)