Skip to content

Commit b53457d

Browse files
committed
removed extra encoding of public key
1 parent 20e323f commit b53457d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/bouncycastle/pqc/crypto/util/PrivateKeyInfoFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ else if (privateKey instanceof SLHDSAPrivateKeyParameters)
152152

153153
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(Utils.slhdsaOidLookup(params.getParameters()));
154154

155-
return new PrivateKeyInfo(algorithmIdentifier, params.getEncoded(), attributes, params.getPublicKey());
155+
return new PrivateKeyInfo(algorithmIdentifier, params.getEncoded(), attributes);
156156
}
157157
else if (privateKey instanceof PicnicPrivateKeyParameters)
158158
{

0 commit comments

Comments
 (0)