File: ber_64bit_test.go

package info (click to toggle)
golang-github-geoffgarside-ber 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 180 kB
  • sloc: makefile: 2
file content (21 lines) | stat: -rw-r--r-- 557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// +build amd64

package ber

import "encoding/asn1"

func init() {
	objectIdentifierTestData = append(objectIdentifierTestData, objectIdentifierTest{
		[]byte{
			0x2b, 0x06, 0x01, 0x04, 0x01, 0x09, 0x0a, 0x81,
			0x0a, 0x01, 0x04, 0x01, 0x02, 0x01, 0x8c, 0x80,
			0x80, 0x80, 0x01},
		true,
		[]int{1, 3, 6, 1, 4, 1, 9, 10, 138, 1, 4, 1, 2, 1, 3221225473},
	})

	marshalTests = append(marshalTests, marshalTest{
		asn1.ObjectIdentifier([]int{1, 3, 6, 1, 4, 1, 9, 10, 138, 1, 4, 1, 2, 1, 3221225473}),
		"06132b06010401090a810a01040102018c80808001",
	})
}