Single core hardware module to implement encryption in TECB mode