Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
salrashid123 authored Aug 27, 2024
1 parent 03f62ef commit 523ebab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ Copy the `encryptedblob.json` to `TPM-B`. Specify the persistent handle while i

The following details some background how each of these modes works:

- `Seal`
#### `Seal`

Sealing data to a TPM is pretty well known (see [tpm2_unseal](https://github.com/tpm2-software/tpm2-tools/blob/master/man/tpm2_unseal.1.md)). Basically you create a key where the sensitive data within that key is the actual secret. The Key itself can have a password or pcr policy set which must get fulfilled to unseal. In this library, the wrapping DEK is what is sealed.

Expand Down Expand Up @@ -559,7 +559,7 @@ key1 = TPMKey.Unseal()
plaintext1 = go-kms-wrapping.Decrypt(key1, iv1, ciphertext1)
```

- `Import`
#### `Import`

For this, you encrypt some data _remotely_ using just a public encryption key for the target TPM.

Expand Down

0 comments on commit 523ebab

Please sign in to comment.