lib/webauthn/attestation_statement/tpm.rb in webauthn-2.5.1 vs lib/webauthn/attestation_statement/tpm.rb in webauthn-2.5.2

- old
+ new

@@ -40,11 +40,11 @@ statement["pubArea"], certificates, OpenSSL::Digest.digest(cose_algorithm.hash_function, certified_extra_data), signature_algorithm: tpm_algorithm[:signature], hash_algorithm: tpm_algorithm[:hash], - root_certificates: root_certificates(aaguid: aaguid) + trusted_certificates: root_certificates(aaguid: aaguid) ) key_attestation.valid? && key_attestation.key && key_attestation.key.to_pem == key.to_pem end @@ -52,10 +52,10 @@ # Already performed as part of #valid_key_attestation? true end def default_root_certificates - ::TPM::KeyAttestation::ROOT_CERTIFICATES + ::TPM::KeyAttestation::TRUSTED_CERTIFICATES end def tpm_algorithm COSE_ALG_TO_TPM[cose_algorithm.name] || raise("Unsupported algorithm #{cose_algorithm.name}") end