Skip to content

Commit 3ef87dd

Browse files
authored
Merge pull request #134 from saoirse-a/secp256r1-to-bytes-key-size
Ensure the SECP256R1 bytes always has the correct key size.
2 parents 23abd92 + 5496d75 commit 3ef87dd

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)