HarakaBase (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto.digests

## Class HarakaBase

- java.lang.Object
- - org.bouncycastle.crypto.digests.HarakaBase

- All Implemented Interfaces:
    Digest
  Direct Known Subclasses:
    Haraka256Digest, Haraka512Digest

      public abstract class HarakaBase
      extends java.lang.Object
      implements Digest

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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static int` | `DIGEST_SIZE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HarakaBase()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getDigestSize()` return the size, in bytes, of the digest produced by this message digest.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.bouncycastle.crypto.Digest

      `doFinal, getAlgorithmName, reset, update, update`

- - ### Field Detail

    - #### DIGEST_SIZE

          protected static final int DIGEST_SIZE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### HarakaBase

          public HarakaBase()

  - ### Method Detail

    - #### getDigestSize

          public int getDigestSize()

      Description copied from interface: `Digest`
      return the size, in bytes, of the digest produced by this message digest.
      Specified by:
        `getDigestSize` in interface `Digest`
      Returns:
        the size, in bytes, of the digest produced by this message digest.