From c55d804aed8b63eb62c74018a720c4804c43c681 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 7 Aug 2024 13:34:46 +0200 Subject: Allow for passing Random to wolfCrypt. --- .../java/cz/crcs/ectester/standalone/libs/WolfCryptLib.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'standalone/src') diff --git a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/WolfCryptLib.java b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/WolfCryptLib.java index c8d5ad5..390e45f 100644 --- a/standalone/src/main/java/cz/crcs/ectester/standalone/libs/WolfCryptLib.java +++ b/standalone/src/main/java/cz/crcs/ectester/standalone/libs/WolfCryptLib.java @@ -25,4 +25,16 @@ public class WolfCryptLib extends ProviderECLibrary { public Set getCurves() { return new HashSet<>(); } + + @Override + public boolean supportsDeterministicPRNG() { + return true; + } + + @Override + public boolean setupDeterministicPRNG(byte[] seed) { + // This is done by passing the SecureRandom into the individual KeyPairGenerator, KeyAgreement and Signature + // instances. Thus, this does nothing. + return true; + } } -- cgit v1.2.3-70-g09d2