@Immutable public final class RsaSsaPkcs1VerifyConscrypt extends Object implements PublicKeyVerify
| Modifier and Type | Field and Description |
|---|---|
static TinkFipsUtil.AlgorithmFipsCompatibility |
FIPS |
| Modifier and Type | Method and Description |
|---|---|
static PublicKeyVerify |
create(RsaSsaPkcs1PublicKey key)
Returns a new instance of PublicKeyVerify for RsaSsaPkcs1 that uses Conscrypt.
|
static String |
toRsaSsaPkcs1Algo(RsaSsaPkcs1Parameters.HashType hashType) |
void |
verify(byte[] signature,
byte[] data)
Verifies whether
signature is a valid signature for data. |
public static final TinkFipsUtil.AlgorithmFipsCompatibility FIPS
public static String toRsaSsaPkcs1Algo(RsaSsaPkcs1Parameters.HashType hashType) throws GeneralSecurityException
GeneralSecurityExceptionpublic static PublicKeyVerify create(RsaSsaPkcs1PublicKey key) throws GeneralSecurityException
If Conscrypt is not available, this will throw a GeneralSecurityException.
If FIPS mode is enabled but BoringCrypto is not available, this will throw a GeneralSecurityException.
GeneralSecurityExceptionpublic void verify(byte[] signature,
byte[] data)
throws GeneralSecurityException
PublicKeyVerifysignature is a valid signature for data.verify in interface PublicKeyVerifyGeneralSecurityException - if signature is not a valid signature for data