Class SlhDsaSignConscrypt

  • All Implemented Interfaces:
    PublicKeySign

    @Immutable
    public class SlhDsaSignConscrypt
    extends java.lang.Object
    implements PublicKeySign
    SLH-DSA signing with Conscypt.
    • Constructor Detail

      • SlhDsaSignConscrypt

        public SlhDsaSignConscrypt​(byte[] outputPrefix,
                                   java.security.PrivateKey privateKey,
                                   java.lang.String algorithm,
                                   int signatureLength,
                                   java.security.Provider provider)
    • Method Detail

      • createWithProvider

        public static PublicKeySign createWithProvider​(SlhDsaPrivateKey slhDsaPrivateKey,
                                                       java.security.Provider provider)
                                                throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • create

        public static PublicKeySign create​(SlhDsaPrivateKey slhDsaPrivateKey)
                                    throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • isSupported

        public static boolean isSupported()
        Returns true if the Conscrypt is available and supports SLH-DSA-SHA2-128S.
      • sign

        public byte[] sign​(byte[] data)
                    throws java.security.GeneralSecurityException
        Description copied from interface: PublicKeySign
        Computes the signature for data.
        Specified by:
        sign in interface PublicKeySign
        Returns:
        the signature of data
        Throws:
        java.security.GeneralSecurityException