Class GOST28147

java.lang.Object
org.bouncycastle.crypto.general.GOST28147

public final class GOST28147 extends Object
Source class for implementations of GOST28147 based algorithms.
  • Field Details

    • ALGORITHM

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

      public static final GOST28147.Parameters ECB
      GOST28147 in electronic code book (ECB) mode.
    • 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.
    • CBC

      public static final GOST28147.Parameters CBC
      GOST28147 in cipher block chaining (CBC) mode.
    • 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.
    • OFB

      public static final GOST28147.Parameters OFB
      GOST28147 in output feedback (OFB) mode.
    • CTR

      public static final GOST28147.Parameters CTR
      GOST28147 in counter (CTR) mode.
    • EAX

      public static final GOST28147.AuthParameters EAX
      GOST28147 in EAX mode..
    • CMAC

      public static final GOST28147.AuthParameters CMAC
      GOST28147 cipher-based MAC algorithm.
    • GCFB

      public static final GOST28147.Parameters GCFB
      Standard GOST28147 GOST-CFB mode
    • GOFB

      public static final GOST28147.Parameters GOFB
      Standard GOST28147 GOST-OFB mode
    • MAC

      public static final GOST28147.AuthParameters MAC
      Standard GOST28147 MAC algorithm
  • Method Details

    • getSBox

      public static byte[] getSBox(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
    • getSBoxName

      public static String getSBoxName(ASN1ObjectIdentifier oid)
    • getSBoxOID

      public static ASN1ObjectIdentifier getSBoxOID(String name)
    • getSBoxOID

      public static ASN1ObjectIdentifier getSBoxOID(byte[] sBox)