Enum Class Mode

java.lang.Object
java.lang.Enum<Mode>
org.aoju.bus.crypto.Mode
All Implemented Interfaces:
Serializable, Comparable<Mode>, Constable

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Cipher模式的枚举封装

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

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

    Enum Constants
    Enum Constant
    Description
    密码分组连接模式(Cipher Block Chaining)
    密文反馈模式(Cipher Feedback)
    计数器模式(A simplification of OFB)
    Cipher Text Stealing
    电子密码本模式(Electronic CodeBook)
    无模式
    输出反馈模式(Output Feedback)
    Propagating Cipher Block
  • Method Summary

    Modifier and Type
    Method
    Description
    static Mode
    Returns the enum constant of this class with the specified name.
    static Mode[]
    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 Mode NONE
      无模式
    • CBC

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

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

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

      public static final Mode CTS
      Cipher Text Stealing
    • ECB

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

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

      public static final Mode PCBC
      Propagating Cipher Block
  • Method Details

    • values

      public static 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 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