Sha256: 39f52689f0b6c0a0cb492a41f868a7d249eee23c1b97b07d12af4c08a55dffd8
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true require "bindata" require "tpm/public_area" require "tpm/tpmt_ha" module TPM class Tpm2bName < BinData::Record endian :big uint16 :name_size, value: lambda { name.to_binary_s.size } tpmt_ha :name, read_length: :name_size def valid_for?(object) name.to_binary_s == TPM::PublicArea.new(object).name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tpm-key_attestation-0.9.0 | lib/tpm/tpm2b_name.rb |
tpm-key_attestation-0.8.0 | lib/tpm/tpm2b_name.rb |
tpm-key_attestation-0.7.0 | lib/tpm/tpm2b_name.rb |