Exemplo n.º 1
0
        public override bool ActGetSignaled(TpmRh actHandle)
        {
            WriteInt(PlatformStream, (int)TcpTpmCommands.ActGetSignaled);
            WriteInt(PlatformStream, (int)actHandle);
            int status = ReadInt(PlatformStream);

            GetAck(PlatformStream, "ActGetSignaled");

            if ((uint)status > 1)
            {
                Globs.Throw($"ActGetSignaled: invalid response '{status}' receieved (0 or 1 expected)");
            }
            return(status == 1);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the GPIO state
 /// </summary>
 /// <param name="an">ACT number</param>
 /// <returns></returns>
 public virtual bool ActGetSignaled(TpmRh actHandle)
 {
     throw new Exception("Should never be here");
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a reserved TPM handle.
 /// </summary>
 /// <param name="reservedHandle"></param>
 public TpmHandle(TpmRh reservedHandle)
 {
     handle = (uint)reservedHandle;
 }
Exemplo n.º 4
0
 public override bool ActGetSignaled(TpmRh actHandle)
 {
     return(Device.ActGetSignaled(actHandle));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Create a reserved TPM handle.
 /// </summary>
 /// <param name="reservedHandle"></param>
 public TpmHandle(TpmRh reservedHandle)
 {
     handle = (uint)reservedHandle;
 }