Module io.github.mmm.crypto.bc
Class SignatureFactoryEcBcPlain
- java.lang.Object
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureFactoryEcBc<SignatureEcBcPlain>
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureFactoryEcBcPlain
-
- All Implemented Interfaces:
SignatureFactory<SignatureEcBcPlain>
public class SignatureFactoryEcBcPlain extends SignatureFactoryEcBc<SignatureEcBcPlain>
Implementation ofSignatureFactory
forSignatureEcBcPlain
.- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureFactoryEcBc
curve
-
-
Constructor Summary
Constructors Constructor Description SignatureFactoryEcBcPlain(CryptoEllipticCurveBc curve)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignatureEcBcPlain
create(BigInteger r, BigInteger s, byte[] message, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
SignatureEcBcPlain
createSignature(byte[] data)
-
-
-
Constructor Detail
-
SignatureFactoryEcBcPlain
public SignatureFactoryEcBcPlain(CryptoEllipticCurveBc curve)
The constructor.- Parameters:
curve
- theelliptic curve
.
-
-
Method Detail
-
createSignature
public SignatureEcBcPlain createSignature(byte[] data)
- Parameters:
data
- thebinary signature data
.- Returns:
- the deserialized
SignatureBinary
.
-
create
public SignatureEcBcPlain create(BigInteger r, BigInteger s, byte[] message, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
- Specified by:
create
in classSignatureFactoryEcBc<SignatureEcBcPlain>
- Parameters:
r
- the valuer
.s
- the values
.message
- the signed message (hash).publicKey
- theBCECPublicKey
that was used to sign the message.- Returns:
- the signature.
-
-