Commit 978114e
refactor: deduplicate crypto, move decrypt_data to vector-core
- EncryptionParams, generate_encryption_params, encrypt_data re-exported
from vector-core (removed duplicate definitions)
- decrypt_data (AES-256-GCM file decryption) moved to vector-core
- hash_pass delegates to vector-core with owned-String zeroization wrapper
- encrypt_with_key/decrypt_with_key kept as thin Tauri wrappers
(infallible signature + unsafe UTF-8 for hot-path decryption)
- Tauri-specific functions retained: internal_encrypt/decrypt,
maybe_encrypt/decrypt, looks_encrypted (SIMD hex detection),
is_encryption_enabled (fast AtomicBool cache)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent afa6af7 commit 978114e
2 files changed
Lines changed: 99 additions & 230 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
156 | 189 | | |
157 | 190 | | |
158 | 191 | | |
| |||
0 commit comments