return doMac("SM4-CMAC", keyObj, data); } public static byte[] doGMac(byte[] key, byte[] iv, int tagLength, byte[] data) { org.bouncycastle.crypto.Mac mac = new GMac(new GCMBlockCipher(new SM4Engine()), tagLength * 8); return doMac(mac, key, iv, data); } /** * 默认...