@@ -13,9 +13,13 @@ import (
13
13
type OID []byte
14
14
15
15
var oidList = map [string ][]byte {
16
- "NIST curve P-256" : {0x2a , 0x86 , 0x48 , 0xce , 0x3d , 0x03 , 0x01 , 0x07 },
17
- "NIST curve P-384" : {0x2b , 0x81 , 0x04 , 0x00 , 0x22 },
18
- "NIST curve P-521" : {0x2b , 0x81 , 0x04 , 0x00 , 0x23 },
16
+ "NIST P-256" : {0x2a , 0x86 , 0x48 , 0xce , 0x3d , 0x03 , 0x01 , 0x07 },
17
+ "NIST P-384" : {0x2b , 0x81 , 0x04 , 0x00 , 0x22 },
18
+ "NIST P-521" : {0x2b , 0x81 , 0x04 , 0x00 , 0x23 },
19
+ "brainpoolP256r1" : {0x2B , 0x24 , 0x03 , 0x03 , 0x02 , 0x08 , 0x01 , 0x01 , 0x07 },
20
+ "brainpoolP512r1" : {0x2B , 0x24 , 0x03 , 0x03 , 0x02 , 0x08 , 0x01 , 0x01 , 0x0D },
21
+ "Ed25519" : {0x2B , 0x06 , 0x01 , 0x04 , 0x01 , 0xDA , 0x47 , 0x0F , 0x01 },
22
+ "Curve25519" : {0x2B , 0x06 , 0x01 , 0x04 , 0x01 , 0x97 , 0x55 , 0x01 , 0x05 , 0x01 },
19
23
}
20
24
21
25
//NewOID returns OID instance
@@ -81,7 +85,7 @@ func (ep ECParm) ToItem(name string, dumpFlag bool) *info.Item {
81
85
)
82
86
}
83
87
84
- /* Copyright 2016 Spiegel
88
+ /* Copyright 2016,2017 Spiegel
85
89
*
86
90
* Licensed under the Apache License, Version 2.0 (the "License");
87
91
* you may not use this file except in compliance with the License.
0 commit comments