public class TPMS_RSA_PARMS extends TpmStructure implements TPMU_PUBLIC_PARMS
| Modifier and Type | Field and Description |
|---|---|
int |
exponent
the public exponent A prime number greater than 2.
|
short |
keyBits
number of bits in the public modulus
|
TPMU_ASYM_SCHEME |
scheme
scheme.scheme shall be: for an unrestricted signing key, either TPM_ALG_RSAPSS TPM_ALG_RSASSA or TPM_ALG_NULL for a restricted signing key, either TPM_ALG_RSAPSS or TPM_ALG_RSASSA for an unrestricted decryption key, TPM_ALG_RSAES, TPM_ALG_OAEP, or TPM_ALG_NULL unless the object also has the sign attribute for a restricted decryption key, TPM_ALG_NULL NOTE When both sign and decrypt are SET, restricted shall be CLEAR and scheme shall be TPM_ALG_NULL.
|
TPMT_SYM_DEF_OBJECT |
symmetric
for a restricted decryption key, shall be set to a supported symmetric algorithm, key size, and mode.
|
| Constructor and Description |
|---|
TPMS_RSA_PARMS()
A TPM compatible with this specification and supporting RSA shall support two primes and an exponent of zero.
|
TPMS_RSA_PARMS(TPMT_SYM_DEF_OBJECT _symmetric,
TPMU_ASYM_SCHEME _scheme,
int _keyBits,
int _exponent)
A TPM compatible with this specification and supporting RSA shall support two primes and an exponent of zero.
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_RSA_PARMS |
fromTpm(byte[] x) |
static TPMS_RSA_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 short keyBits
public int exponent
public TPMS_RSA_PARMS(TPMT_SYM_DEF_OBJECT _symmetric, TPMU_ASYM_SCHEME _scheme, int _keyBits, int _exponent)
_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 - scheme.scheme shall be: for an unrestricted signing key, either TPM_ALG_RSAPSS TPM_ALG_RSASSA or TPM_ALG_NULL for a restricted signing key, either TPM_ALG_RSAPSS or TPM_ALG_RSASSA for an unrestricted decryption key, TPM_ALG_RSAES, TPM_ALG_OAEP, or TPM_ALG_NULL unless the object also has the sign attribute for a restricted decryption key, TPM_ALG_NULL NOTE When both sign and decrypt are SET, restricted shall be CLEAR and scheme 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)_keyBits - number of bits in the public modulus_exponent - the public exponent A prime number greater than 2. When zero, indicates that the exponent is the default of 216 + 1public TPMS_RSA_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_RSA_PARMS fromTpm(byte[] x)
public static TPMS_RSA_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.