com.pax.dal.entity

Enum EPedMacMode

  • java.lang.Object
    • java.lang.Enum<EPedMacMode>
      • com.pax.dal.entity.EPedMacMode
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EPedMacMode>


    public enum EPedMacMode
    extends java.lang.Enum<EPedMacMode>
    MAC模式定义
    MAC Mode
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      MODE_00
      将BLOCK1用MAC密钥做DES/TDES加密,加密结果与BLOCK2进行逐位异或后再用TAK做DES/TDES加密,依次进行得到8字节的加密结果。
      According to ANSI X9.9 standard, do DES/TDES encryption for BLOCK1 by using MAC key.
      MODE_01
      将BLOCK1和BLOCK2进行逐位异或,异或结果与BLOCK3进行逐位异或,依次进行,最后得到8字节的异或结果,将该结果用TAK进行DES/TDES加密运算。
      In the Hypercom Fast Mode, do bitwise XOR for BLOCK1 and BLOCK2; Do bitwise XOR again by using previous XOR result with BLOCK3.
      MODE_02
      ANSIX9.19规范,将BLOCK1用TAK做DES加密(只取前8个字节的key),加密结果与BLOCK2进行逐位异或后再用TAK做DES加密,依次进行得到8字节的加密结果,直到最后一次采用DES/TDES加密。
      According to ANSIX9.19 standard, do DES encryption for BLOCK1 by using TAK (only take the first 8 bytes of key).
      MODE_03
      CMAC算法。KSN不自动加1。
      CMAC algorithm.
      MODE_05
      HMAC-SHA256算法。KSN不自动加1。 其它值保留扩展MAC算法。
      HMAC-SHA256 algorithm.
      MODE_06
      mac key的APACS70OWF MAC计算。
      APACS70OWF MAC calculation of mac key.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte getPedMacMode() 
      static EPedMacMode valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EPedMacMode[] 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

      • MODE_00

        public static final EPedMacMode MODE_00
        将BLOCK1用MAC密钥做DES/TDES加密,加密结果与BLOCK2进行逐位异或后再用TAK做DES/TDES加密,依次进行得到8字节的加密结果。
        According to ANSI X9.9 standard, do DES/TDES encryption for BLOCK1 by using MAC key. Doing DES/TDES encryption again by using TAK when and after bitwise XOR the previous encryption result with BLOCK2. Processing in turn to get the 8 bytes encryption result
      • MODE_01

        public static final EPedMacMode MODE_01
        将BLOCK1和BLOCK2进行逐位异或,异或结果与BLOCK3进行逐位异或,依次进行,最后得到8字节的异或结果,将该结果用TAK进行DES/TDES加密运算。
        In the Hypercom Fast Mode, do bitwise XOR for BLOCK1 and BLOCK2; Do bitwise XOR again by using previous XOR result with BLOCK3. Execute it in turn and finally get the 8 bytes XOR result. Using TAK to process DES/TDES encryption for the result.
      • MODE_02

        public static final EPedMacMode MODE_02
        ANSIX9.19规范,将BLOCK1用TAK做DES加密(只取前8个字节的key),加密结果与BLOCK2进行逐位异或后再用TAK做DES加密,依次进行得到8字节的加密结果,直到最后一次采用DES/TDES加密。
        According to ANSIX9.19 standard, do DES encryption for BLOCK1 by using TAK (only take the first 8 bytes of key). The encryption result wills bitwise XOR with BLOCK2, and then doing DES encryption by using TAK again. Do it in turn and get the 8 bytes encryption result. Using DES/TDES to encrypt in the last time
      • MODE_03

        public static final EPedMacMode MODE_03
        CMAC算法。KSN不自动加1。
        CMAC algorithm. KSN does not automatically increase by 1.
        Since:
        V3.25.00
      • MODE_05

        public static final EPedMacMode MODE_05
        HMAC-SHA256算法。KSN不自动加1。 其它值保留扩展MAC算法。
        HMAC-SHA256 algorithm. KSN does not automatically increase by 1. Other values retain the extended MAC algorithm.
        Since:
        V3.25.00
      • MODE_06

        public static final EPedMacMode MODE_06
        mac key的APACS70OWF MAC计算。
        APACS70OWF MAC calculation of mac key.
        Since:
        V3.34.00
    • Method Detail

      • values

        public static EPedMacMode[] 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 (EPedMacMode c : EPedMacMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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