Package com.google.crypto.tink.signature
Class RsaSsaPssPrivateKey
- java.lang.Object
-
- com.google.crypto.tink.Key
-
- com.google.crypto.tink.signature.SignaturePrivateKey
-
- com.google.crypto.tink.signature.RsaSsaPssPrivateKey
-
- All Implemented Interfaces:
PrivateKey
public final class RsaSsaPssPrivateKey extends SignaturePrivateKey
Represents a private key for RSA SSA PSS signatures.Standard: https://www.rfc-editor.org/rfc/rfc8017#section-3.2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRsaSsaPssPrivateKey.BuilderBuilder for RsaSsaPssPrivateKey.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RsaSsaPssPrivateKey.Builderbuilder()booleanequalsKey(Key o)Returns true if the key is guaranteed to be equal toother.SecretBigIntegergetCrtCoefficient()Returns the CRT coefficient qInv.RsaSsaPssParametersgetParameters()Returns the key parameters.SecretBigIntegergetPrimeExponentP()Returns the prime exponent dP.SecretBigIntegergetPrimeExponentQ()Returns the prime exponent dQ.SecretBigIntegergetPrimeP()Returns the prime factor p.SecretBigIntegergetPrimeQ()Returns the prime factor q.SecretBigIntegergetPrivateExponent()Returns the private exponent d.RsaSsaPssPublicKeygetPublicKey()Returns the public key.-
Methods inherited from class com.google.crypto.tink.signature.SignaturePrivateKey
getIdRequirementOrNull, getOutputPrefix
-
-
-
-
Method Detail
-
builder
public static RsaSsaPssPrivateKey.Builder builder()
-
getParameters
public RsaSsaPssParameters getParameters()
Returns the key parameters.- Overrides:
getParametersin classSignaturePrivateKey
-
getPublicKey
public RsaSsaPssPublicKey getPublicKey()
Returns the public key.- Specified by:
getPublicKeyin interfacePrivateKey- Specified by:
getPublicKeyin classSignaturePrivateKey
-
getPrimeP
public SecretBigInteger getPrimeP()
Returns the prime factor p.
-
getPrimeQ
public SecretBigInteger getPrimeQ()
Returns the prime factor q.
-
getPrivateExponent
public SecretBigInteger getPrivateExponent()
Returns the private exponent d.
-
getPrimeExponentP
public SecretBigInteger getPrimeExponentP()
Returns the prime exponent dP.
-
getPrimeExponentQ
public SecretBigInteger getPrimeExponentQ()
Returns the prime exponent dQ.
-
getCrtCoefficient
public SecretBigInteger getCrtCoefficient()
Returns the CRT coefficient qInv.
-
equalsKey
public boolean equalsKey(Key o)
Description copied from class:KeyReturns true if the key is guaranteed to be equal toother.Implementations are required to do this in constant time.
Note: this is allowed to return false even if two keys are guaranteed to represent the same function, but are represented differently. For example, a key is allowed to internally store the number of zero-bytes used as padding when a large number is represented as a byte array, and use this in the comparison.
Note: Tink
Keyobjects should typically not overridehashCode(because it could risk leaking key material). Hence, they typically also should not overrideequals.
-
-