Module io.github.mmm.crypto.bc
Class SignatureEcBcPlain
- java.lang.Object
-
- io.github.mmm.binary.BinaryType
-
- io.github.mmm.crypto.CryptoBinary
-
- io.github.mmm.crypto.asymmetric.sign.SignatureBinary
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureEcBc
-
- io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureEcBcPlain
-
- All Implemented Interfaces:
Binary
,Streamable
public class SignatureEcBcPlain extends SignatureEcBc
SignatureEcBc
for a plain signature. This is one byte shorter thanSignatureEcBcWithRecoveryId
but requires to also transmit the entire public key.- Since:
- 1.0.0
-
-
Field Summary
-
Fields inherited from class io.github.mmm.binary.BinaryType
data
-
Fields inherited from interface io.github.mmm.binary.Binary
EMPTY_BYTE_ARRAY
-
-
Constructor Summary
Constructors Constructor Description SignatureEcBcPlain(CryptoEllipticCurveBc curve, byte[] data)
The constructor.SignatureEcBcPlain(CryptoEllipticCurveBc curve, byte[] data, BigInteger r, BigInteger s)
The constructor.
-
Method Summary
-
Methods inherited from class io.github.mmm.crypto.asymmetric.sign.ec.bc.SignatureEcBc
calculateRecoveryIndex, createData, deserialize, getCurve, getHead, getR, getS, recoverPublicKey, recoverPublicKey
-
Methods inherited from class io.github.mmm.binary.BinaryType
asStream, equals, format, formatBase64, formatHex, getData, getData, getDataByte, getLength, getMaxLength, getMinLength, hashCode, isZeros, parseBase64, parseHex, save, toBytes, toBytes, toInt, toLong, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.binary.Binary
formatBase64, formatHex
-
-
-
-
Constructor Detail
-
SignatureEcBcPlain
public SignatureEcBcPlain(CryptoEllipticCurveBc curve, byte[] data, BigInteger r, BigInteger s)
The constructor.- Parameters:
curve
- theelliptic curve
.data
- thebinary data
.r
- - seeSignatureEcBc.getR()
.s
- - seeSignatureEcBc.getS()
.
-
SignatureEcBcPlain
public SignatureEcBcPlain(CryptoEllipticCurveBc curve, byte[] data)
The constructor.- Parameters:
curve
- theelliptic curve
.data
- thebinary data
.
-
-