((IMac) writeMac).init(attr);
attr.put(IMac.MAC_KEY_MATERIAL, keys[1]);
((IMac) readMac).init(attr);
if (suite.getCipher() == "RC4")
{
writeCipher = new ARCFour();
readCipher = new ARCFour();
attr.clear();
attr.put(ARCFour.ARCFOUR_KEY_MATERIAL, keys[2]);
((ARCFour) writeCipher).init(attr);
attr.put(ARCFour.ARCFOUR_KEY_MATERIAL, keys[3]);
((ARCFour) readCipher).init(attr);