Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix stale type references in core docs

Manav Rathib07dbacafcda
diff --git a/rust/crates/core/docs/auth.md b/rust/crates/core/docs/auth.md
index 069c6fb332..aa686d3048 100644
--- a/rust/crates/core/docs/auth.md
+++ b/rust/crates/core/docs/auth.md
@@ -137,8 +137,8 @@ Derived credentials for SRP authentication.
```rust
pub struct SrpCredentials {
- pub kek: Vec<u8>, // Key encryption key (32 bytes)
- pub login_key: Vec<u8>, // SRP password (16 bytes)
+ pub kek: SecretVec, // Key encryption key (32 bytes)
+ pub login_key: SecretVec, // SRP password (16 bytes)
}
```
@@ -163,9 +163,9 @@ Result of successful decryption.
```rust
pub struct DecryptedSecrets {
- pub master_key: Vec<u8>, // For data encryption
- pub secret_key: Vec<u8>, // X25519 private key
- pub token: Vec<u8>, // Auth token
+ pub master_key: SecretVec, // For data encryption
+ pub secret_key: SecretVec, // X25519 private key
+ pub token: SecretVec, // Auth token
}
```
@@ -194,7 +194,7 @@ pub fn derive_kek(
kek_salt: &str,
mem_limit: u32,
ops_limit: u32,
-) -> Result<Vec<u8>>
+) -> Result<SecretVec>
```
#### `decrypt_secrets`
diff --git a/rust/crates/core/docs/crypto.md b/rust/crates/core/docs/crypto.md
index c7d0727913..13ef094ae4 100644
--- a/rust/crates/core/docs/crypto.md
+++ b/rust/crates/core/docs/crypto.md
@@ -93,7 +93,7 @@ let login_key = kdf::derive_login_key(&kek)?;
| `KEY_BYTES` | 32 | all modules |
| `NONCE_BYTES` | 24 | secretbox |
| `HEADER_BYTES` | 24 | stream/blob |
-| `SALT_BYTES` | 16 | argon/keys |
+| `SALT_BYTES` | 16 | argon |
| `MEMLIMIT_INTERACTIVE` | 64 MB | argon |
| `MEMLIMIT_SENSITIVE` | 1 GB | argon |
| `OPSLIMIT_INTERACTIVE` | 2 | argon |