void cryptoRunTests(){ testInit(); testDesEcb(); testDesCfb(); testDesOfb(); testDesCbc(); testAes128Ecb(); testAes128Cfb(); testAes128Ofb(); testAes128Cbc(); testAes192Ecb(); testAes192Cfb(); testAes192Ofb(); testAes192Cbc(); testAes256Ecb(); testAes256Cfb(); testAes256Ofb(); testAes256Cbc(); }
bool Crypto::selfTest() { return testSha256() && testAes256Cbc() && testAes256Ecb() && testTwofish() && testSalsa20(); }