public abstract class XDH extends AbstractDH
| Modifier and Type | Field and Description |
|---|---|
protected MontgomeryCurve |
curve |
protected byte[] |
f |
protected boolean |
raw |
myKeyAgree| Constructor and Description |
|---|
XDH(MontgomeryCurve curve,
boolean raw) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calculateE()
Lazy-called by
AbstractDH.getE() if the public key data has not been generated yet. |
protected byte[] |
calculateK()
Lazy-called by
AbstractDH.getK() if the shared secret data has not been calculated yet |
int |
getKeySize() |
void |
putE(Buffer buffer,
byte[] e) |
void |
putF(Buffer buffer,
byte[] f) |
void |
setF(byte[] f) |
checkKeyAgreementNecessity, getE, getHash, getK, getKeyEncapsulation, isPublicDataAvailable, isSharedSecretAvailable, stripLeadingZeroes, toStringprotected final MontgomeryCurve curve
protected final boolean raw
protected byte[] f
public XDH(MontgomeryCurve curve, boolean raw) throws Exception
Exceptionpublic int getKeySize()
protected byte[] calculateE()
throws Exception
AbstractDHAbstractDH.getE() if the public key data has not been generated yet.calculateE in class AbstractDHException - If failed to generate the relevant datapublic void setF(byte[] f)
setF in class AbstractDHpublic void putE(Buffer buffer, byte[] e)
putE in class AbstractDHpublic void putF(Buffer buffer, byte[] f)
putF in class AbstractDHprotected byte[] calculateK()
throws Exception
AbstractDHAbstractDH.getK() if the shared secret data has not been calculated yetcalculateK in class AbstractDHException - If failed to calculate itCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.