Module: TPM

Defined in:
lib/tpm/tpmt_ha.rb,
lib/tpm/s_attest.rb,
lib/tpm/t_public.rb,
lib/tpm/constants.rb,
lib/tpm/tpm2b_name.rb,
lib/tpm/public_area.rb,
lib/tpm/sized_buffer.rb,
lib/tpm/aik_certificate.rb,
lib/tpm/key_attestation.rb,
lib/tpm/certify_validator.rb,
lib/tpm/t_public/s_ecc_parms.rb,
lib/tpm/t_public/s_rsa_parms.rb,
lib/tpm/key_attestation/version.rb,
lib/tpm/s_attest/s_certify_info.rb

Defined Under Namespace

Classes: AIKCertificate, CertifyValidator, KeyAttestation, PublicArea, SAttest, SizedBuffer, TPublic, Tpm2bName, TpmtHa

Constant Summary collapse

GENERATED_VALUE =
0xFF544347
ST_ATTEST_CERTIFY =
0x8017
ALG_RSA =

Algorithms

0x0001
ALG_SHA1 =
0x0004
ALG_SHA256 =
0x000B
ALG_SHA384 =
0x000C
ALG_SHA512 =
0x000D
ALG_NULL =
0x0010
ALG_RSASSA =
0x0014
ALG_RSAPSS =
0x0016
ALG_ECDSA =
0x0018
ALG_ECC =
0x0023
ECC_NIST_P256 =

ECC curves

0x0003
ECC_NIST_P384 =
0x0004
ECC_NIST_P521 =
0x0005
VENDOR_IDS =

trustedcomputinggroup.org/resource/vendor-id-registry/ section 2 “TPM Capabilities Vendor ID (CAP_VID)”

{
  "id:414D4400" => "AMD",
  "id:41544D4C" => "Atmel",
  "id:4252434D" => "Broadcom",
  "id:49424D00" => "IBM",
  "id:49465800" => "Infineon",
  "id:494E5443" => "Intel",
  "id:4C454E00" => "Lenovo",
  "id:4E534D20" => "National Semiconductor",
  "id:4E545A00" => "Nationz",
  "id:4E544300" => "Nuvoton Technology",
  "id:51434F4D" => "Qualcomm",
  "id:534D5343" => "SMSC",
  "id:53544D20" => "ST Microelectronics",
  "id:534D534E" => "Samsung",
  "id:534E5300" => "Sinosun",
  "id:54584E00" => "Texas Instruments",
  "id:57454300" => "Winbond",
  "id:524F4343" => "Fuzhou Rockchip",
}.freeze
TPM_TO_OPENSSL_HASH_ALG =
{
  TPM::ALG_SHA1 => "SHA1",
  TPM::ALG_SHA256 => "SHA256"
}.freeze