Package org.bouncycastle.crypto.general
Class EdEC.EdDSAOperatorFactory
- java.lang.Object
-
- org.bouncycastle.crypto.general.EdEC.EdDSAOperatorFactory
-
- All Implemented Interfaces:
SignatureOperatorFactory<EdEC.Parameters>
- Enclosing class:
- EdEC
public static final class EdEC.EdDSAOperatorFactory extends java.lang.ObjectOperator factory for creating Edwards Curve DSA based signing and verification operators.
-
-
Constructor Summary
Constructors Constructor Description EdDSAOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputSigner<T>createSigner(AsymmetricPrivateKey key, T parameters)Create a signer which will create signatures against data written to its output stream.OutputVerifier<T>createVerifier(AsymmetricPublicKey key, T parameters)Create a verifier which will verify signatures against data written to its output stream.protected OutputSigner<EdEC.Parameters>doCreateSigner(AsymmetricPrivateKey key, EdEC.Parameters parameters)protected OutputVerifier<EdEC.Parameters>doCreateVerifier(AsymmetricPublicKey key, EdEC.Parameters parameters)
-
-
-
Method Detail
-
doCreateSigner
protected OutputSigner<EdEC.Parameters> doCreateSigner(AsymmetricPrivateKey key, EdEC.Parameters parameters)
-
doCreateVerifier
protected OutputVerifier<EdEC.Parameters> doCreateVerifier(AsymmetricPublicKey key, EdEC.Parameters parameters)
-
createSigner
public final OutputSigner<T> createSigner(AsymmetricPrivateKey key, T parameters)
Description copied from interface:SignatureOperatorFactoryCreate a signer which will create signatures against data written to its output stream.- Specified by:
createSignerin interfaceSignatureOperatorFactory<T extends Parameters>- Parameters:
key- the signing key to use.parameters- the parameters to use to initialize the signer.- Returns:
- an OutputSigner.
-
createVerifier
public final OutputVerifier<T> createVerifier(AsymmetricPublicKey key, T parameters)
Description copied from interface:SignatureOperatorFactoryCreate a verifier which will verify signatures against data written to its output stream.- Specified by:
createVerifierin interfaceSignatureOperatorFactory<T extends Parameters>- Parameters:
key- the verification key to use.parameters- the parameters to use to initialize the verifier.- Returns:
- an OutputVerifier.
-
-