Skip to content

Commit de4197e

Browse files
committed
Add some more OIDs from RFC 3279
1 parent 0e84c96 commit de4197e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cmd/der2ascii/oid_names.go

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ var oidNames = []struct {
2626
{[]byte{0x2b, 0x81, 0x4, 0x0, 0x22}, "secp384r1"},
2727
{[]byte{0x2b, 0x81, 0x4, 0x0, 0x23}, "secp521r1"},
2828
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x1}, "prime-field"},
29+
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2}, "characteristic-two-field"},
30+
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2, 0x3, 0x1}, "gnBasis"},
31+
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2, 0x3, 0x2}, "tpBasis"},
32+
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2, 0x3, 0x3}, "ppBasis"},
2933
{[]byte{0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x2, 0x2}, "md2"},
3034
{[]byte{0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x2, 0x4}, "md4"},
3135
{[]byte{0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x2, 0x5}, "md5"},

util/oid_names.txt

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ secp521r1: 1.3.132.0.35
99

1010
# Specified curve encodings
1111
prime-field: 1.2.840.10045.1.1
12+
characteristic-two-field: 1.2.840.10045.1.2
13+
gnBasis: 1.2.840.10045.1.2.3.1
14+
tpBasis: 1.2.840.10045.1.2.3.2
15+
ppBasis: 1.2.840.10045.1.2.3.3
1216

1317
# Hash algorithms
1418
md2: 1.2.840.113549.2.2

0 commit comments

Comments
 (0)