All Implemented Interfaces:
DataStructure

public class Hash512extends SimpleDataStructure
SHA-512 secure hash algorithm implementation.

This class provides the SHA-512 hash algorithm as specified in FIPS PUB 180-4, producing a 64-byte (512-bit) message digest. SHA-512 offers the highest security level in the SHA-2 family with excellent performance characteristics.

Common uses in I2P include:

  • Maximum security requirements for sensitive operations
  • Long-term cryptographic key derivation
  • Digital signatures with strongest hash protection
  • Integrity verification for critical system components
  • Field Details

  • Constructor Details

    • Hash512

      public Hash512()
      Hash512.
    • Hash512

      public Hash512(byte[] data)
      IllegalArgumentException if data is not correct length (null is ok).
      Parameters:
      data - the raw 64 bytes of hash data to wrap, or null for an empty structure
      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