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

public abstract Class HarakaBase

extends Object
implements Digest
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Digest
Known Direct Subclasses
org.bouncycastle.crypto.digests.Haraka256Digest, org.bouncycastle.crypto.digests.Haraka512Digest
Imports
org.bouncycastle.crypto.Digest, org.bouncycastle.util.Bytes

Base class for Haraka v2, https://eprint.iacr.org/2016/098.pdf

Field Summary

Modifier and TypeField and Description
protected static final int
pack-priv static final byte[][]
private static final byte[][]
S

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static byte[]
aesEnc(byte[] s, byte[] rk)

public int
getDigestSize()

Implements org.bouncycastle.crypto.Digest.getDigestSize.

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

private static byte[]
mixColumns(byte[] s)

pack-priv static byte
mulX(byte p)

pack-priv static byte
sBox(byte x)

pack-priv static byte[]
shiftRows(byte[] s)

pack-priv static byte[]
subBytes(byte[] s)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DIGEST_SIZEback to summary
protected static final int DIGEST_SIZE
RCback to summary
pack-priv static final byte[][] RC
Sback to summary
private static final byte[][] S

Constructor Detail

HarakaBaseback to summary
public HarakaBase()

Method Detail

aesEncback to summary
pack-priv static byte[] aesEnc(byte[] s, byte[] rk)
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.

mixColumnsback to summary
private static byte[] mixColumns(byte[] s)
mulXback to summary
pack-priv static byte mulX(byte p)
sBoxback to summary
pack-priv static byte sBox(byte x)
shiftRowsback to summary
pack-priv static byte[] shiftRows(byte[] s)
subBytesback to summary
pack-priv static byte[] subBytes(byte[] s)