com.pax.dal.entity

Enum EAesCheckMode

  • java.lang.Object
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      KCV_ENCRYPT_0
      对16个字节的0x00进行AES ECB模式加密运算,得到的密文的前4个字节即为KCV值。
      Perform AES ECB mode encryption on 16 bytes 0x00, and use first 4 bytes as KCV.
      KCV_ENCRYPT_FIX_DATA
      首先对密钥明文进行奇校验,再对16字节长度 ―\x12\x34\x56\x78\x90\x12\x34\x56\x12\x34\x56\x78\x90\x12\x34\x56‖进行AES ECB模式的加密运算,得到的密文的前4个字节即为KCV值。
      Perform parity check first, then perform AES ECB mode encryption on 16 bytes―\x12\x34\x56\x78\x90\x12\x34\x56\x12\x34\x56\x78\x90\x12\x34\x56‖, and use first 4 bytes as KCV.
      KCV_MAC_INPUT_DATA
      checkMode=KCV_MAC_INPUT_DATA -传入一串数据KcvData,使用源密钥对[aucDstKeyValue(密文)+ KcvData]进行指定模式的MAC运算,得到的8个字节的MAC值即为KCV值。
      Send in data KcvData, use source key to perform specified mode of MAC on [aucDesKeyValue(ciphertext) +KcvData], and use the 8 bytes result as KCV.
      KCV_NONE
      无校验
      No Check
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte getCheckMode() 
      static EAesCheckMode valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EAesCheckMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • KCV_ENCRYPT_0

        public static final EAesCheckMode KCV_ENCRYPT_0
         
        对16个字节的0x00进行AES ECB模式加密运算,得到的密文的前4个字节即为KCV值。
        Perform AES ECB mode encryption on 16 bytes 0x00, and use first 4 bytes as KCV.
      • KCV_ENCRYPT_FIX_DATA

        public static final EAesCheckMode KCV_ENCRYPT_FIX_DATA
         
        首先对密钥明文进行奇校验,再对16字节长度 ―\x12\x34\x56\x78\x90\x12\x34\x56\x12\x34\x56\x78\x90\x12\x34\x56‖进行AES ECB模式的加密运算,得到的密文的前4个字节即为KCV值。
        Perform parity check first, then perform AES ECB mode encryption on 16 bytes―\x12\x34\x56\x78\x90\x12\x34\x56\x12\x34\x56\x78\x90\x12\x34\x56‖, and use first 4 bytes as KCV.
      • KCV_MAC_INPUT_DATA

        public static final EAesCheckMode KCV_MAC_INPUT_DATA
         
        checkMode=KCV_MAC_INPUT_DATA -传入一串数据KcvData,使用源密钥对[aucDstKeyValue(密文)+ KcvData]进行指定模式的MAC运算,得到的8个字节的MAC值即为KCV值。
        Send in data KcvData, use source key to perform specified mode of MAC on [aucDesKeyValue(ciphertext) +KcvData], and use the 8 bytes result as KCV.
    • Method Detail

      • values

        public static EAesCheckMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EAesCheckMode c : EAesCheckMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EAesCheckMode valueOf(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null