In FIPS 140-2, integrity test is a crucial power up self-test required for modules at all levels. As per the FIPS 140-2 standard, software or firmware integrity test can be performed using an error detection code (EDC) or any approved…