Sha256: 5db879e68b327cfd69d623928edfa1634f4473a052b86b39d37ae511375c21b9

Contents?: true

Size: 688 Bytes

Versions: 14

Compression:

Stored size: 688 Bytes

Contents

# frozen_string_literal: true

require "bindata"
require "tpm/constants"
require "tpm/sized_buffer"
require "tpm/s_attest/s_certify_info"

module TPM
  # Section 10.12.8 in https://trustedcomputinggroup.org/wp-content/uploads/TPM-Rev-2.0-Part-2-Structures-01.38.pdf
  class SAttest < BinData::Record
    class << self
      alias_method :deserialize, :read
    end

    endian :big

    uint32 :magic
    uint16 :attested_type
    sized_buffer :qualified_signer
    sized_buffer :extra_data

    # s_clock_info :clock_info
    # uint64 :firmware_version
    skip length: 25

    choice :attested, selection: :attested_type do
      s_certify_info TPM::ST_ATTEST_CERTIFY
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tpm-key_attestation-0.14.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.13.1 lib/tpm/s_attest.rb
tpm-key_attestation-0.13.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.12.1 lib/tpm/s_attest.rb
tpm-key_attestation-0.12.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.11.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.10.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.9.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.8.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.7.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.6.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.5.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.4.0 lib/tpm/s_attest.rb
tpm-key_attestation-0.3.0 lib/tpm/s_attest.rb