Skip to content

Commit 5496d75

Browse files
committed
Ensure the SECP256R1 bytes always has the correct key size.
1 parent 23abd92 commit 5496d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/eclipse/biscuit/crypto/SECP256R1KeyPair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public byte[] sign(byte[] data) {
8787

8888
@Override
8989
public byte[] toBytes() {
90-
return BigIntegers.asUnsignedByteArray(privateKey.getD());
90+
return BigIntegers.asUnsignedByteArray(BUFFER_SIZE, privateKey.getD());
9191
}
9292

9393
@Override

0 commit comments

Comments
 (0)