Skip to content

Commit c55d804

Browse files
committed
Allow for passing Random to wolfCrypt.
1 parent 6e399ce commit c55d804

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

standalone/src/main/java/cz/crcs/ectester/standalone/libs/WolfCryptLib.java

+12
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,16 @@ public boolean initialize() {
2525
public Set<String> getCurves() {
2626
return new HashSet<>();
2727
}
28+
29+
@Override
30+
public boolean supportsDeterministicPRNG() {
31+
return true;
32+
}
33+
34+
@Override
35+
public boolean setupDeterministicPRNG(byte[] seed) {
36+
// This is done by passing the SecureRandom into the individual KeyPairGenerator, KeyAgreement and Signature
37+
// instances. Thus, this does nothing.
38+
return true;
39+
}
2840
}

0 commit comments

Comments
 (0)