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 9cd5f98 commit 185ed7fCopy full SHA for 185ed7f
pg/src/main/java/org/bouncycastle/bcpg/SignaturePacket.java
@@ -494,11 +494,10 @@ public byte[] getSignatureTrailer()
494
StreamUtil.write2OctetLength(sOut, data.length);
495
sOut.write(data);
496
497
- byte[] hData = sOut.toByteArray();
498
-
+ int hDataSize = sOut.size();
499
sOut.write((byte)this.getVersion());
500
sOut.write((byte)0xff);
501
- StreamUtil.write4OctetLength(sOut, hData.length);
+ StreamUtil.write4OctetLength(sOut, hDataSize);
502
}
503
catch (IOException e)
504
{
0 commit comments