tf_fuzz: remove duplicate crypto policy fields
Remove unused fields from policy_asset and key_asset that are duplicates
of information in the superclass, crypto_asset::policy.
Change-Id: I233b3ddedf87d0a2903e554121b91200fd1ec4ce
Signed-off-by: Nik Dewally <Nik.Dewally@arm.com>
diff --git a/tf_fuzz/tfz-cpp/assets/crypto_asset.cpp b/tf_fuzz/tfz-cpp/assets/crypto_asset.cpp
index e1efdb1..7c493af 100644
--- a/tf_fuzz/tfz-cpp/assets/crypto_asset.cpp
+++ b/tf_fuzz/tfz-cpp/assets/crypto_asset.cpp
@@ -7,7 +7,6 @@
#include <stdlib.h>
-#include "randomization.hpp"
#include "gibberish.hpp"
#include "crypto_asset.hpp"
@@ -39,10 +38,7 @@
policy_asset::policy_asset (void) // (default constructor)
{
- // Randomize key-policy usage and algorithm:
- policy_usage = rand_key_usage();
- policy_algorithm = rand_key_algorithm();
- // keys: Should automatically come up as empby.
+ return; // just to have something to pin a breakpoint onto
}
@@ -80,11 +76,6 @@
*end = '\0';
buffer[buf_len] = '\0';
handle_str = buffer;
- // Randomize key type:
- key_type = rand_key_type();
- // Randomize lifetime:
- lifetime_str = ((rand() % 2) == 1)?
- "PSA_KEY_LIFETIME_VOLATILE" : "PSA_KEY_LIFETIME_PERSISTENT";
}