iaik.tc.tss.impl.java.tcs.kcmgr
Class TcTcsKeyManager

java.lang.Object
  extended by iaik.tc.tss.impl.java.tcs.kcmgr.TcTcsKeyManager

public class TcTcsKeyManager
extends java.lang.Object


Constructor Summary
TcTcsKeyManager()
           
 
Method Summary
static java.lang.Object[] ChangeAuthAsymStart(long hContext, long tcsKeyHandle, TcTpmNonce antiReplay, TcTpmKeyParms tempKey, TcTcsAuth inAuth1)
          This method is part of the KeyManager for one reason: The outgoing TPM key handle (ephHandle) has to be translated into a TCS key handle.
static java.lang.Object[] EvictKey(long hContext, long tcsKeyHandle)
           
static java.lang.Object[] GetPubKey(long hContext, long tcsKeyHandle, TcTcsAuth inAuth1)
          Reading public portion of a key.
static java.lang.Object[] LoadKey2ByBlob(long hContext, long tcsParentHandle, TcITpmKey wrappedKeyBlob, TcTcsAuth inAuth1)
          This method is used to load a TPM 1.2 key (TcTpmKey12) or TPM 1.1 key into the TPM.
static java.lang.Object[] LoadKeyByBlob(long hContext, long tcsParentHandle, TcTpmKey wrappedKeyBlob, TcTcsAuth inAuth1)
          This method is used to load a TPM 1.1 key (TcTpmKey) into the TPM.
static java.lang.Object[] OwnerReadInternalPub(long hContext, long tcsKeyHandle, TcTcsAuth inAuth1)
          Reading the public SRK or EK (TPM owner).
static java.lang.Object[] TcsipCreateWrapKey(long hContext, long tcsParentKeyHandle, TcTpmEncauth dataUsageAuth, TcTpmEncauth dataMigrationAuth, TcITpmKeyNew keyInfo, TcTcsAuth inAuth1)
          This method allows creating a new key, which is wrapped by the already loaded wrapping key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTcsKeyManager

public TcTcsKeyManager()
Method Detail

LoadKeyByBlob

public static java.lang.Object[] LoadKeyByBlob(long hContext,
                                               long tcsParentHandle,
                                               TcTpmKey wrappedKeyBlob,
                                               TcTcsAuth inAuth1)
                                        throws TcTddlException,
                                               TcTpmException,
                                               TcTcsException
This method is used to load a TPM 1.1 key (TcTpmKey) into the TPM. As this method is passed on TPM_LoadKey, it is to be used on v1.1 TPMs.

Throws:
TcTddlException
TcTpmException
TcTcsException

LoadKey2ByBlob

public static java.lang.Object[] LoadKey2ByBlob(long hContext,
                                                long tcsParentHandle,
                                                TcITpmKey wrappedKeyBlob,
                                                TcTcsAuth inAuth1)
                                         throws TcTddlException,
                                                TcTpmException,
                                                TcTcsException
This method is used to load a TPM 1.2 key (TcTpmKey12) or TPM 1.1 key into the TPM. As this method is passed on TPM_LoadKey2, it is to be used on v1.2 TPMs.

Throws:
TcTddlException
TcTpmException
TcTcsException

EvictKey

public static java.lang.Object[] EvictKey(long hContext,
                                          long tcsKeyHandle)
                                   throws TcTddlException,
                                          TcTpmException,
                                          TcTcsException
Throws:
TcTddlException
TcTpmException
TcTcsException

ChangeAuthAsymStart

public static java.lang.Object[] ChangeAuthAsymStart(long hContext,
                                                     long tcsKeyHandle,
                                                     TcTpmNonce antiReplay,
                                                     TcTpmKeyParms tempKey,
                                                     TcTcsAuth inAuth1)
                                              throws TcTddlException,
                                                     TcTpmException,
                                                     TcTcsException
This method is part of the KeyManager for one reason: The outgoing TPM key handle (ephHandle) has to be translated into a TCS key handle.

Throws:
TcTddlException
TcTpmException
TcTcsException

OwnerReadInternalPub

public static java.lang.Object[] OwnerReadInternalPub(long hContext,
                                                      long tcsKeyHandle,
                                                      TcTcsAuth inAuth1)
                                               throws TcTddlException,
                                                      TcTpmException,
                                                      TcTcsException
Reading the public SRK or EK (TPM owner).

Throws:
TcTddlException
TcTpmException
TcTcsException

GetPubKey

public static java.lang.Object[] GetPubKey(long hContext,
                                           long tcsKeyHandle,
                                           TcTcsAuth inAuth1)
                                    throws TcTddlException,
                                           TcTpmException,
                                           TcTcsException
Reading public portion of a key.

Throws:
TcTddlException
TcTpmException
TcTcsException

TcsipCreateWrapKey

public static java.lang.Object[] TcsipCreateWrapKey(long hContext,
                                                    long tcsParentKeyHandle,
                                                    TcTpmEncauth dataUsageAuth,
                                                    TcTpmEncauth dataMigrationAuth,
                                                    TcITpmKeyNew keyInfo,
                                                    TcTcsAuth inAuth1)
                                             throws TcTddlException,
                                                    TcTpmException,
                                                    TcTcsException
This method allows creating a new key, which is wrapped by the already loaded wrapping key.

Throws:
TcTddlException
TcTpmException
TcTcsException