Skip to content

Commit

Permalink
Add some more OIDs from RFC 3279
Browse files Browse the repository at this point in the history
  • Loading branch information
davidben committed Sep 18, 2024
1 parent 0e84c96 commit de4197e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/der2ascii/oid_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ var oidNames = []struct {
{[]byte{0x2b, 0x81, 0x4, 0x0, 0x22}, "secp384r1"},
{[]byte{0x2b, 0x81, 0x4, 0x0, 0x23}, "secp521r1"},
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x1}, "prime-field"},
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2}, "characteristic-two-field"},
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2, 0x3, 0x1}, "gnBasis"},
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2, 0x3, 0x2}, "tpBasis"},
{[]byte{0x2a, 0x86, 0x48, 0xce, 0x3d, 0x1, 0x2, 0x3, 0x3}, "ppBasis"},
{[]byte{0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x2, 0x2}, "md2"},
{[]byte{0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x2, 0x4}, "md4"},
{[]byte{0x2a, 0x86, 0x48, 0x86, 0xf7, 0xd, 0x2, 0x5}, "md5"},
Expand Down
4 changes: 4 additions & 0 deletions util/oid_names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ secp521r1: 1.3.132.0.35

# Specified curve encodings
prime-field: 1.2.840.10045.1.1
characteristic-two-field: 1.2.840.10045.1.2
gnBasis: 1.2.840.10045.1.2.3.1
tpBasis: 1.2.840.10045.1.2.3.2
ppBasis: 1.2.840.10045.1.2.3.3

# Hash algorithms
md2: 1.2.840.113549.2.2
Expand Down

0 comments on commit de4197e

Please sign in to comment.