Modified galois field masks to avoir overflow error.