public class TPMS_ECC_PARMS extends TpmStructure implements TPMU_PUBLIC_PARMS
| Modifier and Type | Field and Description |
|---|---|
TPM_ECC_CURVE |
curveID
ECC curve ID
|
TPMU_KDF_SCHEME |
kdf
an optional key derivation scheme for generating a symmetric key from a Z value If the kdf parameter associated with curveID is not TPM_ALG_NULL then this is required to be NULL.
|
TPMU_ASYM_SCHEME |
scheme
If the sign attribute of the key is SET, then this shall be a valid signing scheme.
|
TPMT_SYM_DEF_OBJECT |
symmetric
for a restricted decryption key, shall be set to a supported symmetric algorithm, key size.
|
| Constructor and Description |
|---|
TPMS_ECC_PARMS()
This structure contains the parameters for prime modulus ECC.
|
TPMS_ECC_PARMS(TPMT_SYM_DEF_OBJECT _symmetric,
TPMU_ASYM_SCHEME _scheme,
TPM_ECC_CURVE _curveID,
TPMU_KDF_SCHEME _kdf)
This structure contains the parameters for prime modulus ECC.
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_ECC_PARMS |
fromTpm(byte[] x) |
static TPMS_ECC_PARMS |
fromTpm(InByteBuf buf) |
int |
GetUnionSelector_kdf() |
int |
GetUnionSelector_scheme() |
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 TPMT_SYM_DEF_OBJECT symmetric
public TPMU_ASYM_SCHEME scheme
public TPM_ECC_CURVE curveID
public TPMU_KDF_SCHEME kdf
public TPMS_ECC_PARMS(TPMT_SYM_DEF_OBJECT _symmetric, TPMU_ASYM_SCHEME _scheme, TPM_ECC_CURVE _curveID, TPMU_KDF_SCHEME _kdf)
_symmetric - for a restricted decryption key, shall be set to a supported symmetric algorithm, key size. and mode. if the key is not a restricted decryption key, this field shall be set to TPM_ALG_NULL._scheme - If the sign attribute of the key is SET, then this shall be a valid signing scheme. NOTE If the sign parameter in curveID indicates a mandatory scheme, then this field shall have the same value. If the decrypt attribute of the key is SET, then this shall be a valid key exchange scheme or TPM_ALG_NULL. If the key is a Storage Key, then this field shall be TPM_ALG_NULL. (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)_curveID - ECC curve ID_kdf - an optional key derivation scheme for generating a symmetric key from a Z value If the kdf parameter associated with curveID is not TPM_ALG_NULL then this is required to be NULL. NOTE There are currently no commands where this parameter has effect and, in the reference code, this field needs to be set to TPM_ALG_NULL. (One of TPMS_SCHEME_MGF1, TPMS_SCHEME_KDF1_SP800_56A, TPMS_SCHEME_KDF2, TPMS_SCHEME_KDF1_SP800_108, TPMS_NULL_KDF_SCHEME)public TPMS_ECC_PARMS()
public int GetUnionSelector_scheme()
public int GetUnionSelector_kdf()
public void toTpm(OutByteBuf buf)
TpmMarshallertoTpm in interface TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerinitFromTpm in interface TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallertoTpm in interface TpmMarshallerpublic static TPMS_ECC_PARMS fromTpm(byte[] x)
public static TPMS_ECC_PARMS 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.