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