Package org.bouncycastle.crypto.general
Class GOST28147
- java.lang.Object
-
- org.bouncycastle.crypto.general.GOST28147
-
public final class GOST28147 extends java.lang.ObjectSource class for implementations of GOST28147 based algorithms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGOST28147.AEADOperatorFactoryFactory for GOST28147 AEAD encryption/decryption operators.static classGOST28147.AuthParametersParameters for GOST28147 AEAD and MAC modes.static classGOST28147.KeyGeneratorGOST28147 key generator.static classGOST28147.MACOperatorFactoryFactory for producing GOST28147 MAC calculators.static classGOST28147.OperatorFactoryFactory for basic GOST28147 encryption/decryption operators.static classGOST28147.ParametersParameters for general GOST28147 block cipher modes.
-
Field Summary
Fields Modifier and Type Field Description static GeneralAlgorithmALGORITHMRaw GOST28147 algorithm, can be used for creating general purpose GOST28147 keys.static GOST28147.ParametersCBCGOST28147 in cipher block chaining (CBC) mode.static GOST28147.ParametersCBCwithCS1GOST28147 in cipher block chaining mode cipher text stealing type 1.static GOST28147.ParametersCBCwithCS2GOST28147 in cipher block chaining mode cipher text stealing type 2.static GOST28147.ParametersCBCwithCS3GOST28147 in cipher block chaining mode cipher text stealing type 3.static GOST28147.ParametersCBCwithISO10126_2GOST28147 in cipher block chaining mode with ISO10126-2 padding.static GOST28147.ParametersCBCwithISO7816_4GOST28147 in cipher block chaining mode with ISO7816-4 padding.static GOST28147.ParametersCBCwithPKCS7GOST28147 in cipher block chaining mode with PKCS#7/PKCS#5 padding.static GOST28147.ParametersCBCwithTBCGOST28147 in cipher block chaining mode with trailing bit complement (TBC) padding.static GOST28147.ParametersCBCwithX923GOST28147 in cipher block chaining mode with X9.23 padding.static GOST28147.ParametersCFB64GOST28147 in cipher feedback (CFB) mode, 64 bit block size.static GOST28147.ParametersCFB8GOST28147 in cipher feedback (CFB) mode, 8 bit block size.static GOST28147.AuthParametersCMACGOST28147 cipher-based MAC algorithm.static GOST28147.ParametersCTRGOST28147 in counter (CTR) mode.static GOST28147.AuthParametersEAXGOST28147 in EAX mode..static GOST28147.ParametersECBGOST28147 in electronic code book (ECB) mode.static GOST28147.ParametersECBwithISO10126_2GOST28147 in electronic code book mode with ISO10126-2 padding.static GOST28147.ParametersECBwithISO7816_4GOST28147 in electronic code book mode with ISO7816-4 padding.static GOST28147.ParametersECBwithPKCS7GOST28147 in electronic code book mode with PKCS#7/PKCS#5 padding.static GOST28147.ParametersECBwithTBCGOST28147 in electronic code book mode with trailing bit complement (TBC) padding.static GOST28147.ParametersECBwithX923GOST28147 in electronic code book mode with X9.23 padding.static GOST28147.ParametersGCFBStandard GOST28147 GOST-CFB modestatic GOST28147.ParametersGOFBStandard GOST28147 GOST-OFB modestatic GOST28147.AuthParametersMACStandard GOST28147 MAC algorithmstatic GOST28147.ParametersOFBGOST28147 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.StringgetSBoxName(ASN1ObjectIdentifier oid)static ASN1ObjectIdentifiergetSBoxOID(byte[] sBox)static ASN1ObjectIdentifiergetSBoxOID(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)
-
-