public class SignatureFactoryEcBcWithRecoveryId extends SignatureFactoryEcBc<SignatureEcBcWithRecoveryId>
SignatureFactory for SignatureEcBcWithRecoveryId.| Modifier and Type | Field and Description |
|---|---|
private static byte |
DEFAULT_RECOVERY_OFFSET |
private byte |
recoveryOffset |
curve| Constructor and Description |
|---|
SignatureFactoryEcBcWithRecoveryId(CryptoEllipticCurveBc curve)
The constructor.
|
SignatureFactoryEcBcWithRecoveryId(CryptoEllipticCurveBc curve,
byte recoveryOffset)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SignatureEcBcWithRecoveryId |
create(BigInteger r,
BigInteger s,
byte[] message,
org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey) |
SignatureEcBcWithRecoveryId |
createSignature(byte[] data) |
private static final byte DEFAULT_RECOVERY_OFFSET
private final byte recoveryOffset
public SignatureFactoryEcBcWithRecoveryId(CryptoEllipticCurveBc curve)
curve - the elliptic curve.public SignatureFactoryEcBcWithRecoveryId(CryptoEllipticCurveBc curve, byte recoveryOffset)
curve - the elliptic curve.recoveryOffset - the recovery offset.public SignatureEcBcWithRecoveryId createSignature(byte[] data)
public SignatureEcBcWithRecoveryId create(BigInteger r, BigInteger s, byte[] message, org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
create in class SignatureFactoryEcBc<SignatureEcBcWithRecoveryId>r - the value r.s - the value s.message - the signed message (hash).publicKey - the BCECPublicKey that was used to sign the message.Copyright © 2001–2019 mmm-Team. All rights reserved.