Top Fields Constructors Methods
org.bouncycastle.crypto.digests

public Class Blake2bpDigest

extends Object
implements ExtendedDigest
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.ExtendedDigest, org.bouncycastle.crypto.Digest
Imports
org.bouncycastle.crypto.ExtendedDigest, org.bouncycastle.util.Arrays, .Pack

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private byte[]
private int
private int
private int
private int
private long
private byte[]
private int
private int
private final int
private byte[]
private Blake2bDigest
private Blake2bDigest[]
S

private byte[]
private final byte[]

Constructor Summary

AccessConstructor and Description
public
Blake2bpDigest(byte[] key)

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
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 void
init(byte[] key)

public void
reset()

Implements org.bouncycastle.crypto.Digest.reset.

reset the digest back to it's initial state.
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.
message
,
int
the offset into the byte array where the data starts.
offset
,
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

BLAKE2B_BLOCKBYTESback to summary
private final int BLAKE2B_BLOCKBYTES
BLAKE2B_KEYBYTESback to summary
private final int BLAKE2B_KEYBYTES
BLAKE2B_OUTBYTESback to summary
private final int BLAKE2B_OUTBYTES
bufferback to summary
private byte[] buffer
bufferPosback to summary
private int bufferPos
depthback to summary
private int depth
digestLengthback to summary
private int digestLength
fanoutback to summary
private int fanout
innerHashLengthback to summary
private long innerHashLength
keyback to summary
private byte[] key
keyLengthback to summary
private int keyLength
nodeOffsetback to summary
private int nodeOffset
PARALLELISM_DEGREEback to summary
private final int PARALLELISM_DEGREE
paramback to summary
private byte[] param
rootback to summary
private Blake2bDigest root
Sback to summary
private Blake2bDigest[] S
saltback to summary
private byte[] salt
singleByteback to summary
private final byte[] singleByte

Constructor Detail

Blake2bpDigestback to summary
public Blake2bpDigest(byte[] key)

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
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
initback to summary
private void init(byte[] key)
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
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[] message, int offset, 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
message:byte[]

the byte array containing the data.

offset:int

the offset into the byte array where the data starts.

len:int

the length of the data.

Annotations
@Override