iaik.tc.tss.api.structs.tpm
Class TcTpmRsaKeyParms

Object
  extended by TcBasicTypeDecoder
      extended by TcCompositeTypeDecoder
          extended by TcTpmRsaKeyParms

public class TcTpmRsaKeyParms
extends TcCompositeTypeDecoder

This class describes the parameters of an RSA key.

TCPA 1.1b Main Specification, page number:
50

Constructor Summary
TcTpmRsaKeyParms()
          Constructor - see superclass for details
TcTpmRsaKeyParms(TcBlobData data)
          Constructor - see superclass for details
TcTpmRsaKeyParms(TcBlobData data, int offset)
          Constructor - see superclass for details
TcTpmRsaKeyParms(TcCompositeTypeDecoder composite)
          Constructor - see superclass for details
 
Method Summary
 TcBlobData getEncoded()
          This method encodes the TPM_RSA_KEY_PARMS as a byte blob.
 TcBlobData getExponent()
          Returns contents of the exponent field.
 long getExponentSize()
          Returns contents of the exponentSize field.
 long getKeyLength()
          Returns contents of the keyLength field.
 long getNumPrimes()
          Returns contents of the numPrimes field.
 void setExponent(TcBlobData exponent)
          Sets the exponent field.
 void setKeyLength(long keyLength)
          Sets the keyLength field.
 void setNumPrimes(long numPrimes)
          Sets the numPrimes field.
 
Methods inherited from class TcCompositeTypeDecoder
toString
 
Methods inherited from class TcBasicTypeDecoder
decodeBoolean, decodeByte, decodeBytes, decodeBytes, decodeTpmAlgorithmId, decodeTpmAuthDataUsage, decodeTpmEncScheme, decodeTpmKeyFlags, decodeTpmKeyUsage, decodeTpmSigScheme, decodeTssAlgorithmId, decodeTssEncScheme, decodeTssEvenType, decodeTssFlag, decodeTssHandle, decodeTssHContext, decodeTssHEncData, decodeTssHHash, decodeTssHKey, decodeTssHObjet, decodeTssHPcrs, decodeTssHPolicy, decodeTssHPS, decodeTssHTpm, decodeTssKeyUsageId, decodeTssMigrationScheme, decodeTssResult, decodeTssSigScheme, decodeUINT16, decodeUINT32, decodeUINT64
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcTpmRsaKeyParms

public TcTpmRsaKeyParms()
Constructor - see superclass for details


TcTpmRsaKeyParms

public TcTpmRsaKeyParms(TcBlobData data)
Constructor - see superclass for details


TcTpmRsaKeyParms

public TcTpmRsaKeyParms(TcBlobData data,
                        int offset)
Constructor - see superclass for details


TcTpmRsaKeyParms

public TcTpmRsaKeyParms(TcCompositeTypeDecoder composite)
Constructor - see superclass for details

Method Detail

getEncoded

public TcBlobData getEncoded()
This method encodes the TPM_RSA_KEY_PARMS as a byte blob.

Specified by:
getEncoded in class TcCompositeTypeDecoder
Returns:
byte blob to be passed to other layers (e.g. TSS)

getExponent

public TcBlobData getExponent()
Returns contents of the exponent field.


setExponent

public void setExponent(TcBlobData exponent)
Sets the exponent field. If the key is using the default exponent (2^16 + 1 = 65537) then the exponent MUST be set to null (resulting in an exponentSize of 0).


getExponentSize

public long getExponentSize()
Returns contents of the exponentSize field.


getKeyLength

public long getKeyLength()
Returns contents of the keyLength field.


setKeyLength

public void setKeyLength(long keyLength)
Sets the keyLength field.


getNumPrimes

public long getNumPrimes()
Returns contents of the numPrimes field.


setNumPrimes

public void setNumPrimes(long numPrimes)
Sets the numPrimes field.