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)); }
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)); } }
/// <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); }
/// <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); }