All Implemented Interfaces:
DataStructure

public class Hash384extends SimpleDataStructure
SHA-384 secure hash algorithm implementation.

This class provides the SHA-384 hash algorithm as specified in FIPS PUB 180-4, producing a 48-byte (384-bit) message digest. SHA-384 is part of the SHA-2 family and offers higher security than SHA-256 with similar performance.

Common uses in I2P include:

  • Enhanced security requirements for sensitive data
  • Digital signature generation with longer hash outputs
  • Cryptographic key derivation and verification
  • Field Details

  • Constructor Details

    • Hash384

      public Hash384()
      Hash384.
    • Hash384

      public Hash384(byte[] data)
      IllegalArgumentException if data is not correct length (null is ok).
      Parameters:
      data - the 48-byte digest to store, or null for an uninitialized hash
      Throws:
      IllegalArgumentException - if data is not correct length (null is ok)
  • Method Details

    • length

      public int length()
      Hash length in bytes.
      Specified by:
      length in class SimpleDataStructure
      Returns:
      the hash length in bytes