Skip to content

Commit d1fa863

Browse files
Modified values.OID
1 parent 37ca3a4 commit d1fa863

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

packet/pubkey/parse_pub_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var (
1717

1818
const (
1919
pubkeyPubResult19 = `
20-
ECC OID: nistp256
20+
ECC Curve OID: nistp256
2121
2a 86 48 ce 3d 03 01 07
2222
ECDSA EC point (04 || X || Y) (515 bits)
2323
04 a5 d5 bc 76 07 db b8 8f b2 21 19 11 b0 d0 5a 7e e9 34 df a3 8d 8e f9 b9 7e b6 d8 63 0a ee 92 ee 0d 74 c7 c0 48 f3 b8 d5 aa a8 73 bd e7 19 b5 da d8 f6 68 05 03 15 7d 9a 84 43 61 ca ee df d6 0e

packet/tags/tag06_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
54 c3 01 bf
2323
Public-key Algorithm: ECDSA public key algorithm (pub 19)
2424
13
25-
ECC OID: nistp256
25+
ECC Curve OID: nistp256
2626
2a 86 48 ce 3d 03 01 07
2727
ECDSA EC point (04 || X || Y) (515 bits)
2828
04 a5 d5 bc 76 07 db b8 8f b2 21 19 11 b0 d0 5a 7e e9 34 df a3 8d 8e f9 b9 7e b6 d8 63 0a ee 92 ee 0d 74 c7 c0 48 f3 b8 d5 aa a8 73 bd e7 19 b5 da d8 f6 68 05 03 15 7d 9a 84 43 61 ca ee df d6 0e

packet/values/ecc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewOID(r *reader.Reader) (OID, error) {
4343
//ToItem returns Item instance
4444
func (oid OID) ToItem(dumpFlag bool) *info.Item {
4545
return info.NewItem(
46-
info.Name("ECC OID"),
46+
info.Name("ECC Curve OID"),
4747
info.Value(oid.String()),
4848
info.DumpStr(DumpBytes([]byte(oid), dumpFlag).String()),
4949
)

packet/values/ecc_test.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ func TestEccNITSP256(t *testing.T) {
1818
t.Errorf("OID = \"%v\", want nil.", err.Error())
1919
}
2020
i := oid.ToItem(true)
21-
if i.Name != "ECC OID" {
22-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
21+
if i.Name != "ECC Curve OID" {
22+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
2323
}
2424
if i.Value != note {
2525
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -42,8 +42,8 @@ func TestEccNITSP384(t *testing.T) {
4242
t.Errorf("OID = \"%v\", want nil.", err.Error())
4343
}
4444
i := oid.ToItem(true)
45-
if i.Name != "ECC OID" {
46-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
45+
if i.Name != "ECC Curve OID" {
46+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
4747
}
4848
if i.Value != note {
4949
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -66,8 +66,8 @@ func TestEccNITSP521(t *testing.T) {
6666
t.Errorf("OID = \"%v\", want nil.", err.Error())
6767
}
6868
i := oid.ToItem(true)
69-
if i.Name != "ECC OID" {
70-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
69+
if i.Name != "ECC Curve OID" {
70+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
7171
}
7272
if i.Value != note {
7373
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -90,8 +90,8 @@ func TestEccSecp256k1(t *testing.T) {
9090
t.Errorf("OID = \"%v\", want nil.", err.Error())
9191
}
9292
i := oid.ToItem(true)
93-
if i.Name != "ECC OID" {
94-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
93+
if i.Name != "ECC Curve OID" {
94+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
9595
}
9696
if i.Value != note {
9797
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -114,8 +114,8 @@ func TestEccBrainpoolP256r1(t *testing.T) {
114114
t.Errorf("OID = \"%v\", want nil.", err.Error())
115115
}
116116
i := oid.ToItem(true)
117-
if i.Name != "ECC OID" {
118-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
117+
if i.Name != "ECC Curve OID" {
118+
t.Errorf("OID.Name = \"%v\", want \"ECC0 Curve OID\".", i.Name)
119119
}
120120
if i.Value != note {
121121
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -138,8 +138,8 @@ func TestEccBrainpoolP384r1(t *testing.T) {
138138
t.Errorf("OID = \"%v\", want nil.", err.Error())
139139
}
140140
i := oid.ToItem(true)
141-
if i.Name != "ECC OID" {
142-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
141+
if i.Name != "ECC Curve OID" {
142+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
143143
}
144144
if i.Value != note {
145145
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -162,8 +162,8 @@ func TestEccBrainpoolP512r1(t *testing.T) {
162162
t.Errorf("OID = \"%v\", want nil.", err.Error())
163163
}
164164
i := oid.ToItem(true)
165-
if i.Name != "ECC OID" {
166-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
165+
if i.Name != "ECC Curve OID" {
166+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
167167
}
168168
if i.Value != note {
169169
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -186,8 +186,8 @@ func TestEccEd25519(t *testing.T) {
186186
t.Errorf("OID = \"%v\", want nil.", err.Error())
187187
}
188188
i := oid.ToItem(true)
189-
if i.Name != "ECC OID" {
190-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
189+
if i.Name != "ECC Curve OID" {
190+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
191191
}
192192
if i.Value != note {
193193
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -210,8 +210,8 @@ func TestEccCurve25519(t *testing.T) {
210210
t.Errorf("OID = \"%v\", want nil.", err.Error())
211211
}
212212
i := oid.ToItem(true)
213-
if i.Name != "ECC OID" {
214-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
213+
if i.Name != "ECC Curve OID" {
214+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
215215
}
216216
if i.Value != note {
217217
t.Errorf("OID.Value = \"%v\", want \"%s\"", i.Value, note)
@@ -234,8 +234,8 @@ func TestEccUnknown(t *testing.T) {
234234
t.Errorf("OID = \"%v\", want nil.", err.Error())
235235
}
236236
i := oid.ToItem(true)
237-
if i.Name != "ECC OID" {
238-
t.Errorf("OID.Name = \"%v\", want \"ECC OID\".", i.Name)
237+
if i.Name != "ECC Curve OID" {
238+
t.Errorf("OID.Name = \"%v\", want \"ECC Curve OID\".", i.Name)
239239
}
240240
if i.Value != note {
241241
t.Errorf("OID.Note = \"%v\", want \"%s\"", i.Value, note)

0 commit comments

Comments
 (0)