public class TPMS_ALGORITHM_DETAIL_ECC extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
byte[] |
a
coefficient of the linear term in the curve equation
|
byte[] |
b
constant term for curve equation
|
TPM_ECC_CURVE |
curveID
identifier for the curve
|
byte[] |
gX
x coordinate of base point G
|
byte[] |
gY
y coordinate of base point G
|
byte[] |
h
cofactor (a size of zero indicates a cofactor of 1)
|
TPMU_KDF_SCHEME |
kdf
if not TPM_ALG_NULL, the required KDF and hash algorithm used in secret sharing operations
|
short |
keySize
Size in bits of the key
|
byte[] |
n
order of G
|
byte[] |
p
Fp (the modulus)
|
TPMU_ASYM_SCHEME |
sign
If not TPM_ALG_NULL, this is the mandatory signature scheme that is required to be used with this curve.
|
| Constructor and Description |
|---|
TPMS_ALGORITHM_DETAIL_ECC()
This structure is used to report on the curve parameters of an ECC curve.
|
TPMS_ALGORITHM_DETAIL_ECC(TPM_ECC_CURVE _curveID,
int _keySize,
TPMU_KDF_SCHEME _kdf,
TPMU_ASYM_SCHEME _sign,
byte[] _p,
byte[] _a,
byte[] _b,
byte[] _gX,
byte[] _gY,
byte[] _n,
byte[] _h)
This structure is used to report on the curve parameters of an ECC curve.
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_ALGORITHM_DETAIL_ECC |
fromTpm(byte[] x) |
static TPMS_ALGORITHM_DETAIL_ECC |
fromTpm(InByteBuf buf) |
int |
GetUnionSelector_kdf() |
int |
GetUnionSelector_sign() |
void |
initFromTpm(InByteBuf buf)
Populate this object from the TPM representation in the input byte buffer object
|
String |
toString() |
void |
toStringInternal(TpmStructurePrinter _p,
int d)
Serialize this object to the structure printer
|
byte[] |
toTpm()
Convert this object to its TPM representation and return it as a byte array
|
void |
toTpm(OutByteBuf buf)
Convert this object to its TPM representation and store in the output byte buffer object
|
equals, hashCodepublic TPM_ECC_CURVE curveID
public short keySize
public TPMU_KDF_SCHEME kdf
public TPMU_ASYM_SCHEME sign
public byte[] p
public byte[] a
public byte[] b
public byte[] gX
public byte[] gY
public byte[] n
public byte[] h
public TPMS_ALGORITHM_DETAIL_ECC(TPM_ECC_CURVE _curveID, int _keySize, TPMU_KDF_SCHEME _kdf, TPMU_ASYM_SCHEME _sign, byte[] _p, byte[] _a, byte[] _b, byte[] _gX, byte[] _gY, byte[] _n, byte[] _h)
_curveID - identifier for the curve_keySize - Size in bits of the key_kdf - if not TPM_ALG_NULL, the required KDF and hash algorithm used in secret sharing operations (One of TPMS_SCHEME_MGF1, TPMS_SCHEME_KDF1_SP800_56A, TPMS_SCHEME_KDF2, TPMS_SCHEME_KDF1_SP800_108, TPMS_NULL_KDF_SCHEME)_sign - If not TPM_ALG_NULL, this is the mandatory signature scheme that is required to be used with this curve. (One of TPMS_KEY_SCHEME_ECDH, TPMS_KEY_SCHEME_ECMQV, TPMS_SIG_SCHEME_RSASSA, TPMS_SIG_SCHEME_RSAPSS, TPMS_SIG_SCHEME_ECDSA, TPMS_SIG_SCHEME_ECDAA, TPMS_SIG_SCHEME_SM2, TPMS_SIG_SCHEME_ECSCHNORR, TPMS_ENC_SCHEME_RSAES, TPMS_ENC_SCHEME_OAEP, TPMS_SCHEME_HASH, TPMS_NULL_ASYM_SCHEME)_p - Fp (the modulus)_a - coefficient of the linear term in the curve equation_b - constant term for curve equation_gX - x coordinate of base point G_gY - y coordinate of base point G_n - order of G_h - cofactor (a size of zero indicates a cofactor of 1)public TPMS_ALGORITHM_DETAIL_ECC()
public int GetUnionSelector_kdf()
public int GetUnionSelector_sign()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPMS_ALGORITHM_DETAIL_ECC fromTpm(byte[] x)
public static TPMS_ALGORITHM_DETAIL_ECC fromTpm(InByteBuf buf)
public void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializeCopyright © 2017. All rights reserved.