added wrapper function hasWithSHA in CryptoEngine and implemented in GroupThread