Class FipsRSA.PSSSignatureParameters

    • Method Detail

      • withDigestAlgorithm

        public FipsRSA.PSSSignatureParameters withDigestAlgorithm​(FipsDigestAlgorithm digestAlgorithm)
        Specify the digest algorithm to use. This also sets the MGF digest, salt, and the salt length.
        Parameters:
        digestAlgorithm - a digest algorithm.
        Returns:
        a new parameter set.
      • withSaltLength

        public FipsRSA.PSSSignatureParameters withSaltLength​(int saltLength)
        Specify the saltLength for the signature.
        Parameters:
        saltLength - the salt length.
        Returns:
        a new parameter set.
      • withTrailer

        public FipsRSA.PSSSignatureParameters withTrailer​(int trailer)
        Specify the trailer for the signature.
        Parameters:
        trailer - the trailer for the signature.
        Returns:
        a new parameter set.
      • withSalt

        public FipsRSA.PSSSignatureParameters withSalt​(byte[] salt)
        Specify a fixed salt for the signature.
        Parameters:
        salt - the salt to use.
        Returns:
        a new parameter set.
      • getSalt

        public byte[] getSalt()
      • getSaltLength

        public int getSaltLength()
      • getTrailer

        public int getTrailer()