aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
Diffstat (limited to 'checks')
-rw-r--r--checks/dolook2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/checks/dolook2.cpp b/checks/dolook2.cpp
index 708d5d2ef..13b14a114 100644
--- a/checks/dolook2.cpp
+++ b/checks/dolook2.cpp
@@ -121,13 +121,13 @@ Filter* lookup_rng(const std::string& algname,
#if defined(BOTAN_HAS_X931_RNG)
if(algname == "X9.31-RNG(TripleDES)")
- prng = new ANSI_X931_RNG("TripleDES", new Fixed_Output_RNG(decode_hex(key)));
+ prng = new ANSI_X931_RNG(get_block_cipher("TripleDES"), new Fixed_Output_RNG(decode_hex(key)));
else if(algname == "X9.31-RNG(AES-128)")
- prng = new ANSI_X931_RNG("AES-128", new Fixed_Output_RNG(decode_hex(key)));
+ prng = new ANSI_X931_RNG(get_block_cipher("AES-128"), new Fixed_Output_RNG(decode_hex(key)));
else if(algname == "X9.31-RNG(AES-192)")
- prng = new ANSI_X931_RNG("AES-192", new Fixed_Output_RNG(decode_hex(key)));
+ prng = new ANSI_X931_RNG(get_block_cipher("AES-192"), new Fixed_Output_RNG(decode_hex(key)));
else if(algname == "X9.31-RNG(AES-256)")
- prng = new ANSI_X931_RNG("AES-256", new Fixed_Output_RNG(decode_hex(key)));
+ prng = new ANSI_X931_RNG(get_block_cipher("AES-256"), new Fixed_Output_RNG(decode_hex(key)));
#endif
#if defined(BOTAN_HAS_X931_RNG) and defined(BOTAN_HAS_RANDPOOL)
@@ -143,7 +143,7 @@ Filter* lookup_rng(const std::string& algname,
if(algname == "Randpool")
prng = randpool;
else
- prng = new ANSI_X931_RNG("AES-256", randpool);
+ prng = new ANSI_X931_RNG(get_block_cipher("AES-256"), randpool);
}
#endif