Class SlhDsaVerifyConscrypt

  • All Implemented Interfaces:
    PublicKeyVerify

    @Immutable
    public class SlhDsaVerifyConscrypt
    extends java.lang.Object
    implements PublicKeyVerify
    SLH-DSA verification with Conscypt.
    • Constructor Detail

      • SlhDsaVerifyConscrypt

        public SlhDsaVerifyConscrypt​(byte[] outputPrefix,
                                     java.security.PublicKey publicKey,
                                     java.lang.String algorithm,
                                     int signatureLength,
                                     java.security.Provider provider)
    • Method Detail

      • createWithProvider

        public static PublicKeyVerify createWithProvider​(SlhDsaPublicKey slhDsaPublicKey,
                                                         java.security.Provider provider)
                                                  throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • create

        public static PublicKeyVerify create​(SlhDsaPublicKey slhDsaPublicKey)
                                      throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • verify

        public void verify​(byte[] signature,
                           byte[] data)
                    throws java.security.GeneralSecurityException
        Description copied from interface: PublicKeyVerify
        Verifies whether signature is a valid signature for data.
        Specified by:
        verify in interface PublicKeyVerify
        Throws:
        java.security.GeneralSecurityException - if signature is not a valid signature for data
      • isSupported

        public static boolean isSupported()
        Returns true if we're not in FIPS, and Conscrypt is available and supports SLH-DSA-SHA2-128S.