BlockCipher engine = BcImplProvider.createBlockCipher(keyAlgorithm);
BufferedBlockCipher cipher = BcUtil.createSymmetricKeyWrapper(false, engine, key, new byte[engine.getBlockSize()]);
byte[] out = new byte[secKeyData.length];
int len = cipher.processBytes(secKeyData, 0, secKeyData.length, out, 0);
len += cipher.doFinal(out, len);
return out;
}