README.md in tpm-key_attestation-0.2.0 vs README.md in tpm-key_attestation-0.3.0
- old
+ new
@@ -22,11 +22,22 @@
$ gem install tpm-key_attestation
## Usage
```ruby
- TPM::SAttest.dererialize(certify_info).valid?(certified_object, certified_extra_data_hash)
- TPM::EKCertificate.from_der(certificate_der).conformant?
+key_attestation =
+ TPM::KeyAttestation.new(
+ certify_info,
+ signature,
+ certified_object,
+ signing_key,
+ hash_function,
+ quilifying_data
+ )
+
+if key_attestation.valid?
+ key_attestation.key
+end
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.