Class VerifyDerived

java.lang.Object
dk.hyperdivision.multisig_hmac.VerifyDerived

public class VerifyDerived
extends Object
VerifyDerived represents a verification of a signature of data against dynamically derived keys from a master seed.
Author:
Amalie Due Jensen
  • Constructor Details

  • Method Details

    • verifyderived

      public static boolean verifyderived​(byte[] MasterSeed, Combine Signature, byte[] data, int Threshold, String Algorithm, int KEYBYTES, int BYTES) throws InvalidKeyException, NoSuchAlgorithmException
      Verifies a signature of data against dynamically derived keys from a master seed
      Parameters:
      MasterSeed - - master seed in bytes of length KEYBYTES which the keys are derived from
      Signature - - combined signature
      data - - data which has been signed
      Threshold - - minimum number of used keys
      Algorithm - - algorithm used for HMAC
      KEYBYTES - length of keys
      BYTES - - length of signature
      Returns:
      verification of the signature (true/false)
      Throws:
      InvalidKeyException - - if the given key is inappropriate for initializing this HMAC
      NoSuchAlgorithmException - - if the specified algorithm is not available