[sw] remove entropy_src work arounds for aes
Signed-off-by: Timothy Chen <timothytim@google.com>
diff --git a/sw/device/tests/aes_test.c b/sw/device/tests/aes_test.c
index 93a04df..6c88beb 100644
--- a/sw/device/tests/aes_test.c
+++ b/sw/device/tests/aes_test.c
@@ -90,14 +90,6 @@
kCipherTextGold[i], buffer[i]);
}
- // Disable and re-enable EDN0 to get some more entropy out of it. This is
- // dirty and needs to be reworked. We need to setup CSRNG/EDN to continously
- // provide entropy.
- mmio_region_write32(mmio_region_from_addr(TOP_EARLGREY_EDN0_BASE_ADDR),
- EDN_CTRL_REG_OFFSET, 0x0);
- mmio_region_write32(mmio_region_from_addr(TOP_EARLGREY_EDN0_BASE_ADDR),
- EDN_CTRL_REG_OFFSET, 0x1);
-
// Decode
aes_cfg.operation = kAesDec;
aes_init(aes_cfg);
diff --git a/sw/device/tests/dif/dif_aes_smoketest.c b/sw/device/tests/dif/dif_aes_smoketest.c
index 0d23423..304a842 100644
--- a/sw/device/tests/dif/dif_aes_smoketest.c
+++ b/sw/device/tests/dif/dif_aes_smoketest.c
@@ -132,14 +132,6 @@
cipher_text_gold_words[i], out_data_cipher.data[i]);
}
- // Disable and re-enable EDN0 to get some more entropy out of it. This is
- // dirty and needs to be reworked. We need to setup CSRNG/EDN to continously
- // provide entropy.
- mmio_region_write32(mmio_region_from_addr(TOP_EARLGREY_EDN0_BASE_ADDR),
- EDN_CTRL_REG_OFFSET, 0x0);
- mmio_region_write32(mmio_region_from_addr(TOP_EARLGREY_EDN0_BASE_ADDR),
- EDN_CTRL_REG_OFFSET, 0x1);
-
// Setup ECB decryption transaction.
transaction.mode = kDifAesModeDecrypt;
CHECK(dif_aes_start_ecb(&aes, &transaction, key) == kDifAesStartOk);