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 ofSignatureFactoryforSignatureEcBcPlain.- 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 SignatureEcBcPlaincreate(BigInteger r, BigInteger s, byte[] message, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)SignatureEcBcPlaincreateSignature(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:
createin classSignatureFactoryEcBc<SignatureEcBcPlain>- Parameters:
r- the valuer.s- the values.message- the signed message (hash).publicKey- theBCECPublicKeythat was used to sign the message.- Returns:
- the signature.
-
-