Top Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class CipherUtils

extends Object
Class Inheritance
Imports
java.security.SecureRandom, org.bouncycastle.crypto.AuthenticationParameters, .AuthenticationParametersWithIV, .CryptoServicesRegistrar, .Parameters, .ParametersWithIV, org.bouncycastle.crypto.fips.FipsDRBG, org.bouncycastle.crypto.internal.BlockCipher, .BufferedBlockCipher, .CipherParameters, .EngineProvider, .Mac, .ValidatedSymmetricKey, .Wrapper, org.bouncycastle.crypto.internal.macs.AEADCipherMac, .CBCBlockCipherMac, .CFBBlockCipherMac, .CMac, .GMac, org.bouncycastle.crypto.internal.modes.AEADBlockCipher, .CBCBlockCipher, .CCMBlockCipher, .CFBBlockCipher, .EAXBlockCipher, .GCFBBlockCipher, .GCMBlockCipher, .GOFBBlockCipher, .NISTCTSBlockCipher, .OCBBlockCipher, .OFBBlockCipher, .OpenPGPCFBBlockCipher, .SICBlockCipher, org.bouncycastle.crypto.internal.paddings.ISO10126d2Padding, .ISO7816d4Padding, .PKCS7Padding, .PaddedBufferedBlockCipher, .TBCPadding, .X923Padding, org.bouncycastle.crypto.internal.params.KeyParameter, .KeyParameterImpl, .ParametersWithRandom, org.bouncycastle.crypto.internal.wrappers.SP80038FWrapEngine, .SP80038FWrapWithPaddingEngine, org.bouncycastle.util.Pack, .Strings

Field Summary

Modifier and TypeField and Description
private static SecureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static AEADBlockCipher
pack-priv static BufferedBlockCipher
pack-priv static AEADBlockCipher
pack-priv static AEADBlockCipher
createStandardAEADCipher(boolean forEncryption, KeyParameter keyParameter, EngineProvider<BlockCipher> engineProvider, final AuthenticationParametersWithIV<T extends AuthenticationParametersWithIV> parameters)

pack-priv static BufferedBlockCipher
createStandardCipher(boolean forEncryption, ValidatedSymmetricKey key, EngineProvider<BlockCipher> engineProvider, ParametersWithIV<T extends Parameters> parameters, SecureRandom random)

pack-priv static BufferedBlockCipher
createStandardCipher(boolean forEncryption, KeyParameter keyParameter, EngineProvider<BlockCipher> engineProvider, ParametersWithIV<T extends Parameters> parameters, SecureRandom random)

pack-priv static Mac
pack-priv static Mac
pack-priv static Wrapper
createStandardWrapper(boolean forWrapping, ValidatedSymmetricKey key, EngineProvider<BlockCipher> provider, ParametersWithIV<T extends Parameters> parameters, SecureRandom random)

pack-priv static Wrapper
createStandardWrapper(boolean forWrapping, ValidatedSymmetricKey key, EngineProvider<BlockCipher> provider, ParametersWithIV<T extends Parameters> parameters, boolean useInverse, SecureRandom random)

pack-priv static Wrapper
createStandardWrapper(boolean forWrapping, KeyParameter keyParameter, EngineProvider<BlockCipher> provider, ParametersWithIV<T extends Parameters> parameters, boolean useInverse, SecureRandom random)

pack-priv static synchronized SecureRandom
private static Mac
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultRandomPadderback to summary
private static SecureRandom defaultRandomPadder

Constructor Detail

CipherUtilsback to summary
pack-priv CipherUtils()

Method Detail

createAEADCipherback to summary
pack-priv static AEADBlockCipher createAEADCipher(GeneralAlgorithm algorithm, EngineProvider<BlockCipher> provider)
createBlockCipherback to summary
pack-priv static BufferedBlockCipher createBlockCipher(EngineProvider<BlockCipher> provider, Parameters parameter)
createStandardAEADCipherback to summary
pack-priv static AEADBlockCipher createStandardAEADCipher(boolean forEncryption, ValidatedSymmetricKey key, EngineProvider<BlockCipher> engineProvider, final AuthenticationParametersWithIV<T extends AuthenticationParametersWithIV> parameters)
createStandardAEADCipherback to summary
pack-priv static AEADBlockCipher createStandardAEADCipher(boolean forEncryption, KeyParameter keyParameter, EngineProvider<BlockCipher> engineProvider, final AuthenticationParametersWithIV<T extends AuthenticationParametersWithIV> parameters)
createStandardCipherback to summary
pack-priv static BufferedBlockCipher createStandardCipher(boolean forEncryption, ValidatedSymmetricKey key, EngineProvider<BlockCipher> engineProvider, ParametersWithIV<T extends Parameters> parameters, SecureRandom random)
createStandardCipherback to summary
pack-priv static BufferedBlockCipher createStandardCipher(boolean forEncryption, KeyParameter keyParameter, EngineProvider<BlockCipher> engineProvider, ParametersWithIV<T extends Parameters> parameters, SecureRandom random)
createStandardMacback to summary
pack-priv static Mac createStandardMac(ValidatedSymmetricKey key, EngineProvider<BlockCipher> provider, GeneralAuthParameters<T extends GeneralAuthParameters> parameters)
createStandardMacback to summary
pack-priv static Mac createStandardMac(KeyParameter keyParameter, EngineProvider<BlockCipher> provider, GeneralAuthParameters<T extends GeneralAuthParameters> parameters)
createStandardWrapperback to summary
pack-priv static Wrapper createStandardWrapper(boolean forWrapping, ValidatedSymmetricKey key, EngineProvider<BlockCipher> provider, ParametersWithIV<T extends Parameters> parameters, SecureRandom random)
createStandardWrapperback to summary
pack-priv static Wrapper createStandardWrapper(boolean forWrapping, ValidatedSymmetricKey key, EngineProvider<BlockCipher> provider, ParametersWithIV<T extends Parameters> parameters, boolean useInverse, SecureRandom random)
createStandardWrapperback to summary
pack-priv static Wrapper createStandardWrapper(boolean forWrapping, KeyParameter keyParameter, EngineProvider<BlockCipher> provider, ParametersWithIV<T extends Parameters> parameters, boolean useInverse, SecureRandom random)
getDefaultRandomPadderback to summary
pack-priv static synchronized SecureRandom getDefaultRandomPadder()
getMacback to summary
private static Mac getMac(AuthenticationParameters<T extends Parameters> parameters, EngineProvider<BlockCipher> provider)