|
5 | 5 | //!
|
6 | 6 | //! This module presents an abstraction over the TPM functionality exposed through the core
|
7 | 7 | //! `Context` structure. The abstraction works by hiding resource handle management from the
|
8 |
| -//! client. This is achieved by passing objects back and forth in the form of contexts. Thus, when |
9 |
| -//! an object is created, its saved context is returned and the object is flushed from the TPM. |
10 |
| -//! Whenever the client needs to use said object, it calls the desired operation with the context |
11 |
| -//! as a parameter - the context is loaded in the TPM, the operation performed and the context |
12 |
| -//! flushed out again before the result is returned. |
13 |
| -//! |
14 |
| -//! Object contexts thus act as an opaque handle that can, however, be used by the client to seralize |
15 |
| -//! and persist the underlying data. |
| 8 | +//! client. |
16 | 9 | use crate::{
|
17 | 10 | attributes::{ObjectAttributesBuilder, SessionAttributesBuilder},
|
18 | 11 | constants::{tss::*, SessionType, Tss2ResponseCodeKind},
|
@@ -116,10 +109,10 @@ pub struct ObjectWrapper {
|
116 | 109 | /// Structure offering an abstracted programming experience.
|
117 | 110 | ///
|
118 | 111 | /// The `TransientKeyContext` makes use of a root key from which the other, client-controlled
|
119 |
| -/// keyes are derived. |
| 112 | +/// keys are derived. |
120 | 113 | ///
|
121 |
| -/// The main goal of this abstraction is to make public key cryptography more accessible, |
122 |
| -/// focusing on asymmetric encryption and signatures in particular. |
| 114 | +/// This abstraction makes public key cryptography more accessible, focusing on asymmetric |
| 115 | +/// encryption and signatures in particular, by allowing users to offload object and session management. |
123 | 116 | #[allow(clippy::module_name_repetitions)]
|
124 | 117 | #[derive(Debug)]
|
125 | 118 | pub struct TransientKeyContext {
|
|
0 commit comments