Class SlhDsaVerifyConscrypt
- java.lang.Object
-
- com.google.crypto.tink.signature.internal.SlhDsaVerifyConscrypt
-
- All Implemented Interfaces:
PublicKeyVerify
@Immutable public class SlhDsaVerifyConscrypt extends java.lang.Object implements PublicKeyVerify
SLH-DSA verification with Conscypt.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlhDsaVerifyConscrypt.RawKeySpecRepresentation of the raw keys for interoperability with Conscrypt.
-
Field Summary
Fields Modifier and Type Field Description static TinkFipsUtil.AlgorithmFipsCompatibilityFIPS
-
Constructor Summary
Constructors Constructor Description SlhDsaVerifyConscrypt(byte[] outputPrefix, java.security.PublicKey publicKey, java.lang.String algorithm, int signatureLength, java.security.Provider provider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeyVerifycreate(SlhDsaPublicKey slhDsaPublicKey)static PublicKeyVerifycreateWithProvider(SlhDsaPublicKey slhDsaPublicKey, java.security.Provider provider)static booleanisSupported()Returns true if we're not in FIPS, and Conscrypt is available and supports SLH-DSA-SHA2-128S.voidverify(byte[] signature, byte[] data)Verifies whethersignatureis a valid signature fordata.
-
-
-
Field Detail
-
FIPS
public static final TinkFipsUtil.AlgorithmFipsCompatibility FIPS
-
-
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.GeneralSecurityExceptionDescription copied from interface:PublicKeyVerifyVerifies whethersignatureis a valid signature fordata.- Specified by:
verifyin interfacePublicKeyVerify- Throws:
java.security.GeneralSecurityException- ifsignatureis not a valid signature fordata
-
isSupported
public static boolean isSupported()
Returns true if we're not in FIPS, and Conscrypt is available and supports SLH-DSA-SHA2-128S.
-
-