From 70e32df9cac016756dd6e2fca937ebc8418a9d35 Mon Sep 17 00:00:00 2001 From: Pirmin Vogel Date: Tue, 12 Nov 2024 17:46:49 +0100 Subject: [PATCH] [aes/dv] Test plan updates for AES GCM Signed-off-by: Pirmin Vogel --- hw/ip/aes/data/aes_testplan.hjson | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/hw/ip/aes/data/aes_testplan.hjson b/hw/ip/aes/data/aes_testplan.hjson index bea92972e185d..19c7ebe20f7e6 100644 --- a/hw/ip/aes/data/aes_testplan.hjson +++ b/hw/ip/aes/data/aes_testplan.hjson @@ -133,6 +133,18 @@ stage: V2 tests: ["aes_stress_all"] } + { + name: gcm_save_and_restore + desc: ''' + Verify that saving and restoring contexts in GCM works correctly. + When triggered, two different scenarios are possible: + - Save and restore the same context + - Save and restore with a different message scheduled in between + This feature may be randomly exercised during tests, alternatively a dedicated but randomized test sequence may be used. + ''' + stage: V2 + tests: [] + } { name: reseeding desc: ''' @@ -181,6 +193,18 @@ covergroups: [ All valid combinations of these will be crossed. ''' } + { + name: ctrl_gcm_reg_cg + desc: ''' + Covers that all valid settings have been tested. + Further more it covers that also illegal values have been tested. + Individual control settings that are covered include: + - phase (all phases including illegal values) + - restore after init/aad/text + - save after aad/text + - num_valid_bytes (all valid numbers from 1 to 16 for the last AAD and last TEXT block, all invalid values) + ''' + } { name: ctrl_aux_cg desc: '''