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

public Class AsconXof

extends Object
implements Xof
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Xof, org.bouncycastle.crypto.ExtendedDigest, org.bouncycastle.crypto.Digest
Imports
java.io.ByteArrayOutputStream, org.bouncycastle.crypto.DataLengthException, .OutputLengthException, .Xof

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final String
private final int
pack-priv AsconXof.AsconParameters
private final ByteArrayOutputStream
private final int
private long
private long
private long
private long
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
doFinal(byte[]
the array the digest is to be copied into.
output
,
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.
public int
doFinal(byte[]
output array to write the output bytes to.
output
,
int
offset to start writing the bytes at.
outOff
,
int
the number of output bytes requested.
outLen
)

Implements org.bouncycastle.crypto.Xof.doFinal.

Output the results of the final calculation for this digest to outLen number of bytes.
public int
doOutput(byte[]
output array to write the output bytes to.
output
,
int
offset to start writing the bytes at.
outOff
,
int
the number of output bytes requested.
outLen
)

Implements org.bouncycastle.crypto.Xof.doOutput.

Start outputting the results of the final calculation for this digest.
public String
public int
getByteLength()

Implements org.bouncycastle.crypto.ExtendedDigest.getByteLength.

Return the size in bytes of the internal buffer the digest applies it's compression function to.
public int
getDigestSize()

Implements org.bouncycastle.crypto.Digest.getDigestSize.

return the size, in bytes, of the digest produced by this message digest.
private long
LOADBYTES(final byte[] bytes, int inOff, int n)

private void
P(int nr)

private long
PAD(int i)

public void
reset()

Implements org.bouncycastle.crypto.Digest.reset.

reset the digest back to it's initial state.
private long
ROR(long x, int n)

private void
ROUND(long C)

private void
STOREBYTES(byte[] bytes, int inOff, long w, int n)

public void
update(byte
the input byte to be entered.
in
)

Implements org.bouncycastle.crypto.Digest.update.

update the message digest with a single byte.
public void
update(byte[]
the byte array containing the data.
input
,
int
the offset into the byte array where the data starts.
inOff
,
int
the length of the data.
len
)

Implements org.bouncycastle.crypto.Digest.update.

update the message digest with a block of bytes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmNameback to summary
private final String algorithmName
ASCON_PB_ROUNDSback to summary
private final int ASCON_PB_ROUNDS
asconParametersback to summary
pack-priv AsconXof.AsconParameters asconParameters
bufferback to summary
private final ByteArrayOutputStream buffer
CRYPTO_BYTESback to summary
private final int CRYPTO_BYTES
x0back to summary
private long x0
x1back to summary
private long x1
x2back to summary
private long x2
x3back to summary
private long x3
x4back to summary
private long x4

Constructor Detail

AsconXofback to summary
public AsconXof(AsconXof.AsconParameters parameters)

Method Detail

doFinalback to summary
public int doFinal(byte[] output, 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
output:byte[]

the array the digest is to be copied into.

outOff:int

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

Annotations
@Override
doFinalback to summary
public int doFinal(byte[] output, int outOff, int outLen)

Implements org.bouncycastle.crypto.Xof.doFinal.

Doc from org.bouncycastle.crypto.Xof.doFinal.

Output the results of the final calculation for this digest to outLen number of bytes.

Parameters
output:byte[]

output array to write the output bytes to.

outOff:int

offset to start writing the bytes at.

outLen:int

the number of output bytes requested.

Returns:int

the number of bytes written

Annotations
@Override
doOutputback to summary
public int doOutput(byte[] output, int outOff, int outLen)

Implements org.bouncycastle.crypto.Xof.doOutput.

Doc from org.bouncycastle.crypto.Xof.doOutput.

Start 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.

Parameters
output:byte[]

output array to write the output bytes to.

outOff:int

offset to start writing the bytes at.

outLen:int

the number of output bytes requested.

Returns:int

the number of bytes written

Annotations
@Override
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

Annotations
@Override
getByteLengthback to summary
public int getByteLength()

Implements org.bouncycastle.crypto.ExtendedDigest.getByteLength.

Doc from org.bouncycastle.crypto.ExtendedDigest.getByteLength.

Return the size in bytes of the internal buffer the digest applies it's compression function to.

Returns:int

byte length of the digests internal buffer.

Annotations
@Override
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.

Annotations
@Override
LOADBYTESback to summary
private long LOADBYTES(final byte[] bytes, int inOff, int n)
Pback to summary
private void P(int nr)
PADback to summary
private long PAD(int i)
resetback to summary
public void reset()

Implements org.bouncycastle.crypto.Digest.reset.

Doc from org.bouncycastle.crypto.Digest.reset.

reset the digest back to it's initial state.

Annotations
@Override
RORback to summary
private long ROR(long x, int n)
ROUNDback to summary
private void ROUND(long C)
STOREBYTESback to summary
private void STOREBYTES(byte[] bytes, int inOff, long w, int n)
updateback to summary
public void update(byte in)

Implements org.bouncycastle.crypto.Digest.update.

Doc from org.bouncycastle.crypto.Digest.update.

update the message digest with a single byte.

Parameters
in:byte

the input byte to be entered.

Annotations
@Override
updateback to summary
public void update(byte[] input, int inOff, int len)

Implements org.bouncycastle.crypto.Digest.update.

Doc from org.bouncycastle.crypto.Digest.update.

update the message digest with a block of bytes.

Parameters
input:byte[]

the byte array containing the data.

inOff:int

the offset into the byte array where the data starts.

len:int

the length of the data.

Annotations
@Override
org.bouncycastle.crypto.digests back to summary

public final Enum AsconXof.AsconParameters

extends Enum<AsconXof.AsconParameters>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AsconXof.AsconParameters
public static final AsconXof.AsconParameters

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AsconXof.AsconParameters
public static AsconXof.AsconParameters[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AsconXofback to summary
public static final AsconXof.AsconParameters AsconXof
AsconXofAback to summary
public static final AsconXof.AsconParameters AsconXofA

Constructor Detail

AsconParametersback to summary
private AsconParameters()

Method Detail

valueOfback to summary
public static AsconXof.AsconParameters valueOf(String name)
valuesback to summary
public static AsconXof.AsconParameters[] values()