We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b86bcd commit f90e150Copy full SHA for f90e150
core/src/main/java/org/bouncycastle/asn1/sec/ECPrivateKeyStructure.java
@@ -72,7 +72,6 @@ public ECPrivateKeyStructure(
72
if (publicKey != null)
73
{
74
v.add(new DERTaggedObject(true, 1, publicKey));
75
- v.add(new DERTaggedObject(true, 1, publicKey));
76
}
77
78
seq = new DERSequence(v);
@@ -108,7 +107,7 @@ private ASN1Primitive getObjectInTag(int tagNo)
108
107
ASN1TaggedObject tag = (ASN1TaggedObject)obj;
109
if (tag.getTagNo() == tagNo)
110
111
- return (ASN1Primitive)((ASN1Encodable)tag.getObject()).toASN1Primitive();
+ return (ASN1Primitive)((ASN1Encodable)tag.getExplicitBaseObject()).toASN1Primitive();
112
113
114
0 commit comments