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

public Class ISAPDigest

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

ISAP Hash v2, https://isap.iaik.tugraz.at/ https://csrc.nist.gov/CSRC/media/Projects/lightweight-cryptography/documents/finalist-round/updated-spec-doc/isap-spec-final.pdf

ISAP Hash v2 with reference to C Reference Impl from: https://github.com/isap-lwc/isap-code-package

Field Summary

Modifier and TypeField and Description
private ByteArrayOutputStream
private long
private long
private long
private long
private long
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.
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.

public String
public int
getDigestSize()

Implements org.bouncycastle.crypto.Digest.getDigestSize.

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

private void
P12()

public void
reset()

Implements org.bouncycastle.crypto.Digest.reset.

reset the digest back to it's initial state.

private long
ROTR(long x, long n)

private void
ROUND(long C)

protected long
U64BIG(long x)

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

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

bufferback to summary
private ByteArrayOutputStream buffer
t0back to summary
private long t0
t1back to summary
private long t1
t2back to summary
private long t2
t3back to summary
private long t3
t4back to summary
private long t4
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

ISAPDigestback to summary
public ISAPDigest()

Method Detail

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.

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
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
P12back to summary
private void P12()
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
ROTRback to summary
private long ROTR(long x, long n)
ROUNDback to summary
private void ROUND(long C)
U64BIGback to summary
protected long U64BIG(long x)
updateback to summary
public void update(byte input)

Implements org.bouncycastle.crypto.Digest.update.

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

update the message digest with a single byte.

Parameters
input: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