Package com.google.crypto.tink.signature
Class PredefinedSignatureParameters
- java.lang.Object
-
- com.google.crypto.tink.signature.PredefinedSignatureParameters
-
public final class PredefinedSignatureParameters extends java.lang.ObjectPre-generatedParameterobjects forPublicKeySignandPublicKeyVerify. keys.Note: if you want to keep dependencies small, consider inlining the constants here.
-
-
Field Summary
Fields Modifier and Type Field Description static EcdsaParametersECDSA_P256AParametersobject that generates new instances ofEcdsaPrivateKeyobjects with the following parameters: Hash function: SHA256 Curve: NIST P-256 Signature encoding: DER (this is the encoding that Java uses).static EcdsaParametersECDSA_P256_IEEE_P1363AParametersthat generates new instances ofEcdsaPrivateKeyobjects with the following parameters: Hash function: SHA256 Curve: NIST P-256 Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).static EcdsaParametersECDSA_P256_IEEE_P1363_WITHOUT_PREFIXAParametersthat generates new instances ofEcdsaPrivateKeyobjects with the following parameters: Hash function: SHA256 Curve: NIST P-256 Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).static EcdsaParametersECDSA_P384AParametersthat generates new instances ofEcdsaPrivateKeyobjects with the following parameters: Hash function: SHA512 Curve: NIST P-384 Signature encoding: DER (this is the encoding that Java uses).static EcdsaParametersECDSA_P384_IEEE_P1363AParametersthat generates new instances ofEcdsaPrivateKeyobjects with the following parameters: Hash function: SHA512 Curve: NIST P-384 Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).static EcdsaParametersECDSA_P521AParametersthat generates new instances ofEcdsaPrivateKeyobjects with the following parameters: Hash function: SHA512 Curve: NIST P-521 Signature encoding: DER (this is the encoding that Java uses).static EcdsaParametersECDSA_P521_IEEE_P1363AParametersthat generates new instances ofEcdsaPrivateKeyobjects with the following parameters: Hash function: SHA512 Curve: NIST P-521 Signature encoding: IEEE_P1363 (this is the encoding that JWS and WebCrypto use).static Ed25519ParametersED25519AParametersthat generates new instances ofEd25519PrivateKeyobjects.static Ed25519ParametersED25519WithRawOutputAParametersthat generates new instances ofED25519PrivateKey.static RsaSsaPkcs1ParametersRSA_SSA_PKCS1_3072_SHA256_F4AParametersthat generates new instances ofRsaSsaPkcs1PrivateKeyobjects with the following parameters: Hash function: SHA256.static RsaSsaPkcs1ParametersRSA_SSA_PKCS1_3072_SHA256_F4_WITHOUT_PREFIXAParametersthat generates new instances ofRsaSsaPkcs1PrivateKeyobjects with the following parameters: Hash function: SHA256.static RsaSsaPkcs1ParametersRSA_SSA_PKCS1_4096_SHA512_F4AParametersthat generates new instances ofRsaSsaPkcs1PrivateKeyobjects with the following parameters: Hash function: SHA512.static RsaSsaPssParametersRSA_SSA_PSS_3072_SHA256_SHA256_32_F4AParametersthat generates new instances ofRsaSsaPssPrivateKeyobjects with the following parameters: Signature hash: SHA256.static RsaSsaPssParametersRSA_SSA_PSS_4096_SHA512_SHA512_64_F4AParametersthat generates new instances ofRsaSsaPssPrivateKeyobjects with the following parameters: Signature hash: SHA512.
-
-
-
Field Detail
-
ECDSA_P256
public static final EcdsaParameters ECDSA_P256
AParametersobject that generates new instances ofEcdsaPrivateKeyobjects 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
AParametersthat generates new instances ofEcdsaPrivateKeyobjects 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
AParametersthat generates new instances ofEcdsaPrivateKeyobjects 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
AParametersthat generates new instances ofEcdsaPrivateKeyobjects 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
AParametersthat generates new instances ofEcdsaPrivateKeyobjects 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
AParametersthat generates new instances ofEcdsaPrivateKeyobjects 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
-
ECDSA_P521_IEEE_P1363
public static final EcdsaParameters ECDSA_P521_IEEE_P1363
AParametersthat generates new instances ofEcdsaPrivateKeyobjects 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
-
ED25519
public static final Ed25519Parameters ED25519
AParametersthat generates new instances ofEd25519PrivateKeyobjects.- Since:
- 1.1.0
-
ED25519WithRawOutput
public static final Ed25519Parameters ED25519WithRawOutput
AParametersthat generates new instances ofED25519PrivateKey.The difference between
ED25519WithRawOutputandED25519is the format of signatures generated.ED25519WithRawOutputgenerates signatures ofOutputPrefixType.RAWformat, 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
AParametersthat generates new instances ofRsaSsaPkcs1PrivateKeyobjects 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
AParametersthat generates new instances ofRsaSsaPkcs1PrivateKeyobjects 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
AParametersthat generates new instances ofRsaSsaPkcs1PrivateKeyobjects 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
AParametersthat generates new instances ofRsaSsaPssPrivateKeyobjects 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
AParametersthat generates new instances ofRsaSsaPssPrivateKeyobjects 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).
-
-