public class TPM2_RSA_Encrypt_REQUEST extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPMU_ASYM_SCHEME |
inScheme
the padding scheme to use if scheme associated with keyHandle is TPM_ALG_NULL
|
TPM_HANDLE |
keyHandle
reference to public portion of RSA key to use for encryption Auth Index: None
|
byte[] |
label
optional label L to be associated with the message Size of the buffer is zero if no label is present NOTE 2 See description of label above.
|
byte[] |
message
message to be encrypted NOTE 1 The data type was chosen because it limits the overall size of the input to no greater than the size of the largest RSA public key.
|
| Constructor and Description |
|---|
TPM2_RSA_Encrypt_REQUEST()
This command performs RSA encryption using the indicated padding scheme according to IETF RFC 3447.
|
TPM2_RSA_Encrypt_REQUEST(TPM_HANDLE _keyHandle,
byte[] _message,
TPMU_ASYM_SCHEME _inScheme,
byte[] _label)
This command performs RSA encryption using the indicated padding scheme according to IETF RFC 3447.
|
| Modifier and Type | Method and Description |
|---|---|
static TPM2_RSA_Encrypt_REQUEST |
fromTpm(byte[] x) |
static TPM2_RSA_Encrypt_REQUEST |
fromTpm(InByteBuf buf) |
int |
GetUnionSelector_inScheme() |
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_HANDLE keyHandle
public byte[] message
public TPMU_ASYM_SCHEME inScheme
public byte[] label
public TPM2_RSA_Encrypt_REQUEST(TPM_HANDLE _keyHandle, byte[] _message, TPMU_ASYM_SCHEME _inScheme, byte[] _label)
_keyHandle - reference to public portion of RSA key to use for encryption Auth Index: None_message - message to be encrypted NOTE 1 The data type was chosen because it limits the overall size of the input to no greater than the size of the largest RSA public key. This may be larger than allowed for keyHandle._inScheme - the padding scheme to use if scheme associated with keyHandle is 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)_label - optional label L to be associated with the message Size of the buffer is zero if no label is present NOTE 2 See description of label above.public TPM2_RSA_Encrypt_REQUEST()
public int GetUnionSelector_inScheme()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPM2_RSA_Encrypt_REQUEST fromTpm(byte[] x)
public static TPM2_RSA_Encrypt_REQUEST 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.