modified ec_mac