Enum Class Algorithm.Mode

java.lang.Object
java.lang.Enum<Algorithm.Mode>
org.miaixz.bus.core.lang.Algorithm.Mode
All Implemented Interfaces:
Serializable, Comparable<Algorithm.Mode>, Constable
Enclosing class:
Algorithm

public static enum Algorithm.Mode extends Enum<Algorithm.Mode>
模式 加密算法模式,是用来描述加密算法(此处特指分组密码,不包括流密码)在加密时对明文分组的模式,它代表了不同的分组方式
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    密码分组连接模式(Ciphers Block Chaining)
    密文反馈模式(Ciphers Feedback)
    计数器模式(A simplification of OFB)
    Ciphers Text Stealing
    电子密码本模式(Electronic CodeBook)
    GCM 全称为 Galois/Counter AnsiStyle。G是指GMAC,C是指CTR。 它在 CTR 加密的基础上增加 GMAC 的特性,解决了 CTR 不能对加密消息进行完整性校验的问题。
    无模式
    输出反馈模式(Output Feedback)
    Propagating Ciphers Block
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NONE

      public static final Algorithm.Mode NONE
      无模式
    • CBC

      public static final Algorithm.Mode CBC
      密码分组连接模式(Ciphers Block Chaining)
    • CFB

      public static final Algorithm.Mode CFB
      密文反馈模式(Ciphers Feedback)
    • CTR

      public static final Algorithm.Mode CTR
      计数器模式(A simplification of OFB)
    • CTS

      public static final Algorithm.Mode CTS
      Ciphers Text Stealing
    • ECB

      public static final Algorithm.Mode ECB
      电子密码本模式(Electronic CodeBook)
    • OFB

      public static final Algorithm.Mode OFB
      输出反馈模式(Output Feedback)
    • PCBC

      public static final Algorithm.Mode PCBC
      Propagating Ciphers Block
    • GCM

      public static final Algorithm.Mode GCM
      GCM 全称为 Galois/Counter AnsiStyle。G是指GMAC,C是指CTR。 它在 CTR 加密的基础上增加 GMAC 的特性,解决了 CTR 不能对加密消息进行完整性校验的问题。
  • Method Details

    • values

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

      public static Algorithm.Mode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null