Class ZUC

All Implemented Interfaces:
Serializable, Decryptor, Encryptor

public class ZUC extends Crypto
祖冲之算法集(ZUC算法)实现,基于BouncyCastle实现。
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Constructor Details

    • ZUC

      public ZUC(org.miaixz.bus.core.lang.Algorithm algorithm, byte[] key, byte[] iv)
      构造
      Parameters:
      algorithm - ZUC算法枚举,包括128位和256位两种
      key - 密钥
      iv - 加盐,128位加盐是16bytes,256位是25bytes,null是随机加盐
  • Method Details

    • generateKey

      public static byte[] generateKey(org.miaixz.bus.core.lang.Algorithm algorithm)
      生成ZUC算法密钥
      Parameters:
      algorithm - ZUC算法
      Returns:
      密钥
      See Also: