java.lang.Object
se.swedenconnect.opensaml.xmlsec.signature.support.provider.padding.MGF1
All Implemented Interfaces:
MGF

public class MGF1 extends Object implements MGF
Implementation of the MGF1 mask generation function.
Author:
Stefan Santesson (stefan@idsec.se), Martin Lindström (martin@idsec.se)
  • Constructor Details

    • MGF1

      public MGF1(MessageDigest digest)
      Constructor.
      Parameters:
      digest - the digest function for the MGF
  • Method Details

    • getMask

      public byte[] getMask(byte[] seed, int length)
      Generates mask data.
      Specified by:
      getMask in interface MGF
      Parameters:
      seed - the input seed
      length - the mask data length (in bytes)
      Returns:
      the generated mask data