Package com.google.crypto.tink.signature
Class Ed25519PrivateKeyManager
- java.lang.Object
-
- com.google.crypto.tink.signature.Ed25519PrivateKeyManager
-
public final class Ed25519PrivateKeyManager extends java.lang.ObjectThis instance ofKeyManagergenerates newEd25519PrivateKeykeys and produces new instances ofEd25519Sign.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplateed25519Template()static KeyTemplaterawEd25519Template()static voidregisterPair(boolean newKeyAllowed)Registers theEd25519PrivateKeyManagerand theEd25519PublicKeyManagerwith the registry, so that the the Ed25519-Keys can be used with Tink.
-
-
-
Method Detail
-
registerPair
public static void registerPair(boolean newKeyAllowed) throws java.security.GeneralSecurityExceptionRegisters theEd25519PrivateKeyManagerand theEd25519PublicKeyManagerwith the registry, so that the the Ed25519-Keys can be used with Tink.- Throws:
java.security.GeneralSecurityException
-
ed25519Template
public static final KeyTemplate ed25519Template()
- Returns:
- A
KeyTemplatethat generates new instances of ED25519 keys.
-
rawEd25519Template
public static final KeyTemplate rawEd25519Template()
- Returns:
- A
KeyTemplatethat generates new instances of Ed25519 keys. Keys generated from this template creates raw signatures of exactly 64 bytes. It's compatible with most other libraries.
-
-