Class SM9Engine.Mode

  • Enclosing class:
    SM9Engine

    public static final class SM9Engine.Mode
    extends java.lang.Object
    The GM/T 0044.4-2016 data-encapsulation method. (A constants class rather than an enum so the single source also compiles for the legacy pre-Java-5 distributions.)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SM9Engine.Mode SM4
      SM4/ECB/PKCS#7 block cipher encapsulation (method b).
      static SM9Engine.Mode STREAM
      KDF-based stream cipher (XOR) encapsulation (method a).
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STREAM

        public static final SM9Engine.Mode STREAM
        KDF-based stream cipher (XOR) encapsulation (method a).
      • SM4

        public static final SM9Engine.Mode SM4
        SM4/ECB/PKCS#7 block cipher encapsulation (method b).