/// <summary> /// Name processing for Load-style operations /// </summary> /// <param name="h"></param> /// <param name="tpmAssignedName"></param> /// <param name="publicPart"></param> internal void ProcessName(TpmHandle h, byte[] tpmAssignedName, TpmPublic publicPart) { // Has been configured to *not* throw an exception if the TPM returns an error. if (tpmAssignedName.Length == 0) return; // If the load-command fails then the name returned is NULL. if (!NamesEqual(publicPart.GetName(), tpmAssignedName)) throw new Exception("TPM assigned name differs from that expected"); h.Name = tpmAssignedName; }