Top Description Fields Constructors Methods
org.bouncycastle.crypto.digests

public Class RIPEMD320Digest

extends GeneralDigest
Class Inheritance
Imports
org.bouncycastle.crypto.CryptoServiceProperties, .CryptoServicePurpose, .CryptoServicesRegistrar, org.bouncycastle.util.Memoable, .Pack

implementation of RIPEMD 320.

Note

this implementation offers the same level of security as RIPEMD 160.

Field Summary

Modifier and TypeField and Description
private static final int
private int
private int
private int
private int
private int
private int
private int
private int
private int
private int
private int[]
X

private int
Inherited from org.bouncycastle.crypto.digests.GeneralDigest:
purpose

Constructor Summary

AccessConstructor and Description
public
RIPEMD320Digest()

Standard constructor

public
public
RIPEMD320Digest(RIPEMD320Digest t)

Copy constructor.

Method Summary

Modifier and TypeMethod and Description
public Memoable
copy()

Implements org.bouncycastle.util.Memoable.copy.

Produce a copy of this object with its configuration and in its current state.
protected CryptoServiceProperties
private void
public int
doFinal(byte[]
the array the digest is to be copied into.
out
,
int
the offset into the out array the digest is to start at.
outOff
)

Implements org.bouncycastle.crypto.Digest.doFinal.

close the digest, producing the final digest value.
private int
f1(int x, int y, int z)

private int
f2(int x, int y, int z)

private int
f3(int x, int y, int z)

private int
f4(int x, int y, int z)

private int
f5(int x, int y, int z)

public String
public int
getDigestSize()

Implements org.bouncycastle.crypto.Digest.getDigestSize.

return the size, in bytes, of the digest produced by this message digest.
protected void
protected void
protected void
public void
reset()

Overrides org.bouncycastle.crypto.digests.GeneralDigest.reset.

Implements org.bouncycastle.crypto.Digest.reset.

reset the chaining variables to the IV values.
public void
reset(Memoable
an object originally copied from an object of the same type as this instance.
other
)

Implements org.bouncycastle.util.Memoable.reset.

Restore a copied object state into this object.
private int
RL(int x, int n)

Inherited from org.bouncycastle.crypto.digests.GeneralDigest:
copyInfinishgetByteLengthpopulateStateupdateupdate

Field Detail

DIGEST_LENGTHback to summary
private static final int DIGEST_LENGTH
H0back to summary
private int H0
H1back to summary
private int H1
H2back to summary
private int H2
H3back to summary
private int H3
H4back to summary
private int H4
H5back to summary
private int H5
H6back to summary
private int H6
H7back to summary
private int H7
H8back to summary
private int H8
H9back to summary
private int H9
Xback to summary
private int[] X
xOffback to summary
private int xOff

Constructor Detail

RIPEMD320Digestback to summary
public RIPEMD320Digest()

Standard constructor

RIPEMD320Digestback to summary
public RIPEMD320Digest(CryptoServicePurpose purpose)
RIPEMD320Digestback to summary
public RIPEMD320Digest(RIPEMD320Digest t)

Copy constructor. This will copy the state of the provided message digest.

Method Detail

copyback to summary
public Memoable copy()

Implements org.bouncycastle.util.Memoable.copy.

Doc from org.bouncycastle.util.Memoable.copy.

Produce a copy of this object with its configuration and in its current state.

The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state.

cryptoServicePropertiesback to summary
protected CryptoServiceProperties cryptoServiceProperties()

Implements abstract org.bouncycastle.crypto.digests.GeneralDigest.cryptoServiceProperties.

doCopyback to summary
private void doCopy(RIPEMD320Digest t)
doFinalback to summary
public int doFinal(byte[] out, int outOff)

Implements org.bouncycastle.crypto.Digest.doFinal.

Doc from org.bouncycastle.crypto.Digest.doFinal.

close the digest, producing the final digest value. The doFinal call leaves the digest reset.

Parameters
out:byte[]

the array the digest is to be copied into.

outOff:int

the offset into the out array the digest is to start at.

f1back to summary
private int f1(int x, int y, int z)
f2back to summary
private int f2(int x, int y, int z)
f3back to summary
private int f3(int x, int y, int z)
f4back to summary
private int f4(int x, int y, int z)
f5back to summary
private int f5(int x, int y, int z)
getAlgorithmNameback to summary
public String getAlgorithmName()

Implements org.bouncycastle.crypto.Digest.getAlgorithmName.

Doc from org.bouncycastle.crypto.Digest.getAlgorithmName.

return the algorithm name

Returns:String

the algorithm name

getDigestSizeback to summary
public int getDigestSize()

Implements org.bouncycastle.crypto.Digest.getDigestSize.

Doc from org.bouncycastle.crypto.Digest.getDigestSize.

return the size, in bytes, of the digest produced by this message digest.

Returns:int

the size, in bytes, of the digest produced by this message digest.

processBlockback to summary
protected void processBlock()

Implements abstract org.bouncycastle.crypto.digests.GeneralDigest.processBlock.

processLengthback to summary
protected void processLength(long bitLength)

Implements abstract org.bouncycastle.crypto.digests.GeneralDigest.processLength.

processWordback to summary
protected void processWord(byte[] in, int inOff)

Implements abstract org.bouncycastle.crypto.digests.GeneralDigest.processWord.

resetback to summary
public void reset()

Overrides org.bouncycastle.crypto.digests.GeneralDigest.reset.

Implements org.bouncycastle.crypto.Digest.reset.

reset the chaining variables to the IV values.

resetback to summary
public void reset(Memoable other)

Implements org.bouncycastle.util.Memoable.reset.

Doc from org.bouncycastle.util.Memoable.reset.

Restore a copied object state into this object.

Implementations of this method should try to avoid or minimise memory allocation to perform the reset.

Parameters
other:Memoable

an object originally copied from an object of the same type as this instance.

RLback to summary
private int RL(int x, int n)