Class GOST28147


  • public final class GOST28147
    extends java.lang.Object
    Source class for implementations of GOST28147 based algorithms.
    • Field Detail

      • ALGORITHM

        public static final GeneralAlgorithm ALGORITHM
        Raw GOST28147 algorithm, can be used for creating general purpose GOST28147 keys.
      • ECBwithPKCS7

        public static final GOST28147.Parameters ECBwithPKCS7
        GOST28147 in electronic code book mode with PKCS#7/PKCS#5 padding.
      • ECBwithISO10126_2

        public static final GOST28147.Parameters ECBwithISO10126_2
        GOST28147 in electronic code book mode with ISO10126-2 padding.
      • ECBwithX923

        public static final GOST28147.Parameters ECBwithX923
        GOST28147 in electronic code book mode with X9.23 padding.
      • ECBwithISO7816_4

        public static final GOST28147.Parameters ECBwithISO7816_4
        GOST28147 in electronic code book mode with ISO7816-4 padding.
      • ECBwithTBC

        public static final GOST28147.Parameters ECBwithTBC
        GOST28147 in electronic code book mode with trailing bit complement (TBC) padding.
      • CBCwithPKCS7

        public static final GOST28147.Parameters CBCwithPKCS7
        GOST28147 in cipher block chaining mode with PKCS#7/PKCS#5 padding.
      • CBCwithISO10126_2

        public static final GOST28147.Parameters CBCwithISO10126_2
        GOST28147 in cipher block chaining mode with ISO10126-2 padding.
      • CBCwithX923

        public static final GOST28147.Parameters CBCwithX923
        GOST28147 in cipher block chaining mode with X9.23 padding.
      • CBCwithISO7816_4

        public static final GOST28147.Parameters CBCwithISO7816_4
        GOST28147 in cipher block chaining mode with ISO7816-4 padding.
      • CBCwithTBC

        public static final GOST28147.Parameters CBCwithTBC
        GOST28147 in cipher block chaining mode with trailing bit complement (TBC) padding.
      • CBCwithCS1

        public static final GOST28147.Parameters CBCwithCS1
        GOST28147 in cipher block chaining mode cipher text stealing type 1.
      • CBCwithCS2

        public static final GOST28147.Parameters CBCwithCS2
        GOST28147 in cipher block chaining mode cipher text stealing type 2.
      • CBCwithCS3

        public static final GOST28147.Parameters CBCwithCS3
        GOST28147 in cipher block chaining mode cipher text stealing type 3.
      • CFB8

        public static final GOST28147.Parameters CFB8
        GOST28147 in cipher feedback (CFB) mode, 8 bit block size.
      • CFB64

        public static final GOST28147.Parameters CFB64
        GOST28147 in cipher feedback (CFB) mode, 64 bit block size.
    • Method Detail

      • getSBox

        public static byte[] getSBox​(java.lang.String sBoxName)
        Return the S-Box associated with SBoxName
        Parameters:
        sBoxName - name of the S-Box
        Returns:
        byte array representing the S-Box
      • getSBox

        public static byte[] getSBox​(ASN1ObjectIdentifier sBoxOID)
        Return the S-Box associated with SBox OID.
        Parameters:
        sBoxOID - an object identifier associated with an S-Box.
        Returns:
        byte array representing the S-Box