Top Inners Fields Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv Class ProvSecureHash

extends Object
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, .MessageDigest, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.gnu.GNUObjectIdentifiers, org.bouncycastle.asn1.iana.IANAObjectIdentifiers, org.bouncycastle.asn1.iso.ISOIECObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.crypto.AuthenticationParameters, .CryptoServicesRegistrar, .DigestOperatorFactory, .OutputDigestCalculator, .Parameters, .SymmetricKeyGenerator, .UpdateOutputStream, org.bouncycastle.crypto.fips.FipsDigestOperatorFactory, .FipsSHS, org.bouncycastle.crypto.general.GeneralParameters, .SecureHash, org.bouncycastle.crypto.internal.Digest, org.bouncycastle.util.Properties

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
private static class
private static class
public static class
public static class
public static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final BaseSecretKeyFactory.Validator
private static DigestOperatorFactory<GeneralParameters<T extends Algorithm>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static BaseMessageDigest
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

anythingGoesValidatorback to summary
private static final BaseSecretKeyFactory.Validator anythingGoesValidator
generalOperatorFactoryback to summary
private static DigestOperatorFactory<GeneralParameters<T extends Algorithm>> generalOperatorFactory

Constructor Detail

ProvSecureHashback to summary
pack-priv ProvSecureHash()

Method Detail

getDigestImplementationback to summary
private static BaseMessageDigest getDigestImplementation(SecureHash.Parameters algorithm)
org.bouncycastle.jcajce.provider back to summary

pack-priv Class ProvSecureHash.GOST3411

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

GOST3411back to summary
pack-priv GOST3411()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

pack-priv Class ProvSecureHash.MD5

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv
MD5()

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

MD5back to summary
pack-priv MD5()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

private Class ProvSecureHash.MD5MessageDigest

extends MessageDigest
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable

Field Summary

Modifier and TypeField and Description
private final MD5Digest

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.security.MessageDigest.clone.

Returns a clone if the implementation is cloneable.
protected byte[]
engineDigest()

Implements abstract java.security.MessageDigestSpi.engineDigest.

Completes the hash computation by performing final operations such as padding.
protected int
engineGetDigestLength()

Overrides java.security.MessageDigestSpi.engineGetDigestLength.

Returns the digest length in bytes.
protected void
engineReset()

Implements abstract java.security.MessageDigestSpi.engineReset.

Resets the digest for further use.
protected void
engineUpdate(byte
the byte to use for the update.
input
)

Implements abstract java.security.MessageDigestSpi.engineUpdate.

Updates the digest using the specified byte.
protected void
engineUpdate(byte[]
the array of bytes to use for the update.
input
,
int
the offset to start from in the array of bytes.
offset
,
int
the number of bytes to use, starting at offset.
len
)

Implements abstract java.security.MessageDigestSpi.engineUpdate.

Updates the digest using the specified array of bytes, starting at the specified offset.
Inherited from java.security.MessageDigest:
digestdigestdigestgetAlgorithmgetDigestLengthgetInstancegetInstancegetInstancegetProviderisEqualresettoStringupdateupdateupdateupdate

Field Detail

baseDigestback to summary
private final MD5Digest baseDigest

Constructor Detail

MD5MessageDigestback to summary
protected MD5MessageDigest()
MD5MessageDigestback to summary
protected MD5MessageDigest(MD5Digest md5Digest)

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.security.MessageDigest.clone.

Doc from java.security.MessageDigest.clone.

Returns a clone if the implementation is cloneable.

Returns:Object

a clone if the implementation is cloneable.

Exceptions
CloneNotSupportedException:
if this is called on an implementation that does not support Cloneable.
engineDigestback to summary
protected byte[] engineDigest()

Implements abstract java.security.MessageDigestSpi.engineDigest.

Doc from java.security.MessageDigestSpi.engineDigest.

Completes the hash computation by performing final operations such as padding. Once engineDigest has been called, the engine should be reset (see engineReset). Resetting is the responsibility of the engine implementor.

Returns:byte[]

the array of bytes for the resulting hash value.

engineGetDigestLengthback to summary
protected int engineGetDigestLength()

Overrides java.security.MessageDigestSpi.engineGetDigestLength.

Doc from java.security.MessageDigestSpi.engineGetDigestLength.

Returns the digest length in bytes.

This concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.)

The default behavior is to return 0.

This method may be overridden by a provider to return the digest length.

Returns:int

the digest length in bytes.

engineResetback to summary
protected void engineReset()

Implements abstract java.security.MessageDigestSpi.engineReset.

Doc from java.security.MessageDigestSpi.engineReset.

Resets the digest for further use.

engineUpdateback to summary
protected void engineUpdate(byte input)

Implements abstract java.security.MessageDigestSpi.engineUpdate.

Doc from java.security.MessageDigestSpi.engineUpdate.

Updates the digest using the specified byte.

Parameters
input:byte

the byte to use for the update.

engineUpdateback to summary
protected void engineUpdate(byte[] input, int offset, int len)

Implements abstract java.security.MessageDigestSpi.engineUpdate.

Doc from java.security.MessageDigestSpi.engineUpdate.

Updates the digest using the specified array of bytes, starting at the specified offset.

Parameters
input:byte[]

the array of bytes to use for the update.

offset:int

the offset to start from in the array of bytes.

len:int

the number of bytes to use, starting at offset.

org.bouncycastle.jcajce.provider back to summary

private Class ProvSecureHash.ParametersCreator

extends Object
implements MacParametersCreator
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.jcajce.provider.ProvSecureHash.ParametersCreator
All Implemented Interfaces
org.bouncycastle.jcajce.provider.MacParametersCreator

Field Summary

Modifier and TypeField and Description
private final SecureHash.AuthParameters

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public AuthenticationParameters<T extends Parameters>
public AuthenticationParameters<T extends Parameters>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
private final SecureHash.AuthParameters algorithm

Constructor Detail

ParametersCreatorback to summary
pack-priv ParametersCreator(SecureHash.AuthParameters algorithm)

Method Detail

createParametersback to summary
public AuthenticationParameters<T extends Parameters> createParameters(boolean forEncryption, AlgorithmParameterSpec spec, SecureRandom random) throws InvalidAlgorithmParameterException

Implements org.bouncycastle.jcajce.provider.MacParametersCreator.createParameters.

getBaseParametersback to summary
public AuthenticationParameters<T extends Parameters> getBaseParameters()

Implements org.bouncycastle.jcajce.provider.MacParametersCreator.getBaseParameters.

org.bouncycastle.jcajce.provider back to summary

public Class ProvSecureHash.RIPEMD128

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

RIPEMD128back to summary
public RIPEMD128()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

public Class ProvSecureHash.RIPEMD160

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

RIPEMD160back to summary
public RIPEMD160()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

public Class ProvSecureHash.RIPEMD256

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

RIPEMD256back to summary
public RIPEMD256()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

pack-priv Class ProvSecureHash.RIPEMD320

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

RIPEMD320back to summary
pack-priv RIPEMD320()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

pack-priv Class ProvSecureHash.Tiger

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

Tigerback to summary
pack-priv Tiger()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

pack-priv Class ProvSecureHash.Whirlpool

extends DigestAlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.bouncycastle.jcajce.provider.DigestAlgorithmProvider:
addHMACAlgorithmaddHMACAliasaddHMACAlias

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

Whirlpoolback to summary
pack-priv Whirlpool()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.