Sha256: 87bfdc757e259512f84d525e72675d0c5c591651dbae4e63eda5d792dd619f9d
Contents?: true
Size: 329 Bytes
Versions: 4
Compression:
Stored size: 329 Bytes
Contents
# frozen_string_literal: true require "bindata" 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?(other_name) name.to_binary_s == other_name end end end
Version data entries
4 entries across 4 versions & 1 rubygems