improve implementation, set maskedAES128