Class Sign

java.lang.Object
dk.hyperdivision.multisig_hmac.Sign

public class Sign
extends Object
Sign represents a sign of data with a key
Author:
Amalie Due Jensen
  • Constructor Summary

    Constructors 
    Constructor Description
    Sign​(IndexKey KeyObj, byte[] Data, String Algorithm)
    Constructs and initializes a sign of data with a key A list of instances of Sign can be passed to an instance of Combine
  • Method Summary

    Modifier and Type Method Description
    static byte[] sign​(IndexKey KeyObj, byte[] Data, String Algorithm)
    Independently signs data with a key

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Sign

      public Sign​(IndexKey KeyObj, byte[] Data, String Algorithm) throws InvalidKeyException, NoSuchAlgorithmException
      Constructs and initializes a sign of data with a key A list of instances of Sign can be passed to an instance of Combine
      Parameters:
      KeyObj - - instance of IndexKey
      Data - - data which should be signed
      Algorithm - - algorithm used for HMAC
      Throws:
      InvalidKeyException - - if the given key is inappropriate for initializing this HMAC
      NoSuchAlgorithmException - - if the specified algorithm is not available
  • Method Details