Пример #1
0
 public static ITPMHandle Create(TPMResourceType resourceType, uint handle)
 {
     if (resourceType == TPMResourceType.TPM_RT_AUTH)
         return new AuthHandle (AuthHandle.AuthType.Unknown, handle);
     else if(resourceType == TPMResourceType.TPM_RT_KEY)
         return new KeyHandle("", handle);
     else
         throw new NotImplementedException (string.Format ("Could not find handle implementation for resource type '{0}'", resourceType));
 }
Пример #2
0
 public static ITPMHandle Create(TPMResourceType resourceType, uint handle)
 {
     if (resourceType == TPMResourceType.TPM_RT_AUTH)
     {
         return(new AuthHandle(AuthHandle.AuthType.Unknown, handle));
     }
     else if (resourceType == TPMResourceType.TPM_RT_KEY)
     {
         return(new KeyHandle("", handle));
     }
     else
     {
         throw new NotImplementedException(string.Format("Could not find handle implementation for resource type '{0}'", resourceType));
     }
 }
Пример #3
0
        /// <summary>
        /// Identifies the handles that are created for this handle list
        /// </summary>
        //private TPMResourceType _resourceType;

        public HandleListCore(TPMBlob blob, TPMResourceType resourceType)
        {
            //_resourceType = resourceType;
            ReadFromTpmBlob(blob);
        }
Пример #4
0
 /// <summary>
 /// Identifies the handles that are created for this handle list
 /// </summary>
 //private TPMResourceType _resourceType;
 public HandleListCore(TPMBlob blob, TPMResourceType resourceType)
 {
     //_resourceType = resourceType;
     ReadFromTpmBlob (blob);
 }