Skip to content

Commit 4a723e3

Browse files
committed
Fix CMCEPrivateKeyParameters#reconstructPublicKey method
1 parent 5dd265f commit 4a723e3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core/src/main/java/org/bouncycastle/pqc/crypto/cmce/CMCEPrivateKeyParameters.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ public CMCEPrivateKeyParameters(CMCEParameters params, byte[] delta, byte[] C, b
3939
public byte[] reconstructPublicKey()
4040
{
4141
CMCEEngine engine = getParameters().getEngine();
42-
byte[] pk = new byte[engine.getPublicKeySize()];
43-
engine.generate_public_key_from_private_key(privateKey);
44-
return pk;
42+
return engine.generate_public_key_from_private_key(privateKey);
4543
}
4644

4745
public byte[] getEncoded()

docs/releasenotes.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ <h3>2.1.2 Defects Fixed</h3>
2626
<li>SNOVA and MAYO are now correctly added to the JCA provider module-info file.</li>
2727
<li>TLS: Avoid nonce reuse error in JCE AEAD workaround for pre-Java7.</li>
2828
<li>BCJSSE: Session binding map is now shared across all stages of the session lifecycle (SunJSSE compatibility).</li>
29+
<li>Fix CMCEPrivateKeyParameters#reconstructPublicKey method.</li>
2930
</ul>
3031
<h3>2.1.3 Additional Features and Functionality</h3>
3132
<ul>

0 commit comments

Comments
 (0)