Package com.google.crypto.tink.subtle
Class RsaSsaPssSignJce
- java.lang.Object
-
- com.google.crypto.tink.subtle.RsaSsaPssSignJce
-
- All Implemented Interfaces:
PublicKeySign
@Immutable public final class RsaSsaPssSignJce extends java.lang.Object implements PublicKeySign
RsaSsaPss (i.e. RSA Signature Schemes with Appendix (SSA) with PSS encoding) signing with JCE.
-
-
Field Summary
Fields Modifier and Type Field Description static TinkFipsUtil.AlgorithmFipsCompatibilityFIPS
-
Constructor Summary
Constructors Constructor Description RsaSsaPssSignJce(java.security.interfaces.RSAPrivateCrtKey priv, Enums.HashType sigHash, Enums.HashType mgf1Hash, int saltLength)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeySigncreate(RsaSsaPssPrivateKey key)byte[]sign(byte[] data)Computes the signature fordata.
-
-
-
Field Detail
-
FIPS
public static final TinkFipsUtil.AlgorithmFipsCompatibility FIPS
-
-
Constructor Detail
-
RsaSsaPssSignJce
public RsaSsaPssSignJce(java.security.interfaces.RSAPrivateCrtKey priv, Enums.HashType sigHash, Enums.HashType mgf1Hash, int saltLength) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
-
Method Detail
-
create
public static PublicKeySign create(RsaSsaPssPrivateKey key) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
sign
public byte[] sign(byte[] data) throws java.security.GeneralSecurityExceptionDescription copied from interface:PublicKeySignComputes the signature fordata.- Specified by:
signin interfacePublicKeySign- Returns:
- the signature of
data - Throws:
java.security.GeneralSecurityException
-
-