Skip to content

Commit

Permalink
Update warning docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Nov 14, 2023
1 parent dcea5db commit ffb1069
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/jose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,20 +441,24 @@ pub struct ProvisionedData<const KEYBYTES: usize> {
/// key for use with encryption. This data can be stored in JSON form.
///
/// <div class="warning">
/// ⚠️ WARNING:
/// Anybody who has access to both this metadata and the Tang server can recover
/// the encryption keys. Treat this data with respect!
///
/// ⚠️**WARNING:**
/// Anybody who has access to both this metadata and the Tang server can recover
/// the encryption keys. Treat this data with respect!
///
/// </div>
pub meta: KeyMeta,
}

/// Data that must be stored to retrieve a key.
///
/// <div class="warning">
/// ⚠️ WARNING:
/// Note that while this data does not contain the encryption key, it should still not
/// be exposed. Any device that can read this metadata could potentially decrypt
/// the ciphertext if it has access to the Tang server.
///
/// ⚠️ **WARNING:**
/// Note that while this data does not contain the encryption key, it should still not
/// be exposed. Any device that can read this metadata could potentially decrypt
/// the ciphertext if it has access to the Tang server.
///
/// </div>
#[derive(Debug, Deserialize, Serialize)]
pub struct KeyMeta {
Expand Down

0 comments on commit ffb1069

Please sign in to comment.