Class RsaSsaPssSignKeyManager


  • public final class RsaSsaPssSignKeyManager
    extends java.lang.Object
    This key manager generates new RsaSsaPssPrivateKey keys and produces new instances of RsaSsaPssSignJce.
    • Method Detail

      • registerPair

        public static void registerPair​(boolean newKeyAllowed)
                                 throws java.security.GeneralSecurityException
        Registers the RsaSsaPssSignKeyManager and the RsaSsaPssVerifyKeyManager with 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 KeyTemplate that 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 KeyTemplate that 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 KeyTemplate that 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 KeyTemplate that 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.