Package org.bouncycastle.crypto.general
Class GOST28147
- java.lang.Object
-
- org.bouncycastle.crypto.general.GOST28147
-
public final class GOST28147 extends java.lang.Object
Source class for implementations of GOST28147 based algorithms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GOST28147.AEADOperatorFactory
Factory for GOST28147 AEAD encryption/decryption operators.static class
GOST28147.AuthParameters
Parameters for GOST28147 AEAD and MAC modes.static class
GOST28147.KeyGenerator
GOST28147 key generator.static class
GOST28147.MACOperatorFactory
Factory for producing GOST28147 MAC calculators.static class
GOST28147.OperatorFactory
Factory for basic GOST28147 encryption/decryption operators.static class
GOST28147.Parameters
Parameters for general GOST28147 block cipher modes.
-
Field Summary
Fields Modifier and Type Field Description static GeneralAlgorithm
ALGORITHM
Raw GOST28147 algorithm, can be used for creating general purpose GOST28147 keys.static GOST28147.Parameters
CBC
GOST28147 in cipher block chaining (CBC) mode.static GOST28147.Parameters
CBCwithCS1
GOST28147 in cipher block chaining mode cipher text stealing type 1.static GOST28147.Parameters
CBCwithCS2
GOST28147 in cipher block chaining mode cipher text stealing type 2.static GOST28147.Parameters
CBCwithCS3
GOST28147 in cipher block chaining mode cipher text stealing type 3.static GOST28147.Parameters
CBCwithISO10126_2
GOST28147 in cipher block chaining mode with ISO10126-2 padding.static GOST28147.Parameters
CBCwithISO7816_4
GOST28147 in cipher block chaining mode with ISO7816-4 padding.static GOST28147.Parameters
CBCwithPKCS7
GOST28147 in cipher block chaining mode with PKCS#7/PKCS#5 padding.static GOST28147.Parameters
CBCwithTBC
GOST28147 in cipher block chaining mode with trailing bit complement (TBC) padding.static GOST28147.Parameters
CBCwithX923
GOST28147 in cipher block chaining mode with X9.23 padding.static GOST28147.Parameters
CFB64
GOST28147 in cipher feedback (CFB) mode, 64 bit block size.static GOST28147.Parameters
CFB8
GOST28147 in cipher feedback (CFB) mode, 8 bit block size.static GOST28147.AuthParameters
CMAC
GOST28147 cipher-based MAC algorithm.static GOST28147.Parameters
CTR
GOST28147 in counter (CTR) mode.static GOST28147.AuthParameters
EAX
GOST28147 in EAX mode..static GOST28147.Parameters
ECB
GOST28147 in electronic code book (ECB) mode.static GOST28147.Parameters
ECBwithISO10126_2
GOST28147 in electronic code book mode with ISO10126-2 padding.static GOST28147.Parameters
ECBwithISO7816_4
GOST28147 in electronic code book mode with ISO7816-4 padding.static GOST28147.Parameters
ECBwithPKCS7
GOST28147 in electronic code book mode with PKCS#7/PKCS#5 padding.static GOST28147.Parameters
ECBwithTBC
GOST28147 in electronic code book mode with trailing bit complement (TBC) padding.static GOST28147.Parameters
ECBwithX923
GOST28147 in electronic code book mode with X9.23 padding.static GOST28147.Parameters
GCFB
Standard GOST28147 GOST-CFB modestatic GOST28147.Parameters
GOFB
Standard GOST28147 GOST-OFB modestatic GOST28147.AuthParameters
MAC
Standard GOST28147 MAC algorithmstatic GOST28147.Parameters
OFB
GOST28147 in output feedback (OFB) mode.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
getSBox(java.lang.String sBoxName)
Return the S-Box associated with SBoxNamestatic byte[]
getSBox(ASN1ObjectIdentifier sBoxOID)
Return the S-Box associated with SBox OID.static java.lang.String
getSBoxName(ASN1ObjectIdentifier oid)
static ASN1ObjectIdentifier
getSBoxOID(byte[] sBox)
static ASN1ObjectIdentifier
getSBoxOID(java.lang.String name)
-
-
-
Field Detail
-
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 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
-
getSBoxName
public static java.lang.String getSBoxName(ASN1ObjectIdentifier oid)
-
getSBoxOID
public static ASN1ObjectIdentifier getSBoxOID(java.lang.String name)
-
getSBoxOID
public static ASN1ObjectIdentifier getSBoxOID(byte[] sBox)
-
-