Package cn.gmkit.core

Enum SM2CipherMode

java.lang.Object
java.lang.Enum<SM2CipherMode>
cn.gmkit.core.SM2CipherMode
All Implemented Interfaces:
Serializable, Comparable<SM2CipherMode>, java.lang.constant.Constable

public enum SM2CipherMode extends Enum<SM2CipherMode>
SM2 原始密文片段排列模式。
  • Enum Constant Details

    • C1C3C2

      public static final SM2CipherMode C1C3C2
      C1C3C2排列模式,国密标准推荐模式
    • C1C2C3

      public static final SM2CipherMode C1C2C3
      C1C2C3排列模式
  • Method Details

    • values

      public static SM2CipherMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SM2CipherMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toBcMode

      public org.bouncycastle.crypto.engines.SM2Engine.Mode toBcMode()
      转换为 BouncyCastle 的 SM2Engine.Mode
      Returns:
      BC 对应模式