Package tss.tpm
Class TPMS_ALGORITHM_DETAIL_ECC
- java.lang.Object
-
- tss.TpmStructure
-
- tss.tpm.TPMS_ALGORITHM_DETAIL_ECC
-
- All Implemented Interfaces:
TpmMarshaller
public class TPMS_ALGORITHM_DETAIL_ECC extends TpmStructure
This structure is used to report on the curve parameters of an ECC curve. It is returned by TPM2_ECC_Parameters().
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
a
Coefficient of the linear term in the curve equationbyte[]
b
Constant term for curve equationTPM_ECC_CURVE
curveID
Identifier for the curvebyte[]
gX
X coordinate of base point Gbyte[]
gY
Y coordinate of base point Gbyte[]
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 One of: TPMS_KDF_SCHEME_MGF1, TPMS_KDF_SCHEME_KDF1_SP800_56A, TPMS_KDF_SCHEME_KDF2, TPMS_KDF_SCHEME_KDF1_SP800_108, TPMS_SCHEME_HASH, TPMS_NULL_KDF_SCHEME.int
keySize
Size in bits of the keybyte[]
n
Order of Gbyte[]
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 Summary
Constructors Constructor Description TPMS_ALGORITHM_DETAIL_ECC()
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TPMS_ALGORITHM_DETAIL_ECC
fromBytes(byte[] byteBuf)
Static marshaling helperstatic TPMS_ALGORITHM_DETAIL_ECC
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic TPMS_ALGORITHM_DETAIL_ECC
fromTpm(TpmBuffer buf)
Static marshaling helpervoid
initFromTpm(TpmBuffer buf)
TpmMarshaller methodTPM_ALG_ID
kdfScheme()
Scheme selectorTPM_ALG_ID
signScheme()
Scheme selectorString
toString()
void
toStringInternal(TpmStructurePrinter _p, int d)
Serialize this object to the structure printerbyte[]
toTpm()
Deprecated.UseTpmStructure.toBytes()
insteadvoid
toTpm(TpmBuffer buf)
TpmMarshaller method-
Methods inherited from class tss.TpmStructure
equals, hashCode, toBytes
-
-
-
-
Field Detail
-
curveID
public TPM_ECC_CURVE curveID
Identifier for the curve
-
keySize
public int keySize
Size in bits of the key
-
kdf
public TPMU_KDF_SCHEME kdf
If not TPM_ALG_NULL, the required KDF and hash algorithm used in secret sharing operations One of: TPMS_KDF_SCHEME_MGF1, TPMS_KDF_SCHEME_KDF1_SP800_56A, TPMS_KDF_SCHEME_KDF2, TPMS_KDF_SCHEME_KDF1_SP800_108, TPMS_SCHEME_HASH, TPMS_NULL_KDF_SCHEME.
-
sign
public TPMU_ASYM_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
public byte[] p
Fp (the modulus)
-
a
public byte[] a
Coefficient of the linear term in the curve equation
-
b
public byte[] b
Constant term for curve equation
-
gX
public byte[] gX
X coordinate of base point G
-
gY
public byte[] gY
Y coordinate of base point G
-
n
public byte[] n
Order of G
-
h
public byte[] h
Cofactor (a size of zero indicates a cofactor of 1)
-
-
Constructor Detail
-
TPMS_ALGORITHM_DETAIL_ECC
public TPMS_ALGORITHM_DETAIL_ECC()
-
TPMS_ALGORITHM_DETAIL_ECC
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)
- Parameters:
_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_KDF_SCHEME_MGF1, TPMS_KDF_SCHEME_KDF1_SP800_56A, TPMS_KDF_SCHEME_KDF2, TPMS_KDF_SCHEME_KDF1_SP800_108, TPMS_SCHEME_HASH, 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)
-
-
Method Detail
-
kdfScheme
public TPM_ALG_ID kdfScheme()
Scheme selector
-
signScheme
public TPM_ALG_ID signScheme()
Scheme selector
-
toTpm
public void toTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
toTpm
in interfaceTpmMarshaller
- Overrides:
toTpm
in classTpmStructure
- Parameters:
buf
- An output byte buffer
-
initFromTpm
public void initFromTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
initFromTpm
in interfaceTpmMarshaller
- Overrides:
initFromTpm
in classTpmStructure
- Parameters:
buf
- An input byte buffer
-
toTpm
public byte[] toTpm()
Deprecated.UseTpmStructure.toBytes()
instead- Returns:
- Wire (marshaled) representation of this object
-
fromBytes
public static TPMS_ALGORITHM_DETAIL_ECC fromBytes(byte[] byteBuf)
Static marshaling helper- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPMS_ALGORITHM_DETAIL_ECC fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
instead- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPMS_ALGORITHM_DETAIL_ECC fromTpm(TpmBuffer buf)
Static marshaling helper- Parameters:
buf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
toStringInternal
public void toStringInternal(TpmStructurePrinter _p, int d)
Description copied from class:TpmStructure
Serialize this object to the structure printer- Overrides:
toStringInternal
in classTpmStructure
- Parameters:
_p
- The structure accumulatord
- The data to serialize
-
-