Top Fields Constructors Methods
org.bouncycastle.crypto.digests

pack-priv abstract Class AsconBaseDigest

extends Object
implements ExtendedDigest
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.ExtendedDigest, org.bouncycastle.crypto.Digest
Known Direct Subclasses
org.bouncycastle.crypto.digests.AsconCXof128, org.bouncycastle.crypto.digests.AsconDigest, org.bouncycastle.crypto.digests.AsconHash256, org.bouncycastle.crypto.digests.AsconXof, org.bouncycastle.crypto.digests.AsconXof128
Imports
org.bouncycastle.crypto.DataLengthException, .ExtendedDigest, .OutputLengthException, org.bouncycastle.util.Arrays, .Longs

Field Summary

Modifier and TypeField and Description
protected final int
protected int
protected final int
protected final byte[]
protected int
protected long
protected long
protected long
protected long
protected long

Constructor Summary

AccessConstructor and Description
pack-priv

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

protected int
hash(byte[] output, int outOff, int outLen)

protected abstract long
loadBytes(final byte[] bytes, int inOff)

protected abstract long
loadBytes(final byte[] bytes, int inOff, int n)

protected void
p(int nr)

protected abstract long
pad(int i)

protected void
public void
reset()

Implements org.bouncycastle.crypto.Digest.reset.

reset the digest back to it's initial state.

private void
round(long C)

protected abstract void
setBytes(long w, byte[] bytes, int inOff)

protected abstract void
setBytes(long w, byte[] bytes, int inOff, int n)

protected void
squeeze(byte[] output, int outOff, int len)

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

ASCON_HASH_RATEback to summary
protected final int ASCON_HASH_RATE
ASCON_PB_ROUNDSback to summary
protected int ASCON_PB_ROUNDS
CRYPTO_BYTESback to summary
protected final int CRYPTO_BYTES
m_bufback to summary
protected final byte[] m_buf
m_bufPosback to summary
protected int m_bufPos
x0back to summary
protected long x0
x1back to summary
protected long x1
x2back to summary
protected long x2
x3back to summary
protected long x3
x4back to summary
protected long x4

Constructor Detail

AsconBaseDigestback to summary
pack-priv AsconBaseDigest()

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
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
hashback to summary
protected int hash(byte[] output, int outOff, int outLen)
loadBytesback to summary
protected abstract long loadBytes(final byte[] bytes, int inOff)
loadBytesback to summary
protected abstract long loadBytes(final byte[] bytes, int inOff, int n)
pback to summary
protected void p(int nr)
padback to summary
protected abstract long pad(int i)
padAndAbsorbback to summary
protected void padAndAbsorb()
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.

roundback to summary
private void round(long C)
setBytesback to summary
protected abstract void setBytes(long w, byte[] bytes, int inOff)
setBytesback to summary
protected abstract void setBytes(long w, byte[] bytes, int inOff, int n)
squeezeback to summary
protected void squeeze(byte[] output, int outOff, int len)
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