Class PredefinedSignatureParameters


  • public final class PredefinedSignatureParameters
    extends java.lang.Object
    Pre-generated Parameter objects for PublicKeySign and PublicKeyVerify. keys.

    Note: if you want to keep dependencies small, consider inlining the constants here.

    • Field Detail

      • ECDSA_P256

        public static final EcdsaParameters ECDSA_P256
        A Parameters object that generates new instances of EcdsaPrivateKey objects with the following parameters:
        • Hash function: SHA256
        • Curve: NIST P-256
        • Signature encoding: DER (this is the encoding that Java uses).
        • Prefix type: OutputPrefixType.TINK
      • ECDSA_P384

        public static final EcdsaParameters ECDSA_P384
        A Parameters that generates new instances of EcdsaPrivateKey objects with the following parameters:
        • Hash function: SHA512
        • Curve: NIST P-384
        • Signature encoding: DER (this is the encoding that Java uses).
        • Prefix type: OutputPrefixType.TINK
      • ECDSA_P521

        public static final EcdsaParameters ECDSA_P521
        A Parameters that generates new instances of EcdsaPrivateKey objects with the following parameters:
        • Hash function: SHA512
        • Curve: NIST P-521
        • Signature encoding: DER (this is the encoding that Java uses).
        • Prefix type: OutputPrefixType.TINK
      • ECDSA_P256_IEEE_P1363

        public static final EcdsaParameters ECDSA_P256_IEEE_P1363
        A Parameters that generates new instances of EcdsaPrivateKey objects with the following parameters:
        • Hash function: SHA256
        • Curve: NIST P-256
        • Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).
        • Prefix type: OutputPrefixType.TINK
      • ECDSA_P384_IEEE_P1363

        public static final EcdsaParameters ECDSA_P384_IEEE_P1363
        A Parameters that generates new instances of EcdsaPrivateKey objects with the following parameters:
        • Hash function: SHA512
        • Curve: NIST P-384
        • Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).
        • Prefix type: OutputPrefixType.TINK
      • ECDSA_P256_IEEE_P1363_WITHOUT_PREFIX

        public static final EcdsaParameters ECDSA_P256_IEEE_P1363_WITHOUT_PREFIX
        A Parameters that generates new instances of EcdsaPrivateKey objects with the following parameters:
        • Hash function: SHA256
        • Curve: NIST P-256
        • Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).
        • Prefix type: None
        Digital signatures generated using these parameters are 64 bytes.
      • ECDSA_P521_IEEE_P1363

        public static final EcdsaParameters ECDSA_P521_IEEE_P1363
        A Parameters that generates new instances of EcdsaPrivateKey objects with the following parameters:
        • Hash function: SHA512
        • Curve: NIST P-521
        • Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).
        • Prefix type: OutputPrefixType.TINK
      • ED25519WithRawOutput

        public static final Ed25519Parameters ED25519WithRawOutput
        A Parameters that generates new instances of ED25519PrivateKey.

        The difference between ED25519WithRawOutput and ED25519 is the format of signatures generated. ED25519WithRawOutput generates signatures of OutputPrefixType.RAW format, which is 64 bytes long.

        Since:
        1.3.0
      • RSA_SSA_PKCS1_3072_SHA256_F4

        public static final RsaSsaPkcs1Parameters RSA_SSA_PKCS1_3072_SHA256_F4
        A Parameters that generates new instances of RsaSsaPkcs1PrivateKey objects with the following parameters:
        • Hash function: SHA256.
        • Modulus size: 3072 bit.
        • Public exponent: 65537 (aka F4).
        • Prefix type: OutputPrefixType.TINK
      • RSA_SSA_PKCS1_3072_SHA256_F4_WITHOUT_PREFIX

        public static final RsaSsaPkcs1Parameters RSA_SSA_PKCS1_3072_SHA256_F4_WITHOUT_PREFIX
        A Parameters that generates new instances of RsaSsaPkcs1PrivateKey objects with the following parameters:
        • Hash function: SHA256.
        • Modulus size: 3072 bit.
        • Public exponent: 65537 (aka F4).
        • Prefix type: None
      • RSA_SSA_PKCS1_4096_SHA512_F4

        public static final RsaSsaPkcs1Parameters RSA_SSA_PKCS1_4096_SHA512_F4
        A Parameters that generates new instances of RsaSsaPkcs1PrivateKey objects with the following parameters:
        • Hash function: SHA512.
        • Modulus size: 4096 bit.
        • Public exponent: 65537 (aka F4).
        • Prefix type: OutputPrefixType.TINK
      • RSA_SSA_PSS_3072_SHA256_SHA256_32_F4

        public static final RsaSsaPssParameters RSA_SSA_PSS_3072_SHA256_SHA256_32_F4
        A Parameters that generates new instances of RsaSsaPssPrivateKey objects 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).
      • RSA_SSA_PSS_4096_SHA512_SHA512_64_F4

        public static final RsaSsaPssParameters RSA_SSA_PSS_4096_SHA512_SHA512_64_F4
        A Parameters that generates new instances of RsaSsaPssPrivateKey objects 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).