public class TPMS_ASYM_PARMS extends TpmStructure implements TPMU_PUBLIC_PARMS
| Modifier and Type | Field and Description |
|---|---|
TPMU_ASYM_SCHEME |
scheme
for a key with the sign attribute SET, a valid signing scheme for the key type for a key with the decrypt attribute SET, a valid key exchange protocol for a key with sign and decrypt attributes, shall be TPM_ALG_NULL
|
TPMT_SYM_DEF_OBJECT |
symmetric
the companion symmetric algorithm for a restricted decryption key and shall be set to a supported symmetric algorithm This field is optional for keys that are not decryption keys and shall be set to TPM_ALG_NULL if not used.
|
| Constructor and Description |
|---|
TPMS_ASYM_PARMS()
This structure contains the common public area parameters for an asymmetric key.
|
TPMS_ASYM_PARMS(TPMT_SYM_DEF_OBJECT _symmetric,
TPMU_ASYM_SCHEME _scheme)
This structure contains the common public area parameters for an asymmetric key.
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_ASYM_PARMS |
fromTpm(byte[] x) |
static TPMS_ASYM_PARMS |
fromTpm(InByteBuf buf) |
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 TPMS_ASYM_PARMS(TPMT_SYM_DEF_OBJECT _symmetric, TPMU_ASYM_SCHEME _scheme)
_symmetric - the companion symmetric algorithm for a restricted decryption key and shall be set to a supported symmetric algorithm This field is optional for keys that are not decryption keys and shall be set to TPM_ALG_NULL if not used._scheme - for a key with the sign attribute SET, a valid signing scheme for the key type for a key with the decrypt attribute SET, a valid key exchange protocol for a key with sign and decrypt attributes, 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)public TPMS_ASYM_PARMS()
public int GetUnionSelector_scheme()
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_ASYM_PARMS fromTpm(byte[] x)
public static TPMS_ASYM_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.