Restructuring of sha2