Package com.google.crypto.tink.signature
Class EcdsaSignKeyManager
- java.lang.Object
-
- com.google.crypto.tink.signature.EcdsaSignKeyManager
-
public final class EcdsaSignKeyManager extends java.lang.ObjectThis key manager generates newEcdsaPrivateKeykeys and produces new instances ofEcdsaSignJce.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateecdsaP256Template()static KeyTemplaterawEcdsaP256Template()static voidregisterPair(boolean newKeyAllowed)Registers theEcdsaSignKeyManagerand theEcdsaVerifyKeyManagerwith the registry, so that the the Ecdsa-Keys can be used with Tink.
-
-
-
Method Detail
-
registerPair
public static void registerPair(boolean newKeyAllowed) throws java.security.GeneralSecurityExceptionRegisters theEcdsaSignKeyManagerand theEcdsaVerifyKeyManagerwith the registry, so that the the Ecdsa-Keys can be used with Tink.- Throws:
java.security.GeneralSecurityException
-
ecdsaP256Template
public static final KeyTemplate ecdsaP256Template()
- Returns:
- A
KeyTemplatethat generates new instances of ECDSA keys with the following parameters:- Hash function: SHA256
- Curve: NIST P-256
- Signature encoding: DER (this is the encoding that Java uses).
- Prefix type:
KeyTemplate.OutputPrefixType.TINK.
-
rawEcdsaP256Template
public static final KeyTemplate rawEcdsaP256Template()
- Returns:
- A
KeyTemplatethat generates new instances of ECDSA keys 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: RAW (no prefix).
-
-