rsremoved gladman and other hmac code which was commented out