Package com.google.crypto.tink.signature
Class RsaSsaPssSignKeyManager
- java.lang.Object
-
- com.google.crypto.tink.signature.RsaSsaPssSignKeyManager
-
public final class RsaSsaPssSignKeyManager extends java.lang.ObjectThis key manager generates newRsaSsaPssPrivateKeykeys and produces new instances ofRsaSsaPssSignJce.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplaterawRsa3072PssSha256F4Template()static KeyTemplaterawRsa4096PssSha512F4Template()static voidregisterPair(boolean newKeyAllowed)Registers theRsaSsaPssSignKeyManagerand theRsaSsaPssVerifyKeyManagerwith the registry, so that the the RsaSsaPss-Keys can be used with Tink.static KeyTemplatersa3072PssSha256F4Template()static KeyTemplatersa4096PssSha512F4Template()
-
-
-
Method Detail
-
registerPair
public static void registerPair(boolean newKeyAllowed) throws java.security.GeneralSecurityExceptionRegisters theRsaSsaPssSignKeyManagerand theRsaSsaPssVerifyKeyManagerwith the registry, so that the the RsaSsaPss-Keys can be used with Tink.- Throws:
java.security.GeneralSecurityException
-
rsa3072PssSha256F4Template
public static final KeyTemplate rsa3072PssSha256F4Template()
- Returns:
- A
KeyTemplatethat generates new instances of RSA-SSA-PSS key pairs with the following parameters:- Signature hash: SHA256.
- MGF1 hash: SHA256.
- Salt length: 32 (i.e., SHA256's output length).
- Modulus size: 3072 bit.
- Public exponent: 65537 (aka F4).
- Prefix type:
KeyTemplate.OutputPrefixType.TINK.
-
rawRsa3072PssSha256F4Template
public static final KeyTemplate rawRsa3072PssSha256F4Template()
- Returns:
- A
KeyTemplatethat generates new instances of RSA-SSA-PSS key pairs with the following parameters:- Signature hash: SHA256.
- MGF1 hash: SHA256.
- Salt length: 32 (i.e., SHA256's output length).
- Modulus size: 3072 bit.
- Public exponent: 65537 (aka F4).
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix).
Keys generated from this template create signatures compatible with OpenSSL and other libraries.
-
rsa4096PssSha512F4Template
public static final KeyTemplate rsa4096PssSha512F4Template()
- Returns:
- A
KeyTemplatethat generates new instances of RSA-SSA-PSS key pairs with the following parameters:- Signature hash: SHA512.
- MGF1 hash: SHA512.
- Salt length: 64 (i.e., SHA512's output length).
- Modulus size: 4096 bit.
- Public exponent: 65537 (aka F4).
- Prefix type:
KeyTemplate.OutputPrefixType.TINK.
-
rawRsa4096PssSha512F4Template
public static final KeyTemplate rawRsa4096PssSha512F4Template()
- Returns:
- A
KeyTemplatethat generates new instances of RSA-SSA-PSS key pairs with the following parameters:- Signature hash: SHA512.
- MGF1 hash: SHA512.
- Salt length: 64 (i.e., SHA512's output length).
- Modulus size: 4096 bit.
- Public exponent: 65537 (aka F4).
- Prefix type:
KeyTemplate.OutputPrefixType.RAW(no prefix).
Keys generated from this template create signatures compatible with OpenSSL and other libraries.
-
-