Package org.bouncycastle.crypto.digests
Class AsconXof
- java.lang.Object
-
- org.bouncycastle.crypto.digests.AsconXof
-
- All Implemented Interfaces:
Digest,ExtendedDigest,Xof
public class AsconXof extends java.lang.Object implements Xof
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsconXof.AsconParameters
-
Constructor Summary
Constructors Constructor Description AsconXof(AsconXof.AsconParameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoFinal(byte[] output, int outOff)close the digest, producing the final digest value.intdoFinal(byte[] output, int outOff, int outLen)Output the results of the final calculation for this digest to outLen number of bytes.intdoOutput(byte[] output, int outOff, int outLen)Start outputting the results of the final calculation for this digest.java.lang.StringgetAlgorithmName()return the algorithm nameintgetByteLength()Return the size in bytes of the internal buffer the digest applies it's compression function to.intgetDigestSize()return the size, in bytes, of the digest produced by this message digest.voidreset()reset the digest back to it's initial state.voidupdate(byte in)update the message digest with a single byte.voidupdate(byte[] input, int inOff, int len)update the message digest with a block of bytes.
-
-
-
Constructor Detail
-
AsconXof
public AsconXof(AsconXof.AsconParameters parameters)
-
-
Method Detail
-
getAlgorithmName
public java.lang.String getAlgorithmName()
Description copied from interface:Digestreturn the algorithm name- Specified by:
getAlgorithmNamein interfaceDigest- Returns:
- the algorithm name
-
getDigestSize
public int getDigestSize()
Description copied from interface:Digestreturn the size, in bytes, of the digest produced by this message digest.- Specified by:
getDigestSizein interfaceDigest- Returns:
- the size, in bytes, of the digest produced by this message digest.
-
update
public void update(byte in)
Description copied from interface:Digestupdate the message digest with a single byte.
-
update
public void update(byte[] input, int inOff, int len)Description copied from interface:Digestupdate the message digest with a block of bytes.
-
doOutput
public int doOutput(byte[] output, int outOff, int outLen)Description copied from interface:XofStart outputting the results of the final calculation for this digest. Unlike doFinal, this method will continue producing output until the Xof is explicitly reset, or signals otherwise.
-
doFinal
public int doFinal(byte[] output, int outOff)Description copied from interface:Digestclose the digest, producing the final digest value. The doFinal call leaves the digest reset.
-
doFinal
public int doFinal(byte[] output, int outOff, int outLen)Description copied from interface:XofOutput the results of the final calculation for this digest to outLen number of bytes.
-
getByteLength
public int getByteLength()
Description copied from interface:ExtendedDigestReturn the size in bytes of the internal buffer the digest applies it's compression function to.- Specified by:
getByteLengthin interfaceExtendedDigest- Returns:
- byte length of the digests internal buffer.
-
-